Skip to content

Commit

Permalink
fix: getResourceDetectorsFromEnv as getResourceDetectors export
Browse files Browse the repository at this point in the history
Signed-off-by: matteo.gazzetta <[email protected]>
  • Loading branch information
ElfoLiNk committed Jan 7, 2025
1 parent cf4ab32 commit 04677de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoinstrumentation/nodejs/src/autoinstrumentation.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -56,7 +56,7 @@ const sdk = new NodeSDK({
instrumentations: getNodeAutoInstrumentations(),
traceExporter: getTraceExporter(),
metricReader: getMetricReader(),
resourceDetectors: getResourceDetectorsFromEnv()
resourceDetectors: getResourceDetectors()
});

try {
Expand Down

0 comments on commit 04677de

Please sign in to comment.