Simplify baggage getting to a single method
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
@@ -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]>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user