UNPKG

1.23 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * SpanContext represents Span state that must propagate to descendant Spans
5 * and across process boundaries.
6 *
7 * SpanContext is logically divided into two pieces: the user-level "Baggage"
8 * (see setBaggageItem and getBaggageItem) that propagates across Span
9 * boundaries and any Tracer-implementation-specific fields that are needed to
10 * identify or otherwise contextualize the associated Span instance (e.g., a
11 * <trace_id, span_id, sampled> tuple).
12 */
13var SpanContext = /** @class */ (function () {
14 function SpanContext() {
15 }
16 // The SpanContext is entirely implementation dependent
17 /**
18 * Returns a string representation of the implementation internal trace ID.
19 *
20 * @returns {string}
21 */
22 SpanContext.prototype.toTraceId = function () {
23 return '';
24 };
25 /**
26 * Returns a string representation of the implementation internal span ID.
27 *
28 * @returns {string}
29 */
30 SpanContext.prototype.toSpanId = function () {
31 return '';
32 };
33 return SpanContext;
34}());
35exports.SpanContext = SpanContext;
36exports.default = SpanContext;
37//# sourceMappingURL=span_context.js.map
\No newline at end of file