From f8e8fa9de33a2d25947276c594396e96c5bab43a Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 18 Nov 2022 17:15:21 -0500 Subject: [PATCH] Switches to dev when debugging --- src/telemetry/openTelemetryProvider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/telemetry/openTelemetryProvider.ts b/src/telemetry/openTelemetryProvider.ts index cd8424e..33b9a4c 100644 --- a/src/telemetry/openTelemetryProvider.ts +++ b/src/telemetry/openTelemetryProvider.ts @@ -40,7 +40,9 @@ export class OpenTelemetryProvider implements TelemetryProvider { } const exporter = new OTLPTraceExporter({ - url: 'https://otel.gitkraken.com:4318/v1/traces', + url: debugging + ? 'https://otel-dev.gitkraken.com:4318/v1/traces' + : 'https://otel.gitkraken.com:4318/v1/traces', compression: 'gzip' as any, httpAgentOptions: agent?.options, });