Enable/disable opentelemetry based on config/user preference
Add config to set collector URL, obey the same analytics setting as posthog. Also refactor into a class to make it easier to manage.
This commit is contained in:
@@ -383,7 +383,7 @@ function useGroupCallState(
|
||||
memberStateEvents,
|
||||
});
|
||||
|
||||
otelGroupCallMembership.onUpdateRoomState(event);
|
||||
otelGroupCallMembership?.onUpdateRoomState(event);
|
||||
}
|
||||
|
||||
function onReceivedVoipEvent(event: MatrixEvent) {
|
||||
@@ -393,7 +393,7 @@ function useGroupCallState(
|
||||
function onSendVoipEvent(event: VoipEvent) {
|
||||
dispatch({ type: CallEvent.SendVoipEvent, rawEvent: event });
|
||||
|
||||
otelGroupCallMembership.onSendEvent(event);
|
||||
otelGroupCallMembership?.onSendEvent(event);
|
||||
}
|
||||
|
||||
function onUndecryptableToDevice(event: MatrixEvent) {
|
||||
|
||||
Reference in New Issue
Block a user