Interface Span

Span represents a logical unit of work as part of a broader Trace. Examples of span might include remote procedure calls or a in-process function calls to sub-components. A Trace has a single, top-level "root" Span that in turn may have zero or more child Spans, which in turn may have children.

interface Span {
    addLink(context, attributes?): void;
    context(): export=.SpanContext;
}

Hierarchy

  • Span
    • Span

Methods

  • Causally links another span to the current span

    Parameters

    • context: export=.SpanContext

      The context of the span to link to.

    • Optional attributes: Object

      An optional key value pair of arbitrary values.

    Returns void

Generated using TypeDoc