rename to percentage
This commit is contained in:
		
				commit
				
					
						d7e6c8c913
					
				
			
		
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -125,6 +125,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
 | 
				
			||||||
        const maxJitter = `${attributes["matrix.stats.summary.maxJitter"]}`;
 | 
					        const maxJitter = `${attributes["matrix.stats.summary.maxJitter"]}`;
 | 
				
			||||||
        const maxPacketLoss = `${attributes["matrix.stats.summary.maxPacketLoss"]}`;
 | 
					        const maxPacketLoss = `${attributes["matrix.stats.summary.maxPacketLoss"]}`;
 | 
				
			||||||
        const peerConnections = `${attributes["matrix.stats.summary.peerConnections"]}`;
 | 
					        const peerConnections = `${attributes["matrix.stats.summary.peerConnections"]}`;
 | 
				
			||||||
 | 
					        const percentageConcealedAudio = `${attributes["matrix.stats.summary.percentageConcealedAudio"]}`;
 | 
				
			||||||
        PosthogAnalytics.instance.trackEvent(
 | 
					        PosthogAnalytics.instance.trackEvent(
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            eventName: "MediaReceived",
 | 
					            eventName: "MediaReceived",
 | 
				
			||||||
| 
						 | 
					@ -135,6 +136,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
 | 
				
			||||||
            maxJitter: maxJitter,
 | 
					            maxJitter: maxJitter,
 | 
				
			||||||
            maxPacketLoss: maxPacketLoss,
 | 
					            maxPacketLoss: maxPacketLoss,
 | 
				
			||||||
            peerConnections: peerConnections,
 | 
					            peerConnections: peerConnections,
 | 
				
			||||||
 | 
					            percentageConcealedAudio: percentageConcealedAudio,
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          // Send instantly because the window might be closing
 | 
					          // Send instantly because the window might be closing
 | 
				
			||||||
          { send_instantly: true }
 | 
					          { send_instantly: true }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ export class ElementCallOpenTelemetry {
 | 
				
			||||||
    const config = Config.get();
 | 
					    const config = Config.get();
 | 
				
			||||||
    // we always enable opentelemetry in general. We only enable the OTLP
 | 
					    // 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)
 | 
					    // 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.
 | 
					    // within the posthog code.
 | 
				
			||||||
    const shouldEnableOtlp = Boolean(config.opentelemetry?.collector_url);
 | 
					    const shouldEnableOtlp = Boolean(config.opentelemetry?.collector_url);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue