Skip to content

Commit e50fa30

Browse files
authored
fix(node): Fix continue trace usage in queue docs (#10258)
1 parent a5ca0ad commit e50fa30

File tree

1 file changed

+1
-3
lines changed
  • docs/platforms/javascript/common/performance/instrumentation/custom-instrumentation

1 file changed

+1
-3
lines changed

docs/platforms/javascript/common/performance/instrumentation/custom-instrumentation/queues-module.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,12 @@ const latency = Date.now() - message.timestamp;
9797

9898
Sentry.continueTrace(
9999
{ sentryTrace: message.traceHeader, baggage: message.baggageHeader },
100-
(transactionContext) => {
100+
() => {
101101
Sentry.startSpan({
102-
...transactionContext,
103102
name: 'queue_consumer_transaction',
104103
},
105104
(parent) => {
106105
Sentry.startSpan({
107-
...transactionContext,
108106
name: 'queue_consumer',
109107
op: 'queue.process',
110108
attributes: {

0 commit comments

Comments
 (0)