(...args: Array<any>)
| 473 | public startSpan(type: SpanTypes): Span |
| 474 | public startSpan(type: SpanTypes, options: TracerSpanOptions): Span |
| 475 | public startSpan(...args: Array<any>): Span { |
| 476 | const [type, options]: [string, TracerSpanOptions | undefined] = args as any |
| 477 | |
| 478 | const spanContext = this.getSpanContext( |
| 479 | options?.parentSpan ?? this.getActiveScopeSpan() |
| 480 | ) |
| 481 | return this.getTracerInstance().startSpan(type, options, spanContext) |
| 482 | } |
| 483 | |
| 484 | private getSpanContext(parentSpan?: Span) { |
| 485 | const spanContext = parentSpan |
nothing calls this directly
no test coverage detected