@opentelemetry/core
Version:
OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.
16 lines • 646 B
text/typescript
import { Context, TextMapGetter, TextMapPropagator, TextMapSetter } from "@opentelemetry/api";
//#region src/baggage/propagation/W3CBaggagePropagator.d.ts
/**
* Propagates {@link Baggage} through Context format propagation.
*
* Based on the Baggage specification:
* https://w3c.github.io/baggage/
*/
declare class W3CBaggagePropagator implements TextMapPropagator {
inject(context: Context, carrier: unknown, setter: TextMapSetter): void;
extract(context: Context, carrier: unknown, getter: TextMapGetter): Context;
fields(): string[];
}
//#endregion
export { W3CBaggagePropagator };
//# sourceMappingURL=W3CBaggagePropagator.d.cts.map