We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4177c84 commit 1394548Copy full SHA for 1394548
src/tracing.ts
@@ -82,8 +82,10 @@ export class Span {
82
}
83
84
startSpan(name: string, spanOptions?: SpanCreationOptions): Span {
85
- const span = new Span(this.#span.traceId, name, spanOptions);
86
- span.#trace = this.#trace; // TODO: I hate this, fix.
+ const span = new Span(this.#span.traceId, name, {
+ trace: this.#trace,
87
+ ...spanOptions,
88
+ });
89
span.#span.parentId = this.getSpanId();
90
this.#childSpans.push(span);
91
0 commit comments