From 34650545aae9e2cff53085d03efb951d82252785 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Wed, 24 Apr 2024 16:15:54 -0600 Subject: [PATCH] updating otel dependencies --- api/src/middlewares/instrumentation.ts | 2 +- web/src/utils/tracer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/middlewares/instrumentation.ts b/api/src/middlewares/instrumentation.ts index 3985903..53310e1 100644 --- a/api/src/middlewares/instrumentation.ts +++ b/api/src/middlewares/instrumentation.ts @@ -12,6 +12,7 @@ const instrumentRoute = () => { const isFixed = query.isFixed === 'true'; const parentContext = propagation.extract(context.active(), headers); + console.log('@@>> Requesting method', method, route, headers); const span = await createSpanFromContext(`${method} ${route}`, parentContext, { kind: SpanKind.SERVER }); try { @@ -34,7 +35,6 @@ const instrumentRoute = () => { [SemanticAttributes.HTTP_CLIENT_IP]: ip, [SemanticAttributes.HTTP_METHOD]: method, [SemanticAttributes.HTTP_HOST]: host, - [SemanticAttributes.HTTP_SCHEME]: protocol, [SemanticAttributes.HTTP_USER_AGENT]: headers['user-agent'] || '', ...(isFixed diff --git a/web/src/utils/tracer.ts b/web/src/utils/tracer.ts index 9b89503..c470356 100644 --- a/web/src/utils/tracer.ts +++ b/web/src/utils/tracer.ts @@ -31,7 +31,7 @@ const createTracer = async () => { propagator: new CompositePropagator({ propagators: [new W3CBaggagePropagator(), new W3CTraceContextPropagator()], }), - }); + }); registerInstrumentations({ tracerProvider: provider,