/** * W3C trace fields carried in MCP request `_meta` (SEP-414). * * Mastra passes these strings through without creating spans or validating * their format. Treat inbound values, especially `baggage`, as untrusted * observability data: never use them for authentication or authorization. */ export interface MCPTraceContext { traceparent: string; tracestate?: string; baggage?: string; } /** * Reads the W3C trace fields out of request metadata. Only string values are * accepted; a request without a `traceparent` carries no trace context. */ export declare function traceContextFromMeta(meta: Record | undefined): MCPTraceContext | undefined; /** Projects a trace context onto the `_meta` keys the specification defines. */ export declare function traceContextToMeta(traceContext: MCPTraceContext): Record; //# sourceMappingURL=trace-context.d.ts.map