@@ -24,14 +24,14 @@ import {ConnectInstrumentation} from '@opentelemetry/instrumentation-connect';
24
24
import { diag , DiagConsoleLogger , DiagLogLevel } from '@opentelemetry/api' ;
25
25
import { DnsInstrumentation } from '@opentelemetry/instrumentation-dns' ;
26
26
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express' ;
27
- import { FastifyInstrumentation } from '@opentelemetry/instrumentation-fastify' ;
28
27
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' ;
29
28
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node' ;
30
29
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc' ;
31
30
import { PinoInstrumentation } from '@opentelemetry/instrumentation-pino' ;
32
31
import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis' ;
33
32
import { registerInstrumentations } from '@opentelemetry/instrumentation' ;
34
- import { Resource , detectResourcesSync , envDetector , hostDetector , processDetector } from '@opentelemetry/resources' ;
33
+ import { FsInstrumentation } from '@opentelemetry/instrumentation-fs' ;
34
+ import { Resource , detectResourcesSync , envDetector , hostDetector , osDetector , processDetector } from '@opentelemetry/resources' ;
35
35
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions' ;
36
36
import { ATTR_CONTAINER_NAME } from '@opentelemetry/semantic-conventions/incubating' ;
37
37
@@ -80,7 +80,7 @@ export function setupTracing(options = {}) {
80
80
[ ATTR_CONTAINER_NAME ] : hostname ,
81
81
} ) . merge (
82
82
detectResourcesSync ( {
83
- detectors : [ envDetector , processDetector , hostDetector ]
83
+ detectors : [ envDetector , hostDetector , osDetector , processDetector ]
84
84
} )
85
85
) ,
86
86
} ) ;
@@ -108,12 +108,12 @@ export function setupTracing(options = {}) {
108
108
instrumentations : [
109
109
new PinoInstrumentation ( ) ,
110
110
new HttpInstrumentation ( { requireParentforOutgoingSpans : false , requireParentforIncomingSpans : false , ignoreIncomingRequestHook, } ) ,
111
- new FastifyInstrumentation ( ) ,
112
111
new ExpressInstrumentation ( { ignoreIncomingRequestHook, } ) ,
113
112
new ConnectInstrumentation ( ) ,
114
113
new AwsInstrumentation ( { sqsExtractContextPropagationFromPayload : true , } ) ,
115
- new DnsInstrumentation ( ) ,
116
114
new IORedisInstrumentation ( ) ,
115
+ new FsInstrumentation ( ) ,
116
+ new DnsInstrumentation ( ) ,
117
117
] ,
118
118
} ) ;
119
119
0 commit comments