From adc8b6cffe3554d082ea27dcbc26d4dee8a9fb68 Mon Sep 17 00:00:00 2001 From: Yash Golani Date: Tue, 22 Oct 2024 14:07:54 +0530 Subject: [PATCH] TRACING-4435 changed to InstrumentationConfig --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index ef197cd..8f73e0f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import { WebTracerProvider } from '@opentelemetry/sdk-trace-web'; import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request'; import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch'; import { HttpInstrumentation } from '@opentelemetry/instrumentation-http'; -import { InstrumentationOption } from '@opentelemetry/instrumentation'; +import { InstrumentationConfig } from '@opentelemetry/instrumentation'; import { SumoLogicContextManager } from './sumologic-context-manager'; import { DocumentLoadInstrumentation } from '@opentelemetry/instrumentation-document-load'; import { UserInteractionInstrumentation } from '@opentelemetry/instrumentation-user-interaction'; @@ -229,8 +229,8 @@ export const initialize = ({ } }; - const httpInstrumentationOptions: InstrumentationOption = { - // enabled: true, + const httpInstrumentationOptions: InstrumentationConfig = { + enabled: true, ignoreIncomingRequestHook: () => true, };