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, };