File tree 1 file changed +2
-2
lines changed
autoinstrumentation/nodejs/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- import { getNodeAutoInstrumentations , getResourceDetectorsFromEnv } from '@opentelemetry/auto-instrumentations-node' ;
1
+ import { getNodeAutoInstrumentations , getResourceDetectors } from '@opentelemetry/auto-instrumentations-node' ;
2
2
import { OTLPTraceExporter as OTLPProtoTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto' ;
3
3
import { OTLPTraceExporter as OTLPHttpTraceExporter } from '@opentelemetry/exporter-trace-otlp-http' ;
4
4
import { OTLPTraceExporter as OTLPGrpcTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc' ;
@@ -56,7 +56,7 @@ const sdk = new NodeSDK({
56
56
instrumentations : getNodeAutoInstrumentations ( ) ,
57
57
traceExporter : getTraceExporter ( ) ,
58
58
metricReader : getMetricReader ( ) ,
59
- resourceDetectors : getResourceDetectorsFromEnv ( )
59
+ resourceDetectors : getResourceDetectors ( )
60
60
} ) ;
61
61
62
62
try {
You can’t perform that action at this time.
0 commit comments