From 7153ead8cb19c6e7a7a1c9579c6396007b96aaa9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 24 Apr 2023 19:52:56 +0100 Subject: [PATCH 1/2] Remove the console exporter I'm not sure how this got left in, presumably it was not intended. --- src/otel/otel.ts | 8 +------- src/room/useGroupCall.ts | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/otel/otel.ts b/src/otel/otel.ts index 107c127..452bd83 100644 --- a/src/otel/otel.ts +++ b/src/otel/otel.ts @@ -14,10 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { - ConsoleSpanExporter, - SimpleSpanProcessor, -} from "@opentelemetry/sdk-trace-base"; +import { SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base"; import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; import { WebTracerProvider } from "@opentelemetry/sdk-trace-web"; import opentelemetry, { Tracer } from "@opentelemetry/api"; @@ -93,9 +90,6 @@ export class ElementCallOpenTelemetry { this._provider.addSpanProcessor(this.rageshakeProcessor); } - this._provider.addSpanProcessor( - new SimpleSpanProcessor(new ConsoleSpanExporter()) - ); this._provider.addSpanProcessor(new PosthogSpanProcessor()); opentelemetry.trace.setGlobalTracerProvider(this._provider); diff --git a/src/room/useGroupCall.ts b/src/room/useGroupCall.ts index 0126e1c..f95056b 100644 --- a/src/room/useGroupCall.ts +++ b/src/room/useGroupCall.ts @@ -133,6 +133,7 @@ function getParticipants( : ConnectionState.WaitMedia : ConnectionState.EstablishingCall; } + console.log(`${member.userId} conn state is ${connectionState}`); participantInfoMap.set(deviceId, { connectionState, presenter: participant.screensharing, From ecc3693c479b4c3eba02c3748a9bcb7c098d771d Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 25 Apr 2023 10:32:36 +0100 Subject: [PATCH 2/2] Remove accidental log line --- src/room/useGroupCall.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/room/useGroupCall.ts b/src/room/useGroupCall.ts index f95056b..0126e1c 100644 --- a/src/room/useGroupCall.ts +++ b/src/room/useGroupCall.ts @@ -133,7 +133,6 @@ function getParticipants( : ConnectionState.WaitMedia : ConnectionState.EstablishingCall; } - console.log(`${member.userId} conn state is ${connectionState}`); participantInfoMap.set(deviceId, { connectionState, presenter: participant.screensharing,