light-sentry-sdk/dist/utils/baggage.d.ts

15 lines
480 B
TypeScript

import type { BaggageFields } from '../types';
export declare function serializeBaggage(fields: BaggageFields): string;
export declare function parseBaggage(header: string): BaggageFields;
export declare function createBaggageFromTransaction(traceId: string, options?: {
dsnPublicKey?: string;
sampled?: boolean;
sampleRate?: number;
user?: {
id?: string;
segment?: string;
};
release?: string;
environment?: string;
}): BaggageFields;