This repository was archived by the owner on Nov 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,9 @@ export class ProxyTracer implements Tracer {
3838 return this . _getTracer ( ) . startSpan ( name , options , context ) ;
3939 }
4040
41- startActiveSpan ?< F extends ( span : Span ) => ReturnType < F > > ( ) :
42- | ReturnType < F >
43- | undefined {
41+ startActiveSpan < F extends ( span : Span ) => ReturnType < F > > ( ) : ReturnType < F > {
4442 const tracer = this . _getTracer ( ) ;
45-
46- if ( tracer . startActiveSpan ) {
47- return Reflect . apply ( tracer . startActiveSpan , tracer , arguments ) ;
48- }
49- return ;
43+ return Reflect . apply ( tracer . startActiveSpan , tracer , arguments ) ;
5044 }
5145
5246 /**
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ export interface Tracer {
7878 * do some more work
7979 * span.end();
8080 */
81- startActiveSpan ? < F extends ( span : Span ) => ReturnType < F > > (
81+ startActiveSpan < F extends ( span : Span ) => ReturnType < F > > (
8282 name : string ,
8383 fn : F
8484 ) : ReturnType < F > ;
85- startActiveSpan ? < F extends ( span : Span ) => ReturnType < F > > (
85+ startActiveSpan < F extends ( span : Span ) => ReturnType < F > > (
8686 name : string ,
8787 options : SpanOptions ,
8888 fn : F
8989 ) : ReturnType < F > ;
90- startActiveSpan ? < F extends ( span : Span ) => ReturnType < F > > (
90+ startActiveSpan < F extends ( span : Span ) => ReturnType < F > > (
9191 name : string ,
9292 options : SpanOptions ,
9393 context : Context ,
You can’t perform that action at this time.
0 commit comments