add audio concealment to posthog exporter
This commit is contained in:
parent
4181780040
commit
6dc26392d7
2 changed files with 3 additions and 1 deletions
|
@ -124,6 +124,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
|||
const audioReceived = `${attributes["matrix.stats.summary.percentageReceivedAudioMedia"]}`;
|
||||
const maxJitter = `${attributes["matrix.stats.summary.maxJitter"]}`;
|
||||
const maxPacketLoss = `${attributes["matrix.stats.summary.maxPacketLoss"]}`;
|
||||
const audioConcealmentRatio = `${attributes["matrix.stats.summary.audioConcealmentRatio"]}`;
|
||||
PosthogAnalytics.instance.trackEvent(
|
||||
{
|
||||
eventName: "MediaReceived",
|
||||
|
@ -133,6 +134,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
|||
videoReceived: videoReceived,
|
||||
maxJitter: maxJitter,
|
||||
maxPacketLoss: maxPacketLoss,
|
||||
audioConcealmentRatio: audioConcealmentRatio,
|
||||
},
|
||||
// Send instantly because the window might be closing
|
||||
{ send_instantly: true }
|
||||
|
|
|
@ -42,7 +42,7 @@ export class ElementCallOpenTelemetry {
|
|||
const config = Config.get();
|
||||
// we always enable opentelemetry in general. We only enable the OTLP
|
||||
// collector if a URL is defined (and in future if another setting is defined)
|
||||
// The posthog exporter is always enabled, posthog reporting is enabled or disabled
|
||||
// Posthog reporting is enabled or disabled
|
||||
// within the posthog code.
|
||||
const shouldEnableOtlp = Boolean(config.opentelemetry?.collector_url);
|
||||
|
||||
|
|
Loading…
Reference in a new issue