Description

Produces valid invariants of the actual Span. Do not use this directly, only through MikroTrace.

Hierarchy

  • Span

Constructors

Properties

configuration: SpanConfiguration
tracer: MikroTrace

Methods

  • Description

    End the trace. Perform some configuration modification to ensure logs looks right and don't contain unnecessary information. Finally, call the tracer so it can remove its representation of this span.

    Returns void

  • Description

    Filter metadata from empties.

    Parameters

    • metadata: Record<string, any>

    Returns any

  • Description

    Set a single attribute by key and value.

    Parameters

    • key: any
    • value: any

    Returns void

  • Description

    Set one or more attributes through an object. Merges and replaces any existing keys.

    Parameters

    • attributeObject: Record<string, any>

    Returns void

  • Description

    Alphabetically sort the fields in the log object.

    Parameters

    • input: Record<string, any>

    Returns any

Generated using TypeDoc