@@ -22,9 +22,9 @@ import {BatchSpanProcessor} from '@opentelemetry/sdk-trace-base';
22
22
import { CompositePropagator , W3CBaggagePropagator , W3CTraceContextPropagator } from '@opentelemetry/core' ;
23
23
import { ConnectInstrumentation } from '@opentelemetry/instrumentation-connect' ;
24
24
import { diag , DiagConsoleLogger , DiagLogLevel } from '@opentelemetry/api' ;
25
+ import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' ;
25
26
import { DnsInstrumentation } from '@opentelemetry/instrumentation-dns' ;
26
27
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express' ;
27
- import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' ;
28
28
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node' ;
29
29
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc' ;
30
30
import { PinoInstrumentation } from '@opentelemetry/instrumentation-pino' ;
@@ -108,12 +108,12 @@ export function setupTracing(options = {}) {
108
108
109
109
// Register instrumentations
110
110
const instrumentations = [
111
- new PinoInstrumentation ( ) ,
112
- new HttpInstrumentation ( { requireParentforOutgoingSpans : false , requireParentforIncomingSpans : false , ignoreIncomingRequestHook, } ) ,
111
+ new HttpInstrumentation ( { serverName : serviceName , requireParentforOutgoingSpans : false , requireParentforIncomingSpans : false , ignoreIncomingRequestHook, } ) ,
113
112
new ExpressInstrumentation ( { ignoreIncomingRequestHook, } ) ,
113
+ new PinoInstrumentation ( ) ,
114
114
new ConnectInstrumentation ( ) ,
115
115
new AwsInstrumentation ( { sqsExtractContextPropagationFromPayload : true , } ) ,
116
- new IORedisInstrumentation ( ) ,
116
+ new IORedisInstrumentation ( { requireParentSpan : false , } ) ,
117
117
] ;
118
118
119
119
if ( enableFsInstrumentation ) {
0 commit comments