@saidsef/tracing-node 3.4.6 → 3.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/index.mjs +4 -4
- package/package.json +1 -1
package/libs/index.mjs
CHANGED
|
@@ -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
|
|
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) {
|