Simplify baggage getting to a single method

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2026-05-18 16:50:43 +02:00
parent 3914351b84
commit 00bdd871a3
8 changed files with 23 additions and 64 deletions
@@ -324,8 +324,6 @@ export type TracingServiceAttributeValue =
export interface TracingServiceBaggage {
// (undocumented)
getAllEntries(): Array<[string, TracingServiceBaggageEntry]>;
// (undocumented)
getEntry(key: string): TracingServiceBaggageEntry | undefined;
}
// @alpha
@@ -337,7 +335,7 @@ export interface TracingServiceBaggageEntry {
// @alpha
export interface TracingServiceContext {
// (undocumented)
readonly [tracingServiceContextBrand]: never;
readonly $$type: '@backstage/TracingServiceContext';
}
// @alpha
@@ -176,8 +176,6 @@ export interface TracingServicePropagationAPI {
getActiveBaggage(): TracingServiceBaggage | undefined;
}
declare const tracingServiceContextBrand: unique symbol;
/**
* Opaque handle representing a tracing context. Consumers receive
* these from {@link TracingServiceContextAPI.active} or
@@ -187,7 +185,7 @@ declare const tracingServiceContextBrand: unique symbol;
* @alpha
*/
export interface TracingServiceContext {
readonly [tracingServiceContextBrand]: never;
readonly $$type: '@backstage/TracingServiceContext';
}
/**
@@ -196,7 +194,6 @@ export interface TracingServiceContext {
* @alpha
*/
export interface TracingServiceBaggage {
getEntry(key: string): TracingServiceBaggageEntry | undefined;
getAllEntries(): Array<[string, TracingServiceBaggageEntry]>;
}