@saidsef/tracing-node 3.2.2 → 3.2.3
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 +7 -7
- package/package.json +1 -1
package/libs/index.mjs
CHANGED
|
@@ -68,6 +68,13 @@ export function setupTracing(options = {}) {
|
|
|
68
68
|
concurrencyLimit = 10,
|
|
69
69
|
} = options;
|
|
70
70
|
|
|
71
|
+
// Configure exporter with the Collector endpoint - uses gRPC
|
|
72
|
+
const exportOptions = {
|
|
73
|
+
concurrencyLimit: concurrencyLimit,
|
|
74
|
+
url: url,
|
|
75
|
+
timeoutMillis: 1000,
|
|
76
|
+
};
|
|
77
|
+
|
|
71
78
|
// Register the span processor with the tracer provider
|
|
72
79
|
const exporter = new OTLPTraceExporter(exportOptions);
|
|
73
80
|
const spanProcessor = new BatchSpanProcessor(exporter);
|
|
@@ -97,13 +104,6 @@ export function setupTracing(options = {}) {
|
|
|
97
104
|
}),
|
|
98
105
|
});
|
|
99
106
|
|
|
100
|
-
// Configure exporter with the Collector endpoint - uses gRPC
|
|
101
|
-
const exportOptions = {
|
|
102
|
-
concurrencyLimit: concurrencyLimit,
|
|
103
|
-
url: url,
|
|
104
|
-
timeoutMillis: 1000,
|
|
105
|
-
};
|
|
106
|
-
|
|
107
107
|
// Ignore spans from static assets.
|
|
108
108
|
const ignoreIncomingRequestHook = (req) => {
|
|
109
109
|
const isStaticAsset = !!req.url.match(/^\/metrics|\/healthz.*$/);
|