@opentelemetry/propagator-instana
Version:
The OpenTelemetry Instana Propagator implements the propagation format used by IBM Observability by Instana
22 lines • 979 B
TypeScript
import { Context, TextMapGetter, TextMapPropagator, TextMapSetter } from '@opentelemetry/api';
/** Instana header names */
export declare const INSTANA_TRACE_ID_HEADER = "X-INSTANA-T";
export declare const INSTANA_SPAN_ID_HEADER = "X-INSTANA-S";
export declare const INSTANA_LEVEL_HEADER = "X-INSTANA-L";
/**
* Propagator for the Instana HTTP headers.
*/
export declare class InstanaPropagator implements TextMapPropagator {
/**
* Injects the current span context into Instana's vendor specific trace correlation headers (X-INSTANA-T, X-INSTANA-S
* and X-INSTANA-L).
*/
inject(context: Context, carrier: unknown, setter: TextMapSetter): void;
/**
* Extracts the span context from Instana's vendor specific trace correlation headers (X-INSTANA-T, X-INSTANA-S
* and X-INSTANA-L).
*/
extract(context: Context, carrier: unknown, getter: TextMapGetter): Context;
fields(): string[];
}
//# sourceMappingURL=InstanaPropagator.d.ts.map