Skip to content

Commit 0746355

Browse files
committed
add otel context
1 parent 9a22ab0 commit 0746355

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/opentelemetry-node/src/spanprocessor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export class SentrySpanProcessor implements OtelSpanProcessor {
145145
hub.captureException(syntheticError, {
146146
captureContext: {
147147
contexts: {
148+
otel: {
149+
attributes: otelSpan.attributes,
150+
resource: otelSpan.resource.attributes,
151+
},
148152
trace: {
149153
trace_id: otelSpan.spanContext().traceId,
150154
span_id: otelSpan.spanContext().spanId,

0 commit comments

Comments
 (0)