Files
30-seconds-of-code/node_modules/opentracing/lib/span_context.d.ts
2019-08-20 15:52:05 +02:00

26 lines
878 B
TypeScript

/**
* SpanContext represents Span state that must propagate to descendant Spans
* and across process boundaries.
*
* SpanContext is logically divided into two pieces: the user-level "Baggage"
* (see setBaggageItem and getBaggageItem) that propagates across Span
* boundaries and any Tracer-implementation-specific fields that are needed to
* identify or otherwise contextualize the associated Span instance (e.g., a
* <trace_id, span_id, sampled> tuple).
*/
export declare class SpanContext {
/**
* Returns a string representation of the implementation internal trace ID.
*
* @returns {string}
*/
toTraceId(): string;
/**
* Returns a string representation of the implementation internal span ID.
*
* @returns {string}
*/
toSpanId(): string;
}
export default SpanContext;
//# sourceMappingURL=span_context.d.ts.map