We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab0f61 commit f744a77Copy full SHA for f744a77
lib/support/opentelemetry.js
@@ -51,7 +51,9 @@ provider.register();
51
const tracer = opentelemetry.trace.getTracer(OtelConfig.service);
52
53
function StartSpanMiddleware(req, res, next) {
54
- const span = tracer.startSpan(req.path);
+ const span = tracer.startSpan(req.path, { attributes: {
55
+ "http.request_id": req.headers["x-request-id"]
56
+ }});
57
req.otelSpan = span;
58
next();
59
}
0 commit comments