Interface Baggage

Baggage represents collection of key-value pairs with optional metadata. Each key of Baggage is associated with exactly one value. Baggage may be used to annotate and enrich telemetry data.

Hierarchy

  • Baggage

Methods

  • Returns a new baggage with no entries

    Returns Baggage

  • Get a list of all entries in the Baggage

    Returns [string, BaggageEntry][]

  • Get an entry from Baggage if it exists

    Parameters

    • key: string

      The key which identifies the BaggageEntry

    Returns BaggageEntry

  • Returns a new baggage with the entries from the current bag except the removed entries

    Parameters

    • Rest ...key: string[]

      keys identifying the entries to be removed

      Rest

    Returns Baggage

  • Returns a new baggage with the entries from the current bag except the removed entry

    Parameters

    • key: string

      key identifying the entry to be removed

    Returns Baggage

  • Returns a new baggage with the entries from the current bag and the specified entry

    Parameters

    • key: string

      string which identifies the baggage entry

    • entry: BaggageEntry

      BaggageEntry for the given key

    Returns Baggage

Generated using TypeDoc