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 99cf269 commit 7257c87Copy full SHA for 7257c87
packages/tracing/src/transaction.ts
@@ -116,6 +116,11 @@ export class Transaction extends SpanClass implements TransactionInterface {
116
}).endTimestamp;
117
}
118
119
+ // ensure that we have a tracestate to attach to the envelope header
120
+ if (!this.metadata.tracestate?.sentry) {
121
+ this.metadata.tracestate = { ...this.metadata.tracestate, sentry: this._getNewTracestate() };
122
+ }
123
+
124
const transaction: Event = {
125
contexts: {
126
trace: this.getTraceContext(),
0 commit comments