Update telemetry imports

This commit is contained in:
Simon Larsen 2024-02-23 13:26:45 +00:00
parent ccb960f30e
commit dfbf9a827f
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -12,8 +12,8 @@ import {
OpenTelemetryExporterOtlpEndpoint,
OpenTelemetryExporterOtlpHeaders,
} from '../Config';
import {FetchInstrumentation} from '@opentelemetry/instrumentation-fetch';
import { XMLHttpRequestInstrumentation } from "@opentelemetry/instrumentation-xml-http-request";
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
const providerConfig: TracerConfig = {
resource: new Resource({
@ -46,6 +46,6 @@ provider.register({
registerInstrumentations({
instrumentations: [
new FetchInstrumentation(),
new XMLHttpRequestInstrumentation()
new XMLHttpRequestInstrumentation(),
],
});