UNPKG

878 BTypeScriptView Raw
1/**
2 * SpanContext represents Span state that must propagate to descendant Spans
3 * and across process boundaries.
4 *
5 * SpanContext is logically divided into two pieces: the user-level "Baggage"
6 * (see setBaggageItem and getBaggageItem) that propagates across Span
7 * boundaries and any Tracer-implementation-specific fields that are needed to
8 * identify or otherwise contextualize the associated Span instance (e.g., a
9 * <trace_id, span_id, sampled> tuple).
10 */
11export declare class SpanContext {
12 /**
13 * Returns a string representation of the implementation internal trace ID.
14 *
15 * @returns {string}
16 */
17 toTraceId(): string;
18 /**
19 * Returns a string representation of the implementation internal span ID.
20 *
21 * @returns {string}
22 */
23 toSpanId(): string;
24}
25export default SpanContext;
26//# sourceMappingURL=span_context.d.ts.map
\No newline at end of file