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 07a35f7 commit ed7014bCopy full SHA for ed7014b
src/v3/ActiveTrace.ts
@@ -569,8 +569,9 @@ export class ActiveTrace<ScopeT extends ScopeBase> {
569
// update the span in the recording
570
spanAndAnnotation.span = span
571
} else {
572
- const occurrence = this.occurrenceCounters.get(span.name) ?? 1
573
- this.occurrenceCounters.set(span.name, occurrence + 1)
+ const spanId = `${span.type}:${span.name}`
+ const occurrence = this.occurrenceCounters.get(spanId) ?? 1
574
+ this.occurrenceCounters.set(spanId, occurrence + 1)
575
576
const annotation: SpanAnnotation = {
577
id: this.input.id,
0 commit comments