Optional
dynamicSamplingContext: Partial<DynamicSamplingContext>The Dynamic Sampling Context to turn into a header. For convenience and compatibility
with the getDynamicSamplingContext
method on the Transaction class ,this argument can also be undefined
. If it is
undefined
the function will return undefined
.
a baggage header, created from dynamicSamplingContext
, or undefined
either if dynamicSamplingContext
was undefined
, or if dynamicSamplingContext
didn't contain any values.
Generated using TypeDoc
Turns a Dynamic Sampling Object into a baggage header by prefixing all the keys on the object with "sentry-".