//#region src/types.d.ts /** OTLP configuration returned by sentryOtlpConfig(). */ interface SentryOtlpConfig { /** The normalized DSN string (for Sentry.init). */ dsn: string; /** OTLP base endpoint (autotel appends /v1/traces). */ endpoint: string; /** Auth headers for OTLP requests. */ headers: Record; } /** Minimal Sentry SDK interface needed by linkSentryErrors(). */ interface SentryLinkable { getGlobalScope(): { addEventProcessor(fn: (event: Record) => Record): void; }; } //#endregion //#region src/config.d.ts /** * Build OTLP export configuration from a Sentry DSN. * * Returns the normalized DSN (for Sentry.init), the OTLP base endpoint * (autotel appends /v1/traces), and the auth header. */ declare function sentryOtlpConfig(rawDsn: string): SentryOtlpConfig; //#endregion //#region src/link.d.ts /** * Install a global Sentry event processor that attaches the active * OpenTelemetry trace_id and span_id to every Sentry event. * * This is the "external propagation context" from the Sentry OTLP Integration * spec — it ensures errors, check-ins, and logs are linked to the correct * OTel trace without requiring a SpanProcessor bridge. * * Call once after Sentry.init() and autotel init(). */ declare function linkSentryErrors(sentry: SentryLinkable): void; //#endregion export { type SentryLinkable, type SentryOtlpConfig, linkSentryErrors, sentryOtlpConfig }; //# sourceMappingURL=index.d.ts.map