From a1389c92a89370048db2c20a05c9d986cfbede1f Mon Sep 17 00:00:00 2001 From: "matteo.gazzetta" Date: Tue, 7 Jan 2025 10:18:05 +0100 Subject: [PATCH] fix: getResourceDetectorsFromEnv as getResourceDetectors export --- autoinstrumentation/nodejs/src/autoinstrumentation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoinstrumentation/nodejs/src/autoinstrumentation.ts b/autoinstrumentation/nodejs/src/autoinstrumentation.ts index a11f4b2e82..5b3388f69d 100644 --- a/autoinstrumentation/nodejs/src/autoinstrumentation.ts +++ b/autoinstrumentation/nodejs/src/autoinstrumentation.ts @@ -1,4 +1,4 @@ -import { getNodeAutoInstrumentations, getResourceDetectorsFromEnv } from '@opentelemetry/auto-instrumentations-node'; +import { getNodeAutoInstrumentations, getResourceDetectors } from '@opentelemetry/auto-instrumentations-node'; import { OTLPTraceExporter as OTLPProtoTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto'; import { OTLPTraceExporter as OTLPHttpTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'; import { OTLPTraceExporter as OTLPGrpcTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc'; @@ -56,7 +56,7 @@ const sdk = new NodeSDK({ instrumentations: getNodeAutoInstrumentations(), traceExporter: getTraceExporter(), metricReader: getMetricReader(), - resourceDetectors: getResourceDetectorsFromEnv() + resourceDetectors: getResourceDetectors() }); try {