Function baggageHeaderToDynamicSamplingContext

  • Takes a baggage header and turns it into Dynamic Sampling Context, by extracting all the "sentry-" prefixed values from it.

    Parameters

    • baggageHeader: undefined | null | string | number | boolean | string[]

      A very bread definition of a baggage header as it might appear in various frameworks.

    Returns Partial<DynamicSamplingContext> | undefined

    The Dynamic Sampling Context that was found on baggageHeader, if there was any, undefined otherwise.

Generated using TypeDoc