Interface: TracingManagerInterface

Defined in: tracing/types.ts:371

Interface for TracingManager (for type references without circular deps)

Methods

addSpanEvent()

addSpanEvent(
   spanId, 
   name, 
   attributes?): void;

Defined in: tracing/types.ts:376

Parameters

Parameter Type
spanId string
name string
attributes? SpanAttributes

Returns

void

endSpan()

endSpan(spanId, options?): Span | undefined;

Defined in: tracing/types.ts:375

Parameters

Parameter Type
spanId string
options? EndSpanOptions

Returns

Span | undefined

endTrace()

endTrace(traceId): Trace | undefined;

Defined in: tracing/types.ts:373

Parameters

Parameter Type
traceId string

Returns

Trace | undefined

getCurrentSpan()

getCurrentSpan(): Span | undefined;

Defined in: tracing/types.ts:379

Returns

Span | undefined

getTrace()

getTrace(traceId): Trace | undefined;

Defined in: tracing/types.ts:380

Parameters

Parameter Type
traceId string

Returns

Trace | undefined

setSpanAttributes()

setSpanAttributes(spanId, attributes): void;

Defined in: tracing/types.ts:377

Parameters

Parameter Type
spanId string
attributes SpanAttributes

Returns

void

setSpanStatus()

setSpanStatus(
   spanId, 
   status, 
   message?): void;

Defined in: tracing/types.ts:378

Parameters

Parameter Type
spanId string
status SpanStatus
message? string

Returns

void

startSpan()

startSpan(options): Span;

Defined in: tracing/types.ts:374

Parameters

Parameter Type
options StartSpanOptions

Returns

Span

startTrace()

startTrace(attributes?): string;

Defined in: tracing/types.ts:372

Parameters

Parameter Type
attributes? SpanAttributes

Returns

string