Type helper that adds W3C trace propagation fields to an object type.
T
object
T & { traceparent: string; tracestate?: string; baggage?: string }
Useful for typing workflow params or message payloads that carry trace context.
interface MyParams { userId: string }// { userId: string; traceparent: string; tracestate?: string; baggage?: string }type MyCarrier = Carrier<MyParams>;// Non-object types pass through unchangedtype Str = Carrier<string>; // string Copy
interface MyParams { userId: string }// { userId: string; traceparent: string; tracestate?: string; baggage?: string }type MyCarrier = Carrier<MyParams>;// Non-object types pass through unchangedtype Str = Carrier<string>; // string
Type helper that adds W3C trace propagation fields to an object type.
Textendsobject, the result isT & { traceparent: string; tracestate?: string; baggage?: string }.Tis returned as-is.Useful for typing workflow params or message payloads that carry trace context.