Skip to content

Commit

Permalink
TRACING-4435 removed Instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-sumo committed Oct 22, 2024
1 parent 229c6fb commit 8a48e5c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import {
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
import {
HttpInstrumentation,
HttpInstrumentationConfig,
} from '@opentelemetry/instrumentation-http';
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
import { SumoLogicContextManager } from './sumologic-context-manager';
import { DocumentLoadInstrumentation } from '@opentelemetry/instrumentation-document-load';
import { UserInteractionInstrumentation } from '@opentelemetry/instrumentation-user-interaction';
Expand Down Expand Up @@ -240,9 +237,7 @@ export const initialize = ({
});

// Manually casting the instance to satisfy the Instrumentation type
const instrumentations: Instrumentation[] = [
httpInstrumentation as unknown as Instrumentation,
];
const instrumentations: Instrumentation[] = [httpInstrumentation];

const registerInstrumentations = () => {
disableInstrumentations();
Expand Down

0 comments on commit 8a48e5c

Please sign in to comment.