* Instruments a function by automatically creating a span activated on its * scope. * * The span will automatically be finished when one of these conditions is * met: * * * The function returns a promise, in which case the span will finish when * the promise is resolved or rejec
(
type: SpanTypes,
fn: (span?: Span, done?: (error?: Error) => any) => Promise<T>
)
| 91 | * |
| 92 | */ |
| 93 | trace<T>( |
| 94 | type: SpanTypes, |
| 95 | fn: (span?: Span, done?: (error?: Error) => any) => Promise<T> |
| 96 | ): Promise<T> |
no outgoing calls