@sentry/core 10.51.0 → 10.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser.js +3 -0
- package/build/cjs/browser.js +529 -0
- package/build/cjs/browser.js.map +1 -0
- package/build/cjs/client.js +15 -2
- package/build/cjs/client.js.map +1 -1
- package/build/cjs/fetch.js +7 -4
- package/build/cjs/fetch.js.map +1 -1
- package/build/cjs/index.js +82 -62
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/instrument/console.js +43 -3
- package/build/cjs/instrument/console.js.map +1 -1
- package/build/cjs/integrations/captureconsole.js +2 -2
- package/build/cjs/integrations/captureconsole.js.map +1 -1
- package/build/cjs/integrations/console.js +5 -1
- package/build/cjs/integrations/console.js.map +1 -1
- package/build/cjs/integrations/express/index.js +4 -6
- package/build/cjs/integrations/express/index.js.map +1 -1
- package/build/cjs/integrations/express/utils.js +0 -7
- package/build/cjs/integrations/express/utils.js.map +1 -1
- package/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js +43 -0
- package/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js.map +1 -0
- package/build/cjs/integrations/http/client-patch.js +113 -0
- package/build/cjs/integrations/http/client-patch.js.map +1 -0
- package/build/cjs/integrations/http/client-subscriptions.js +166 -0
- package/build/cjs/integrations/http/client-subscriptions.js.map +1 -0
- package/build/cjs/integrations/http/constants.js +10 -0
- package/build/cjs/integrations/http/constants.js.map +1 -0
- package/build/cjs/integrations/http/double-wrap-warning.js +29 -0
- package/build/cjs/integrations/http/double-wrap-warning.js.map +1 -0
- package/build/cjs/integrations/http/get-outgoing-span-data.js +88 -0
- package/build/cjs/integrations/http/get-outgoing-span-data.js.map +1 -0
- package/build/cjs/integrations/http/get-request-url.js +54 -0
- package/build/cjs/integrations/http/get-request-url.js.map +1 -0
- package/build/cjs/integrations/http/inject-trace-propagation-headers.js +81 -0
- package/build/cjs/integrations/http/inject-trace-propagation-headers.js.map +1 -0
- package/build/cjs/integrations/mcp-server/errorCapture.js +2 -2
- package/build/cjs/integrations/mcp-server/errorCapture.js.map +1 -1
- package/build/cjs/integrations/mcp-server/handlers.js +72 -0
- package/build/cjs/integrations/mcp-server/handlers.js.map +1 -1
- package/build/cjs/integrations/mcp-server/index.js +10 -1
- package/build/cjs/integrations/mcp-server/index.js.map +1 -1
- package/build/cjs/integrations/requestdata.js +85 -3
- package/build/cjs/integrations/requestdata.js.map +1 -1
- package/build/cjs/integrations/supabase.js +4 -4
- package/build/cjs/integrations/supabase.js.map +1 -1
- package/build/cjs/logs/envelope.js +12 -2
- package/build/cjs/logs/envelope.js.map +1 -1
- package/build/cjs/logs/internal.js +7 -1
- package/build/cjs/logs/internal.js.map +1 -1
- package/build/cjs/metrics/envelope.js +15 -2
- package/build/cjs/metrics/envelope.js.map +1 -1
- package/build/cjs/metrics/internal.js +7 -1
- package/build/cjs/metrics/internal.js.map +1 -1
- package/build/cjs/server.js +563 -0
- package/build/cjs/server.js.map +1 -0
- package/build/cjs/tracing/ai/utils.js +2 -2
- package/build/cjs/tracing/ai/utils.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/index.js +3 -3
- package/build/cjs/tracing/anthropic-ai/index.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/streaming.js +3 -3
- package/build/cjs/tracing/anthropic-ai/streaming.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/utils.js +2 -2
- package/build/cjs/tracing/anthropic-ai/utils.js.map +1 -1
- package/build/cjs/tracing/google-genai/index.js +3 -3
- package/build/cjs/tracing/google-genai/index.js.map +1 -1
- package/build/cjs/tracing/google-genai/streaming.js +2 -2
- package/build/cjs/tracing/google-genai/streaming.js.map +1 -1
- package/build/cjs/tracing/langchain/embeddings.js +2 -2
- package/build/cjs/tracing/langchain/embeddings.js.map +1 -1
- package/build/cjs/tracing/langchain/index.js +4 -4
- package/build/cjs/tracing/langchain/index.js.map +1 -1
- package/build/cjs/tracing/langgraph/index.js +3 -3
- package/build/cjs/tracing/langgraph/index.js.map +1 -1
- package/build/cjs/tracing/langgraph/utils.js +2 -2
- package/build/cjs/tracing/langgraph/utils.js.map +1 -1
- package/build/cjs/tracing/openai/index.js +3 -3
- package/build/cjs/tracing/openai/index.js.map +1 -1
- package/build/cjs/tracing/openai/streaming.js +2 -2
- package/build/cjs/tracing/openai/streaming.js.map +1 -1
- package/build/cjs/tracing/sentrySpan.js +5 -0
- package/build/cjs/tracing/sentrySpan.js.map +1 -1
- package/build/cjs/tracing/spans/captureSpan.js +58 -23
- package/build/cjs/tracing/spans/captureSpan.js.map +1 -1
- package/build/cjs/tracing/spans/extractGenAiSpans.js +60 -0
- package/build/cjs/tracing/spans/extractGenAiSpans.js.map +1 -0
- package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js +26 -0
- package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
- package/build/cjs/tracing/trace.js +1 -0
- package/build/cjs/tracing/trace.js.map +1 -1
- package/build/cjs/tracing/vercel-ai/constants.js +8 -0
- package/build/cjs/tracing/vercel-ai/constants.js.map +1 -1
- package/build/cjs/tracing/vercel-ai/index.js +99 -15
- package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
- package/build/cjs/trpc.js +3 -3
- package/build/cjs/trpc.js.map +1 -1
- package/build/cjs/utils/baggage.js +73 -0
- package/build/cjs/utils/baggage.js.map +1 -1
- package/build/cjs/utils/chain-and-copy-promiselike.js +1 -0
- package/build/cjs/utils/chain-and-copy-promiselike.js.map +1 -1
- package/build/cjs/utils/exports.js +7 -7
- package/build/cjs/utils/exports.js.map +1 -1
- package/build/cjs/utils/flushIfServerless.js +2 -2
- package/build/cjs/utils/flushIfServerless.js.map +1 -1
- package/build/cjs/utils/get-default-export.js +32 -0
- package/build/cjs/utils/get-default-export.js.map +1 -0
- package/build/cjs/utils/request.js +129 -0
- package/build/cjs/utils/request.js.map +1 -1
- package/build/cjs/utils/spanUtils.js +1 -1
- package/build/cjs/utils/spanUtils.js.map +1 -1
- package/build/cjs/utils/string.js +9 -2
- package/build/cjs/utils/string.js.map +1 -1
- package/build/cjs/utils/traceData.js +2 -2
- package/build/cjs/utils/traceData.js.map +1 -1
- package/build/cjs/utils/version.js +1 -1
- package/build/esm/browser.js +142 -0
- package/build/esm/browser.js.map +1 -0
- package/build/esm/client.js +15 -2
- package/build/esm/client.js.map +1 -1
- package/build/esm/fetch.js +7 -4
- package/build/esm/fetch.js.map +1 -1
- package/build/esm/index.js +20 -15
- package/build/esm/index.js.map +1 -1
- package/build/esm/instrument/console.js +44 -5
- package/build/esm/instrument/console.js.map +1 -1
- package/build/esm/integrations/console.js +6 -2
- package/build/esm/integrations/console.js.map +1 -1
- package/build/esm/integrations/express/index.js +3 -5
- package/build/esm/integrations/express/index.js.map +1 -1
- package/build/esm/integrations/express/utils.js +1 -7
- package/build/esm/integrations/express/utils.js.map +1 -1
- package/build/esm/integrations/http/add-outgoing-request-breadcrumb.js +41 -0
- package/build/esm/integrations/http/add-outgoing-request-breadcrumb.js.map +1 -0
- package/build/esm/integrations/http/client-patch.js +111 -0
- package/build/esm/integrations/http/client-patch.js.map +1 -0
- package/build/esm/integrations/http/client-subscriptions.js +164 -0
- package/build/esm/integrations/http/client-subscriptions.js.map +1 -0
- package/build/esm/integrations/http/constants.js +6 -0
- package/build/esm/integrations/http/constants.js.map +1 -0
- package/build/esm/integrations/http/double-wrap-warning.js +26 -0
- package/build/esm/integrations/http/double-wrap-warning.js.map +1 -0
- package/build/esm/integrations/http/get-outgoing-span-data.js +85 -0
- package/build/esm/integrations/http/get-outgoing-span-data.js.map +1 -0
- package/build/esm/integrations/http/get-request-url.js +49 -0
- package/build/esm/integrations/http/get-request-url.js.map +1 -0
- package/build/esm/integrations/http/inject-trace-propagation-headers.js +79 -0
- package/build/esm/integrations/http/inject-trace-propagation-headers.js.map +1 -0
- package/build/esm/integrations/mcp-server/handlers.js +72 -1
- package/build/esm/integrations/mcp-server/handlers.js.map +1 -1
- package/build/esm/integrations/mcp-server/index.js +11 -2
- package/build/esm/integrations/mcp-server/index.js.map +1 -1
- package/build/esm/integrations/requestdata.js +85 -3
- package/build/esm/integrations/requestdata.js.map +1 -1
- package/build/esm/logs/envelope.js +12 -2
- package/build/esm/logs/envelope.js.map +1 -1
- package/build/esm/logs/internal.js +7 -1
- package/build/esm/logs/internal.js.map +1 -1
- package/build/esm/metrics/envelope.js +15 -2
- package/build/esm/metrics/envelope.js.map +1 -1
- package/build/esm/metrics/internal.js +7 -1
- package/build/esm/metrics/internal.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/server.js +157 -0
- package/build/esm/server.js.map +1 -0
- package/build/esm/tracing/sentrySpan.js +5 -0
- package/build/esm/tracing/sentrySpan.js.map +1 -1
- package/build/esm/tracing/spans/captureSpan.js +58 -23
- package/build/esm/tracing/spans/captureSpan.js.map +1 -1
- package/build/esm/tracing/spans/extractGenAiSpans.js +58 -0
- package/build/esm/tracing/spans/extractGenAiSpans.js.map +1 -0
- package/build/esm/tracing/spans/spanJsonToStreamedSpan.js +24 -0
- package/build/esm/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
- package/build/esm/tracing/trace.js +1 -1
- package/build/esm/tracing/trace.js.map +1 -1
- package/build/esm/tracing/vercel-ai/constants.js +8 -1
- package/build/esm/tracing/vercel-ai/constants.js.map +1 -1
- package/build/esm/tracing/vercel-ai/index.js +101 -18
- package/build/esm/tracing/vercel-ai/index.js.map +1 -1
- package/build/esm/utils/baggage.js +73 -1
- package/build/esm/utils/baggage.js.map +1 -1
- package/build/esm/utils/chain-and-copy-promiselike.js +1 -0
- package/build/esm/utils/chain-and-copy-promiselike.js.map +1 -1
- package/build/esm/utils/exports.js +7 -7
- package/build/esm/utils/exports.js.map +1 -1
- package/build/esm/utils/get-default-export.js +30 -0
- package/build/esm/utils/get-default-export.js.map +1 -0
- package/build/esm/utils/request.js +127 -1
- package/build/esm/utils/request.js.map +1 -1
- package/build/esm/utils/spanUtils.js +1 -1
- package/build/esm/utils/spanUtils.js.map +1 -1
- package/build/esm/utils/string.js +9 -2
- package/build/esm/utils/string.js.map +1 -1
- package/build/esm/utils/version.js +1 -1
- package/build/types/browser-exports.d.ts +11 -0
- package/build/types/browser-exports.d.ts.map +1 -0
- package/build/types/browser.d.ts +3 -0
- package/build/types/browser.d.ts.map +1 -0
- package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
- package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts.map +1 -1
- package/build/types/carrier.d.ts +1 -1
- package/build/types/carrier.d.ts.map +1 -1
- package/build/types/client.d.ts.map +1 -1
- package/build/types/fetch.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -223
- package/build/types/index.d.ts.map +1 -1
- package/build/types/instrument/console.d.ts +7 -0
- package/build/types/instrument/console.d.ts.map +1 -1
- package/build/types/integrations/captureconsole.d.ts +1 -1
- package/build/types/integrations/captureconsole.d.ts.map +1 -1
- package/build/types/integrations/console.d.ts +5 -0
- package/build/types/integrations/console.d.ts.map +1 -1
- package/build/types/integrations/conversationId.d.ts +1 -1
- package/build/types/integrations/conversationId.d.ts.map +1 -1
- package/build/types/integrations/dedupe.d.ts +1 -1
- package/build/types/integrations/dedupe.d.ts.map +1 -1
- package/build/types/integrations/eventFilters.d.ts +2 -2
- package/build/types/integrations/eventFilters.d.ts.map +1 -1
- package/build/types/integrations/express/index.d.ts.map +1 -1
- package/build/types/integrations/express/utils.d.ts +1 -5
- package/build/types/integrations/express/utils.d.ts.map +1 -1
- package/build/types/integrations/extraerrordata.d.ts +1 -1
- package/build/types/integrations/extraerrordata.d.ts.map +1 -1
- package/build/types/integrations/functiontostring.d.ts +1 -1
- package/build/types/integrations/functiontostring.d.ts.map +1 -1
- package/build/types/integrations/http/add-outgoing-request-breadcrumb.d.ts +6 -0
- package/build/types/integrations/http/add-outgoing-request-breadcrumb.d.ts.map +1 -0
- package/build/types/integrations/http/client-patch.d.ts +46 -0
- package/build/types/integrations/http/client-patch.d.ts.map +1 -0
- package/build/types/integrations/http/client-subscriptions.d.ts +21 -0
- package/build/types/integrations/http/client-subscriptions.d.ts.map +1 -0
- package/build/types/integrations/http/constants.d.ts +6 -0
- package/build/types/integrations/http/constants.d.ts.map +1 -0
- package/build/types/integrations/http/double-wrap-warning.d.ts +4 -0
- package/build/types/integrations/http/double-wrap-warning.d.ts.map +1 -0
- package/build/types/integrations/http/get-outgoing-span-data.d.ts +13 -0
- package/build/types/integrations/http/get-outgoing-span-data.d.ts.map +1 -0
- package/build/types/integrations/http/get-request-url.d.ts +10 -0
- package/build/types/integrations/http/get-request-url.d.ts.map +1 -0
- package/build/types/integrations/http/index.d.ts +4 -0
- package/build/types/integrations/http/index.d.ts.map +1 -0
- package/build/types/integrations/http/inject-trace-propagation-headers.d.ts +12 -0
- package/build/types/integrations/http/inject-trace-propagation-headers.d.ts.map +1 -0
- package/build/types/integrations/http/types.d.ts +249 -0
- package/build/types/integrations/http/types.d.ts.map +1 -0
- package/build/types/integrations/linkederrors.d.ts +1 -1
- package/build/types/integrations/linkederrors.d.ts.map +1 -1
- package/build/types/integrations/mcp-server/handlers.d.ts +18 -0
- package/build/types/integrations/mcp-server/handlers.d.ts.map +1 -1
- package/build/types/integrations/mcp-server/index.d.ts +8 -1
- package/build/types/integrations/mcp-server/index.d.ts.map +1 -1
- package/build/types/integrations/requestdata.d.ts +1 -1
- package/build/types/integrations/requestdata.d.ts.map +1 -1
- package/build/types/integrations/spanStreaming.d.ts +1 -1
- package/build/types/integrations/spanStreaming.d.ts.map +1 -1
- package/build/types/integrations/supabase.d.ts +1 -1
- package/build/types/integrations/supabase.d.ts.map +1 -1
- package/build/types/integrations/zoderrors.d.ts +1 -1
- package/build/types/integrations/zoderrors.d.ts.map +1 -1
- package/build/types/logs/console-integration.d.ts +1 -1
- package/build/types/logs/console-integration.d.ts.map +1 -1
- package/build/types/logs/envelope.d.ts +5 -2
- package/build/types/logs/envelope.d.ts.map +1 -1
- package/build/types/logs/internal.d.ts.map +1 -1
- package/build/types/metrics/envelope.d.ts +5 -2
- package/build/types/metrics/envelope.d.ts.map +1 -1
- package/build/types/metrics/internal.d.ts.map +1 -1
- package/build/types/server-exports.d.ts +26 -0
- package/build/types/server-exports.d.ts.map +1 -0
- package/build/types/server.d.ts +10 -0
- package/build/types/server.d.ts.map +1 -0
- package/build/types/shared-exports.d.ts +215 -0
- package/build/types/shared-exports.d.ts.map +1 -0
- package/build/types/tracing/index.d.ts +1 -1
- package/build/types/tracing/index.d.ts.map +1 -1
- package/build/types/tracing/sentrySpan.d.ts.map +1 -1
- package/build/types/tracing/spans/captureSpan.d.ts +4 -4
- package/build/types/tracing/spans/captureSpan.d.ts.map +1 -1
- package/build/types/tracing/spans/extractGenAiSpans.d.ts +15 -0
- package/build/types/tracing/spans/extractGenAiSpans.d.ts.map +1 -0
- package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
- package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts.map +1 -0
- package/build/types/tracing/trace.d.ts +1 -0
- package/build/types/tracing/trace.d.ts.map +1 -1
- package/build/types/tracing/vercel-ai/constants.d.ts +1 -0
- package/build/types/tracing/vercel-ai/constants.d.ts.map +1 -1
- package/build/types/tracing/vercel-ai/index.d.ts +9 -0
- package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
- package/build/types/types-hoist/envelope.d.ts +1 -1
- package/build/types/types-hoist/envelope.d.ts.map +1 -1
- package/build/types/types-hoist/log.d.ts +5 -0
- package/build/types/types-hoist/log.d.ts.map +1 -1
- package/build/types/types-hoist/metric.d.ts +5 -0
- package/build/types/types-hoist/metric.d.ts.map +1 -1
- package/build/types/types-hoist/options.d.ts +8 -0
- package/build/types/types-hoist/options.d.ts.map +1 -1
- package/build/types/types-hoist/webfetchapi.d.ts +2 -0
- package/build/types/types-hoist/webfetchapi.d.ts.map +1 -1
- package/build/types/utils/baggage.d.ts +13 -0
- package/build/types/utils/baggage.d.ts.map +1 -1
- package/build/types/utils/get-default-export.d.ts +22 -0
- package/build/types/utils/get-default-export.d.ts.map +1 -0
- package/build/types/utils/request.d.ts +30 -0
- package/build/types/utils/request.d.ts.map +1 -1
- package/build/types/utils/spanUtils.d.ts +1 -1
- package/build/types/utils/string.d.ts +1 -1
- package/build/types/utils/string.d.ts.map +1 -1
- package/build/types-ts3.8/browser-exports.d.ts +11 -0
- package/build/types-ts3.8/browser.d.ts +3 -0
- package/build/types-ts3.8/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
- package/build/types-ts3.8/carrier.d.ts +1 -1
- package/build/types-ts3.8/index.d.ts +3 -225
- package/build/types-ts3.8/instrument/console.d.ts +7 -0
- package/build/types-ts3.8/integrations/captureconsole.d.ts +1 -1
- package/build/types-ts3.8/integrations/console.d.ts +5 -0
- package/build/types-ts3.8/integrations/conversationId.d.ts +1 -1
- package/build/types-ts3.8/integrations/dedupe.d.ts +1 -1
- package/build/types-ts3.8/integrations/eventFilters.d.ts +2 -2
- package/build/types-ts3.8/integrations/express/utils.d.ts +1 -5
- package/build/types-ts3.8/integrations/extraerrordata.d.ts +1 -1
- package/build/types-ts3.8/integrations/functiontostring.d.ts +1 -1
- package/build/types-ts3.8/integrations/http/add-outgoing-request-breadcrumb.d.ts +6 -0
- package/build/types-ts3.8/integrations/http/client-patch.d.ts +46 -0
- package/build/types-ts3.8/integrations/http/client-subscriptions.d.ts +21 -0
- package/build/types-ts3.8/integrations/http/constants.d.ts +6 -0
- package/build/types-ts3.8/integrations/http/double-wrap-warning.d.ts +4 -0
- package/build/types-ts3.8/integrations/http/get-outgoing-span-data.d.ts +13 -0
- package/build/types-ts3.8/integrations/http/get-request-url.d.ts +10 -0
- package/build/types-ts3.8/integrations/http/index.d.ts +4 -0
- package/build/types-ts3.8/integrations/http/inject-trace-propagation-headers.d.ts +12 -0
- package/build/types-ts3.8/integrations/http/types.d.ts +252 -0
- package/build/types-ts3.8/integrations/linkederrors.d.ts +1 -1
- package/build/types-ts3.8/integrations/mcp-server/handlers.d.ts +18 -0
- package/build/types-ts3.8/integrations/mcp-server/index.d.ts +8 -1
- package/build/types-ts3.8/integrations/requestdata.d.ts +1 -1
- package/build/types-ts3.8/integrations/spanStreaming.d.ts +1 -1
- package/build/types-ts3.8/integrations/supabase.d.ts +1 -1
- package/build/types-ts3.8/integrations/zoderrors.d.ts +1 -1
- package/build/types-ts3.8/logs/console-integration.d.ts +1 -1
- package/build/types-ts3.8/logs/envelope.d.ts +5 -2
- package/build/types-ts3.8/metrics/envelope.d.ts +5 -2
- package/build/types-ts3.8/server-exports.d.ts +21 -0
- package/build/types-ts3.8/server.d.ts +10 -0
- package/build/types-ts3.8/shared-exports.d.ts +214 -0
- package/build/types-ts3.8/tracing/index.d.ts +1 -1
- package/build/types-ts3.8/tracing/spans/captureSpan.d.ts +4 -4
- package/build/types-ts3.8/tracing/spans/extractGenAiSpans.d.ts +15 -0
- package/build/types-ts3.8/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
- package/build/types-ts3.8/tracing/trace.d.ts +1 -0
- package/build/types-ts3.8/tracing/vercel-ai/constants.d.ts +1 -0
- package/build/types-ts3.8/tracing/vercel-ai/index.d.ts +9 -0
- package/build/types-ts3.8/types-hoist/envelope.d.ts +1 -1
- package/build/types-ts3.8/types-hoist/log.d.ts +5 -0
- package/build/types-ts3.8/types-hoist/metric.d.ts +5 -0
- package/build/types-ts3.8/types-hoist/options.d.ts +8 -0
- package/build/types-ts3.8/types-hoist/webfetchapi.d.ts +2 -0
- package/build/types-ts3.8/utils/baggage.d.ts +13 -0
- package/build/types-ts3.8/utils/get-default-export.d.ts +22 -0
- package/build/types-ts3.8/utils/request.d.ts +30 -0
- package/build/types-ts3.8/utils/spanUtils.d.ts +1 -1
- package/build/types-ts3.8/utils/string.d.ts +1 -1
- package/package.json +24 -2
- package/server.js +3 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
export { ClientClass as SentryCoreCurrentScopes } from './sdk';
|
|
2
|
+
export { AsyncContextStrategy } from './asyncContext/types';
|
|
3
|
+
export { Carrier } from './carrier';
|
|
4
|
+
export { OfflineStore, OfflineTransportOptions } from './transports/offline';
|
|
5
|
+
export { IntegrationIndex } from './integration';
|
|
6
|
+
export * from './tracing';
|
|
7
|
+
export * from './semanticAttributes';
|
|
8
|
+
export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
|
|
9
|
+
export { captureCheckIn, withMonitor, captureException, captureEvent, captureMessage, lastEventId, close, flush, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, isInitialized, isEnabled, startSession, endSession, captureSession, addEventProcessor, } from './exports';
|
|
10
|
+
export { getCurrentScope, getIsolationScope, getGlobalScope, withScope, withIsolationScope, getClient, getTraceContextFromScope, registerExternalPropagationContext, getExternalPropagationContext, hasExternalPropagationContext, } from './currentScopes';
|
|
11
|
+
export { getDefaultCurrentScope, getDefaultIsolationScope } from './defaultScopes';
|
|
12
|
+
export { setAsyncContextStrategy } from './asyncContext';
|
|
13
|
+
export { getGlobalSingleton, getMainCarrier } from './carrier';
|
|
14
|
+
export { makeSession, closeSession, updateSession } from './session';
|
|
15
|
+
export { Scope } from './scope';
|
|
16
|
+
export { CaptureContext, ScopeContext, ScopeData } from './scope';
|
|
17
|
+
export { notifyEventProcessors } from './eventProcessors';
|
|
18
|
+
export { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint, SENTRY_API_VERSION } from './api';
|
|
19
|
+
export { Client } from './client';
|
|
20
|
+
export { initAndBind, setCurrentClient } from './sdk';
|
|
21
|
+
export { createTransport } from './transports/base';
|
|
22
|
+
export { makeOfflineTransport } from './transports/offline';
|
|
23
|
+
export { makeMultiplexedTransport, MULTIPLEXED_TRANSPORT_EXTRA_KEY } from './transports/multiplexed';
|
|
24
|
+
export { getIntegrationsToSetup, addIntegration, defineIntegration, installedIntegrations } from './integration';
|
|
25
|
+
export { _INTERNAL_skipAiProviderWrapping, _INTERNAL_shouldSkipAiProviderWrapping, _INTERNAL_clearAiProviderSkips, } from './utils/ai/providerSkip';
|
|
26
|
+
export { envToBool } from './utils/envToBool';
|
|
27
|
+
export { applyScopeDataToEvent, mergeScopeData, getCombinedScopeData } from './utils/scopeData';
|
|
28
|
+
export { prepareEvent } from './utils/prepareEvent';
|
|
29
|
+
export { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';
|
|
30
|
+
export { createCheckInEnvelope } from './checkin';
|
|
31
|
+
export { hasSpansEnabled } from './utils/hasSpansEnabled';
|
|
32
|
+
export { withStreamedSpan } from './tracing/spans/beforeSendSpan';
|
|
33
|
+
export { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';
|
|
34
|
+
export { safeSetSpanJSONAttributes } from './tracing/spans/captureSpan';
|
|
35
|
+
export { isSentryRequestUrl } from './utils/isSentryRequestUrl';
|
|
36
|
+
export { handleCallbackErrors } from './utils/handleCallbackErrors';
|
|
37
|
+
export { parameterize, fmt } from './utils/parameterize';
|
|
38
|
+
export { HandleTunnelRequestOptions } from './utils/tunnel';
|
|
39
|
+
export { handleTunnelRequest } from './utils/tunnel';
|
|
40
|
+
export { addAutoIpAddressToSession } from './utils/ipAddress';
|
|
41
|
+
export { addAutoIpAddressToUser } from './utils/ipAddress';
|
|
42
|
+
export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanToStreamedSpanJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, INTERNAL_getSegmentSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, } from './utils/spanUtils';
|
|
43
|
+
export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
|
|
44
|
+
export { parseSampleRate } from './utils/parseSampleRate';
|
|
45
|
+
export { applySdkMetadata } from './utils/sdkMetadata';
|
|
46
|
+
export { getTraceData } from './utils/traceData';
|
|
47
|
+
export { shouldPropagateTraceForUrl } from './utils/tracePropagationTargets';
|
|
48
|
+
export { getTraceMetaTags } from './utils/meta';
|
|
49
|
+
export { debounce } from './utils/debounce';
|
|
50
|
+
export { makeWeakRef, derefWeakRef } from './utils/weakRef';
|
|
51
|
+
export { MaybeWeakRef } from './utils/weakRef';
|
|
52
|
+
export { shouldIgnoreSpan } from './utils/should-ignore-span';
|
|
53
|
+
export { winterCGHeadersToDict, winterCGRequestToRequestData, captureBodyFromWinterCGRequest, httpRequestToRequestData, extractQueryParamsFromUrl, headersToDict, httpHeadersToSpanAttributes, getMaxBodyByteLength, MAX_BODY_BYTE_LENGTH, } from './utils/request';
|
|
54
|
+
export { MaxRequestBodySize } from './utils/request';
|
|
55
|
+
export { DEFAULT_ENVIRONMENT, DEV_ENVIRONMENT } from './constants';
|
|
56
|
+
export { addBreadcrumb } from './breadcrumbs';
|
|
57
|
+
export { functionToStringIntegration } from './integrations/functiontostring';
|
|
58
|
+
export { inboundFiltersIntegration } from './integrations/eventFilters';
|
|
59
|
+
export { eventFiltersIntegration } from './integrations/eventFilters';
|
|
60
|
+
export { linkedErrorsIntegration } from './integrations/linkederrors';
|
|
61
|
+
export { moduleMetadataIntegration } from './integrations/moduleMetadata';
|
|
62
|
+
export { requestDataIntegration } from './integrations/requestdata';
|
|
63
|
+
export { captureConsoleIntegration } from './integrations/captureconsole';
|
|
64
|
+
export { dedupeIntegration } from './integrations/dedupe';
|
|
65
|
+
export { extraErrorDataIntegration } from './integrations/extraerrordata';
|
|
66
|
+
export { rewriteFramesIntegration } from './integrations/rewriteframes';
|
|
67
|
+
export { supabaseIntegration, instrumentSupabaseClient } from './integrations/supabase';
|
|
68
|
+
export { zodErrorsIntegration } from './integrations/zoderrors';
|
|
69
|
+
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
|
|
70
|
+
export { consoleIntegration } from './integrations/console';
|
|
71
|
+
export { FeatureFlagsIntegration } from './integrations/featureFlags';
|
|
72
|
+
export { featureFlagsIntegration } from './integrations/featureFlags';
|
|
73
|
+
export { growthbookIntegration } from './integrations/featureFlags';
|
|
74
|
+
export { conversationIdIntegration } from './integrations/conversationId';
|
|
75
|
+
export { profiler } from './profiling';
|
|
76
|
+
export { instrumentFetchRequest, _INTERNAL_getTracingHeadersForFetchRequest } from './fetch';
|
|
77
|
+
export { captureFeedback } from './feedback';
|
|
78
|
+
export { ReportDialogOptions } from './report-dialog';
|
|
79
|
+
export { _INTERNAL_captureLog, _INTERNAL_flushLogsBuffer, _INTERNAL_captureSerializedLog } from './logs/internal';
|
|
80
|
+
import * as logger_1 from './logs/public-api';
|
|
81
|
+
export { logger_1 as logger };
|
|
82
|
+
export { consoleLoggingIntegration } from './logs/console-integration';
|
|
83
|
+
export { _INTERNAL_captureMetric, _INTERNAL_flushMetricsBuffer, _INTERNAL_captureSerializedMetric, } from './metrics/internal';
|
|
84
|
+
import * as metrics_1 from './metrics/public-api';
|
|
85
|
+
export { metrics_1 as metrics };
|
|
86
|
+
export { MetricOptions } from './metrics/public-api';
|
|
87
|
+
export { createConsolaReporter } from './integrations/consola';
|
|
88
|
+
export { addVercelAiProcessors } from './tracing/vercel-ai';
|
|
89
|
+
export { _INTERNAL_getSpanContextForToolCallId, _INTERNAL_cleanupToolCallSpanContext } from './tracing/vercel-ai/utils';
|
|
90
|
+
export { toolCallSpanContextMap as _INTERNAL_toolCallSpanContextMap } from './tracing/vercel-ai/constants';
|
|
91
|
+
export { instrumentOpenAiClient } from './tracing/openai';
|
|
92
|
+
export { OPENAI_INTEGRATION_NAME } from './tracing/openai/constants';
|
|
93
|
+
export { instrumentAnthropicAiClient } from './tracing/anthropic-ai';
|
|
94
|
+
export { ANTHROPIC_AI_INTEGRATION_NAME } from './tracing/anthropic-ai/constants';
|
|
95
|
+
export { instrumentGoogleGenAIClient } from './tracing/google-genai';
|
|
96
|
+
export { GOOGLE_GENAI_INTEGRATION_NAME } from './tracing/google-genai/constants';
|
|
97
|
+
export { GoogleGenAIResponse } from './tracing/google-genai/types';
|
|
98
|
+
export { createLangChainCallbackHandler, instrumentLangChainEmbeddings } from './tracing/langchain';
|
|
99
|
+
export { LANGCHAIN_INTEGRATION_NAME } from './tracing/langchain/constants';
|
|
100
|
+
export { LangChainOptions, LangChainIntegration } from './tracing/langchain/types';
|
|
101
|
+
export { instrumentStateGraphCompile, instrumentCreateReactAgent, instrumentLangGraph } from './tracing/langgraph';
|
|
102
|
+
export { LANGGRAPH_INTEGRATION_NAME } from './tracing/langgraph/constants';
|
|
103
|
+
export { LangGraphOptions, LangGraphIntegration, CompiledGraph } from './tracing/langgraph/types';
|
|
104
|
+
export { OpenAiClient, OpenAiOptions, InstrumentedMethod } from './tracing/openai/types';
|
|
105
|
+
export { AnthropicAiClient, AnthropicAiOptions, AnthropicAiInstrumentedMethod, AnthropicAiResponse, } from './tracing/anthropic-ai/types';
|
|
106
|
+
export { GoogleGenAIClient, GoogleGenAIChat, GoogleGenAIOptions, GoogleGenAIInstrumentedMethod, } from './tracing/google-genai/types';
|
|
107
|
+
export { GoogleGenAIIstrumentedMethod } from './tracing/google-genai/types';
|
|
108
|
+
export { SpanBuffer } from './tracing/spans/spanBuffer';
|
|
109
|
+
export { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled';
|
|
110
|
+
export { spanStreamingIntegration } from './integrations/spanStreaming';
|
|
111
|
+
export { FeatureFlag } from './utils/featureFlags';
|
|
112
|
+
export { _INTERNAL_copyFlagsFromScopeToEvent, _INTERNAL_insertFlagToScope, _INTERNAL_addFeatureFlagToActiveSpan, _INTERNAL_FLAG_BUFFER_SIZE, _INTERNAL_MAX_FLAGS_PER_SPAN, } from './utils/featureFlags';
|
|
113
|
+
export { applyAggregateErrorsToEvent } from './utils/aggregate-errors';
|
|
114
|
+
export { getBreadcrumbLogLevelFromHttpStatusCode } from './utils/breadcrumb-log-level';
|
|
115
|
+
export { dsnFromString, dsnToString, makeDsn } from './utils/dsn';
|
|
116
|
+
export { SentryError } from './utils/error';
|
|
117
|
+
export { GLOBAL_OBJ } from './utils/worldwide';
|
|
118
|
+
export { InternalGlobal } from './utils/worldwide';
|
|
119
|
+
export { addConsoleInstrumentationHandler, addConsoleInstrumentationFilter } from './instrument/console';
|
|
120
|
+
export { addFetchEndInstrumentationHandler, addFetchInstrumentationHandler } from './instrument/fetch';
|
|
121
|
+
export { addGlobalErrorInstrumentationHandler } from './instrument/globalError';
|
|
122
|
+
export { addGlobalUnhandledRejectionInstrumentationHandler } from './instrument/globalUnhandledRejection';
|
|
123
|
+
export { addHandler, maybeInstrument, resetInstrumentationHandlers, triggerHandlers } from './instrument/handlers';
|
|
124
|
+
export { isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent, isInstanceOf, isParameterizedString, isPlainObject, isPrimitive, isRegExp, isString, isSyntheticEvent, isThenable, isVueViewModel, } from './utils/is';
|
|
125
|
+
export { isBrowser } from './utils/isBrowser';
|
|
126
|
+
export { CONSOLE_LEVELS, consoleSandbox, debug, originalConsoleMethods } from './utils/debug-logger';
|
|
127
|
+
export { SentryDebugLogger } from './utils/debug-logger';
|
|
128
|
+
export { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, checkOrSetAlreadyCaught, isAlreadyCaptured, getEventDescription, parseSemver, uuid4, } from './utils/misc';
|
|
129
|
+
export { normalize, normalizeToSize, normalizeUrlToBase } from './utils/normalize';
|
|
130
|
+
export { setNormalizationDepthOverrideHint, setSkipNormalizationHint } from './utils/normalizationHints';
|
|
131
|
+
export { addNonEnumerableProperty, convertToPlainObject, dropUndefinedKeys, extractExceptionKeysForMessage, fill, getOriginalFunction, markFunctionWrapped, objectify, } from './utils/object';
|
|
132
|
+
export { basename, dirname, isAbsolute, join, normalizePath, relative, resolve } from './utils/path';
|
|
133
|
+
export { makePromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';
|
|
134
|
+
export { PromiseBuffer } from './utils/promisebuffer';
|
|
135
|
+
export { severityLevelFromString } from './utils/severity';
|
|
136
|
+
export { replaceExports } from './utils/exports';
|
|
137
|
+
export { UNKNOWN_FUNCTION, createStackParser, getFramesFromEvent, getFunctionName, stackParserFromStackParserOptions, stripSentryFramesAndReverse, } from './utils/stacktrace';
|
|
138
|
+
export { isMatchingPattern, safeJoin, snipLine, stringMatchesSomePattern, truncate } from './utils/string';
|
|
139
|
+
export { isNativeFunction, supportsDOMException, supportsErrorEvent, supportsFetch, supportsReferrerPolicy, } from './utils/supports';
|
|
140
|
+
export { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';
|
|
141
|
+
export { browserPerformanceTimeOrigin, dateTimestampInSeconds, timestampInSeconds } from './utils/time';
|
|
142
|
+
export { TRACEPARENT_REGEXP, extractTraceparentData, generateSentryTraceHeader, propagationContextFromHeaders, shouldContinueTrace, generateTraceparentHeader, } from './utils/tracing';
|
|
143
|
+
export { getSDKSource, isBrowserBundle } from './utils/env';
|
|
144
|
+
export { SdkSource } from './utils/env';
|
|
145
|
+
export { addItemToEnvelope, createAttachmentEnvelopeItem, createEnvelope, createEventEnvelopeHeaders, createSpanEnvelopeItem, envelopeContainsItemType, envelopeItemTypeToDataCategory, forEachEnvelopeItem, getSdkMetadataForEnvelopeHeader, parseEnvelope, serializeEnvelope, } from './utils/envelope';
|
|
146
|
+
export { createClientReportEnvelope } from './utils/clientreport';
|
|
147
|
+
export { DEFAULT_RETRY_AFTER, disabledUntil, isRateLimited, parseRetryAfterHeader, updateRateLimits, } from './utils/ratelimit';
|
|
148
|
+
export { RateLimits } from './utils/ratelimit';
|
|
149
|
+
export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, parseBaggageHeader, objectToBaggageHeader, mergeBaggageHeaders, } from './utils/baggage';
|
|
150
|
+
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, getHttpSpanDetailsFromUrlObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, stripDataUrlContent, } from './utils/url';
|
|
151
|
+
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames, _enhanceErrorWithSentryInfo as _INTERNAL_enhanceErrorWithSentryInfo, } from './utils/eventbuilder';
|
|
152
|
+
export { LRUMap } from './utils/lru';
|
|
153
|
+
export { generateTraceId, generateSpanId } from './utils/propagationContext';
|
|
154
|
+
export { SDK_VERSION } from './utils/version';
|
|
155
|
+
export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils/debug-ids';
|
|
156
|
+
export { getFilenameToMetadataMap } from './metadata';
|
|
157
|
+
export { escapeStringForRegex } from './vendor/escapeStringForRegex';
|
|
158
|
+
export { Attachment } from './types-hoist/attachment';
|
|
159
|
+
export { Breadcrumb, BreadcrumbHint, FetchBreadcrumbData, FetchBreadcrumbHint } from './types-hoist/breadcrumb';
|
|
160
|
+
export { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
|
|
161
|
+
export { Context, Contexts, DeviceContext, OsContext, AppContext, CultureContext, TraceContext, CloudResourceContext, MissingInstrumentationContext, } from './types-hoist/context';
|
|
162
|
+
export { DataCategory } from './types-hoist/datacategory';
|
|
163
|
+
export { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
|
|
164
|
+
export { DebugImage, DebugMeta } from './types-hoist/debugMeta';
|
|
165
|
+
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, StreamedSpanEnvelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
|
|
166
|
+
export { ExtendedError } from './types-hoist/error';
|
|
167
|
+
export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
|
|
168
|
+
export { EventProcessor } from './types-hoist/eventprocessor';
|
|
169
|
+
export { Exception } from './types-hoist/exception';
|
|
170
|
+
export { Extra, Extras } from './types-hoist/extra';
|
|
171
|
+
export { Integration, IntegrationFn } from './types-hoist/integration';
|
|
172
|
+
export { Mechanism } from './types-hoist/mechanism';
|
|
173
|
+
export { ExtractedNodeRequestData, HttpHeaderValue, Primitive, WorkerLocation } from './types-hoist/misc';
|
|
174
|
+
export { ClientOptions, CoreOptions as Options } from './types-hoist/options';
|
|
175
|
+
export { Package } from './types-hoist/package';
|
|
176
|
+
export { PolymorphicEvent, PolymorphicRequest } from './types-hoist/polymorphics';
|
|
177
|
+
export { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, ContinuousThreadCpuProfile, Profile, ProfileChunk, } from './types-hoist/profiling';
|
|
178
|
+
export { ReplayEndEvent, ReplayEvent, ReplayRecordingData, ReplayRecordingMode, ReplayStartEvent, ReplayStopReason, } from './types-hoist/replay';
|
|
179
|
+
export { FeedbackErrorCode, FeedbackErrorMessages, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, UserFeedback, } from './types-hoist/feedback';
|
|
180
|
+
export { QueryParams, RequestEventData, RequestHookInfo, ResponseHookInfo, SanitizedRequestData, } from './types-hoist/request';
|
|
181
|
+
export { Runtime } from './types-hoist/runtime';
|
|
182
|
+
export { SdkInfo } from './types-hoist/sdkinfo';
|
|
183
|
+
export { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
184
|
+
export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, SerializedSession, } from './types-hoist/session';
|
|
185
|
+
export { SeverityLevel } from './types-hoist/severity';
|
|
186
|
+
export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, SerializedStreamedSpan, SerializedStreamedSpanContainer, StreamedSpanJSON, } from './types-hoist/span';
|
|
187
|
+
export { SpanStatus } from './types-hoist/spanStatus';
|
|
188
|
+
export { Log, LogSeverityLevel } from './types-hoist/log';
|
|
189
|
+
export { SpanLink } from './types-hoist/link';
|
|
190
|
+
export { Metric, MetricType, SerializedMetric, SerializedMetricContainer, SerializedMetricAttributeValue, } from './types-hoist/metric';
|
|
191
|
+
export { TimedEvent } from './types-hoist/timedEvent';
|
|
192
|
+
export { StackFrame } from './types-hoist/stackframe';
|
|
193
|
+
export { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './types-hoist/stacktrace';
|
|
194
|
+
export { PropagationContext, TracePropagationTargets, SerializedTraceData } from './types-hoist/tracing';
|
|
195
|
+
export { StartSpanOptions } from './types-hoist/startSpanOptions';
|
|
196
|
+
export { TraceparentData, TransactionSource } from './types-hoist/transaction';
|
|
197
|
+
export { TracesSamplerSamplingContext, CustomSamplingContext, SamplingContext, } from './types-hoist/samplingcontext';
|
|
198
|
+
export { DurationUnit, InformationUnit, FractionUnit, MeasurementUnit, NoneUnit, Measurements, } from './types-hoist/measurement';
|
|
199
|
+
export { Thread } from './types-hoist/thread';
|
|
200
|
+
export { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './types-hoist/transport';
|
|
201
|
+
export { User } from './types-hoist/user';
|
|
202
|
+
export { WebFetchHeaders, WebFetchRequest } from './types-hoist/webfetchapi';
|
|
203
|
+
export { WrappedFunction } from './types-hoist/wrappedfunction';
|
|
204
|
+
export { HandlerDataFetch, HandlerDataConsole, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, } from './types-hoist/instrument';
|
|
205
|
+
export { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn, } from './types-hoist/checkin';
|
|
206
|
+
export { ParameterizedString } from './types-hoist/parameterize';
|
|
207
|
+
export { ContinuousProfiler, ProfilingIntegration, Profiler } from './types-hoist/profiling';
|
|
208
|
+
export { ViewHierarchyData, ViewHierarchyWindow } from './types-hoist/view-hierarchy';
|
|
209
|
+
export { LegacyCSPReport } from './types-hoist/csp';
|
|
210
|
+
export { SerializedLog, SerializedLogContainer } from './types-hoist/log';
|
|
211
|
+
export { BuildTimeOptionsBase, UnstableVitePluginOptions, UnstableRollupPluginOptions, UnstableWebpackPluginOptions, } from './build-time-plugins/buildTimeOptionsBase';
|
|
212
|
+
export { RandomSafeContextRunner as _INTERNAL_RandomSafeContextRunner } from './utils/randomSafeContext';
|
|
213
|
+
export { withRandomSafeContext as _INTERNAL_withRandomSafeContext, safeMathRandom as _INTERNAL_safeMathRandom, safeDateNow as _INTERNAL_safeDateNow, } from './utils/randomSafeContext';
|
|
214
|
+
//# sourceMappingURL=shared-exports.d.ts.map
|
|
@@ -5,7 +5,7 @@ export { SentrySpan } from './sentrySpan';
|
|
|
5
5
|
export { SentryNonRecordingSpan } from './sentryNonRecordingSpan';
|
|
6
6
|
export { setHttpStatus, getSpanStatusFromHttpCode } from './spanstatus';
|
|
7
7
|
export { SPAN_STATUS_ERROR, SPAN_STATUS_OK, SPAN_STATUS_UNSET } from './spanstatus';
|
|
8
|
-
export { startSpan, startInactiveSpan, startSpanManual, continueTrace, withActiveSpan, suppressTracing, startNewTrace, } from './trace';
|
|
8
|
+
export { startSpan, startInactiveSpan, startSpanManual, continueTrace, withActiveSpan, suppressTracing, startNewTrace, SUPPRESS_TRACING_KEY, } from './trace';
|
|
9
9
|
export { getDynamicSamplingContextFromClient, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromScope, spanToBaggageHeader, } from './dynamicSamplingContext';
|
|
10
10
|
export { setMeasurement, timedEventsToMeasurements } from './measurement';
|
|
11
11
|
export { sampleSpan } from './sampling';
|
|
@@ -14,15 +14,15 @@ export type SerializedStreamedSpanWithSegmentSpan = SerializedStreamedSpan & {
|
|
|
14
14
|
* is needed later on to compute the DSC for the span envelope.
|
|
15
15
|
*/
|
|
16
16
|
export declare function captureSpan(span: Span, client: Client): SerializedStreamedSpanWithSegmentSpan;
|
|
17
|
-
/**
|
|
18
|
-
* Apply a user-provided beforeSendSpan callback to a span JSON.
|
|
19
|
-
*/
|
|
20
|
-
export declare function applyBeforeSendSpanCallback(span: StreamedSpanJSON, beforeSendSpan: (span: StreamedSpanJSON) => StreamedSpanJSON): StreamedSpanJSON;
|
|
21
17
|
/**
|
|
22
18
|
* Safely set attributes on a span JSON.
|
|
23
19
|
* If an attribute already exists, it will not be overwritten.
|
|
24
20
|
*/
|
|
25
21
|
export declare function safeSetSpanJSONAttributes(spanJSON: StreamedSpanJSON, newAttributes: RawAttributes<Record<string, unknown>>): void;
|
|
22
|
+
/**
|
|
23
|
+
* Apply a user-provided beforeSendSpan callback to a span JSON.
|
|
24
|
+
*/
|
|
25
|
+
export declare function applyBeforeSendSpanCallback(span: StreamedSpanJSON, beforeSendSpan: (span: StreamedSpanJSON) => StreamedSpanJSON): StreamedSpanJSON;
|
|
26
26
|
/**
|
|
27
27
|
* Infer and backfill span data from OTel semantic conventions.
|
|
28
28
|
* This mirrors what the `SentrySpanExporter` does for non-streamed spans via `getSpanData`/`inferSpanData`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Client } from '../../client';
|
|
2
|
+
import { SpanContainerItem } from '../../types-hoist/envelope';
|
|
3
|
+
import { Event } from '../../types-hoist/event';
|
|
4
|
+
/**
|
|
5
|
+
* Extracts gen_ai spans from a transaction event, converts them to span v2 format,
|
|
6
|
+
* and returns them as a SpanContainerItem.
|
|
7
|
+
*
|
|
8
|
+
* Only applies to static mode (non-streaming) transactions.
|
|
9
|
+
*
|
|
10
|
+
* WARNING: This function mutates `event.spans` by removing the extracted gen_ai spans
|
|
11
|
+
* from the array. Call this before creating the event envelope so the transaction
|
|
12
|
+
* item does not include the extracted spans.
|
|
13
|
+
*/
|
|
14
|
+
export declare function extractGenAiSpansFromEvent(event: Event, client: Client): SpanContainerItem | undefined;
|
|
15
|
+
//# sourceMappingURL=extractGenAiSpans.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SerializedStreamedSpan, SpanJSON } from '../../types-hoist/span';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a v1 SpanJSON (from a legacy transaction) to a serialized v2 StreamedSpan.
|
|
4
|
+
*/
|
|
5
|
+
export declare function spanJsonToSerializedStreamedSpan(span: SpanJSON): SerializedStreamedSpan;
|
|
6
|
+
//# sourceMappingURL=spanJsonToStreamedSpan.d.ts.map
|
|
@@ -2,6 +2,7 @@ import { Scope } from '../scope';
|
|
|
2
2
|
import { Span } from '../types-hoist/span';
|
|
3
3
|
import { StartSpanOptions } from '../types-hoist/startSpanOptions';
|
|
4
4
|
import { propagationContextFromHeaders } from '../utils/tracing';
|
|
5
|
+
export declare const SUPPRESS_TRACING_KEY = "__SENTRY_SUPPRESS_TRACING__";
|
|
5
6
|
/**
|
|
6
7
|
* Wraps a function with a transaction/span and finishes the span after the function is done.
|
|
7
8
|
* The created span is the active span and will be used as parent by other spans created inside the function
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ToolCallSpanContext } from './types';
|
|
2
2
|
export declare const toolCallSpanContextMap: Map<string, ToolCallSpanContext>;
|
|
3
|
+
export declare const toolDescriptionMap: Map<string, Map<string, string>>;
|
|
3
4
|
/** Maps Vercel AI span names to standardized OpenTelemetry operation names. */
|
|
4
5
|
export declare const SPAN_TO_OPERATION_NAME: Map<string, string>;
|
|
5
6
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { Client } from '../../client';
|
|
2
|
+
/**
|
|
3
|
+
* Post-process spans emitted by the Vercel AI SDK.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Rename and normalize Vercel AI SDK attributes to OpenTelemetry semantic conventions.
|
|
7
|
+
* This is the shared attribute processing logic used by both the legacy event processor
|
|
8
|
+
* path (SpanJSON) and the streamed span path (StreamedSpanJSON).
|
|
9
|
+
*/
|
|
10
|
+
export declare function processVercelAiSpanAttributes(attributes: Record<string, unknown>): void;
|
|
2
11
|
/**
|
|
3
12
|
* Add event processors to the given client to process Vercel AI spans.
|
|
4
13
|
*/
|
|
@@ -160,7 +160,7 @@ type StreamedSpanEnvelopeHeaders = BaseEnvelopeHeaders & {
|
|
|
160
160
|
};
|
|
161
161
|
type LogEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
162
162
|
type MetricEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
163
|
-
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem>;
|
|
163
|
+
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem | SpanContainerItem>;
|
|
164
164
|
export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
|
|
165
165
|
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
|
|
166
166
|
export type ReplayEnvelope = [
|
|
@@ -52,6 +52,11 @@ export interface SerializedLog {
|
|
|
52
52
|
severity_number?: Log['severityNumber'];
|
|
53
53
|
}
|
|
54
54
|
export type SerializedLogContainer = {
|
|
55
|
+
version?: number;
|
|
56
|
+
ingest_settings?: {
|
|
57
|
+
infer_ip?: 'auto' | 'never';
|
|
58
|
+
infer_user_agent?: 'auto' | 'never';
|
|
59
|
+
};
|
|
55
60
|
items: Array<SerializedLog>;
|
|
56
61
|
};
|
|
57
62
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -61,6 +61,11 @@ export interface SerializedMetric {
|
|
|
61
61
|
attributes?: Attributes;
|
|
62
62
|
}
|
|
63
63
|
export type SerializedMetricContainer = {
|
|
64
|
+
version?: number;
|
|
65
|
+
ingest_settings?: {
|
|
66
|
+
infer_ip?: 'auto' | 'never';
|
|
67
|
+
infer_user_agent?: 'auto' | 'never';
|
|
68
|
+
};
|
|
64
69
|
items: Array<SerializedMetric>;
|
|
65
70
|
};
|
|
66
71
|
//# sourceMappingURL=metric.d.ts.map
|
|
@@ -499,6 +499,14 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
499
499
|
* you can provide the ID with this option. The organization ID is used for trace propagation and for features like `strictTraceContinuation`.
|
|
500
500
|
*/
|
|
501
501
|
orgId?: string | number;
|
|
502
|
+
/**
|
|
503
|
+
* If set to `true`, gen_ai spans will be extracted from transactions and sent as v2 span envelope items.
|
|
504
|
+
*
|
|
505
|
+
* This enables streaming gen_ai spans, avoiding payload size limits of usual transactions.
|
|
506
|
+
*
|
|
507
|
+
* @default false
|
|
508
|
+
*/
|
|
509
|
+
streamGenAiSpans?: boolean;
|
|
502
510
|
/**
|
|
503
511
|
* If logs support should be enabled.
|
|
504
512
|
*
|
|
@@ -10,6 +10,8 @@ export interface WebFetchRequest {
|
|
|
10
10
|
readonly headers: WebFetchHeaders;
|
|
11
11
|
readonly method: string;
|
|
12
12
|
readonly url: string;
|
|
13
|
+
readonly body?: unknown;
|
|
13
14
|
clone(): WebFetchRequest;
|
|
15
|
+
text(): Promise<string>;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=webfetchapi.d.ts.map
|
|
@@ -37,4 +37,17 @@ export declare function parseBaggageHeader(baggageHeader: string | string[] | nu
|
|
|
37
37
|
* is not spec compliant.
|
|
38
38
|
*/
|
|
39
39
|
export declare function objectToBaggageHeader(object: Record<string, string>): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Merge two baggage headers into one.
|
|
42
|
+
* - Sentry-specific entries (keys starting with "sentry-") from the new
|
|
43
|
+
* baggage take precedence
|
|
44
|
+
* - Non-Sentry entries from existing baggage take precedence
|
|
45
|
+
*
|
|
46
|
+
* The order of the existing baggage will be preserved, and new entries will
|
|
47
|
+
* be added to the end.
|
|
48
|
+
*
|
|
49
|
+
* This matches the behavior of OTEL's propagation.inject() which uses
|
|
50
|
+
* `baggage.setEntry()` to overwrite existing entries with the same key.
|
|
51
|
+
*/
|
|
52
|
+
export declare function mergeBaggageHeaders<Existing extends string | string[] | number | undefined>(existing: Existing, incoming: string): string | undefined | Existing;
|
|
40
53
|
//# sourceMappingURL=baggage.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Often we patch a module's default export, but we want to be able to do
|
|
3
|
+
* something like this:
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* patchTheThing(await import('the-thing'));
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Or like this:
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import theThing from 'the-thing';
|
|
13
|
+
* patchTheThing(theThing);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Note: this does not support modules with a falsey default export. However,
|
|
17
|
+
* presumably in those cases, there's no default export to patch anyway.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDefaultExport<T>(moduleExport: T | {
|
|
20
|
+
default: T;
|
|
21
|
+
}): T;
|
|
22
|
+
//# sourceMappingURL=get-default-export.d.ts.map
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
import { Scope } from '../scope';
|
|
1
2
|
import { RequestEventData } from '../types-hoist/request';
|
|
2
3
|
import { WebFetchHeaders, WebFetchRequest } from '../types-hoist/webfetchapi';
|
|
4
|
+
/**
|
|
5
|
+
* Maximum size of incoming HTTP request bodies attached to events.
|
|
6
|
+
*
|
|
7
|
+
* - `'none'`: No request bodies will be attached
|
|
8
|
+
* - `'small'`: Request bodies up to 1,000 bytes will be attached
|
|
9
|
+
* - `'medium'`: Request bodies up to 10,000 bytes will be attached
|
|
10
|
+
* - `'always'`: Request bodies will always be attached (up to 1MB hard cap)
|
|
11
|
+
*/
|
|
12
|
+
export type MaxRequestBodySize = 'none' | 'small' | 'medium' | 'always';
|
|
13
|
+
/** Hard cap on captured body size, even when `maxRequestBodySize` is `'always'`. */
|
|
14
|
+
export declare const MAX_BODY_BYTE_LENGTH: number;
|
|
15
|
+
/**
|
|
16
|
+
* Convert a `maxRequestBodySize` setting to a maximum byte length.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getMaxBodyByteLength(maxRequestBodySize: Exclude<MaxRequestBodySize, 'none'>): number;
|
|
3
19
|
/**
|
|
4
20
|
* Transforms a `Headers` object that implements the `Web Fetch API` (https://developer.mozilla.org/en-US/docs/Web/API/Headers) into a simple key-value dict.
|
|
5
21
|
* The header keys will be lower case: e.g. A "Content-Type" header will be stored as "content-type".
|
|
@@ -13,6 +29,20 @@ export declare function headersToDict(reqHeaders: Record<string, string | string
|
|
|
13
29
|
* Converts a `Request` object that implements the `Web Fetch API` (https://developer.mozilla.org/en-US/docs/Web/API/Headers) into the format that the `RequestData` integration understands.
|
|
14
30
|
*/
|
|
15
31
|
export declare function winterCGRequestToRequestData(req: WebFetchRequest): RequestEventData;
|
|
32
|
+
/**
|
|
33
|
+
* Captures the body from a Web Fetch API Request and adds it to the isolation scope.
|
|
34
|
+
*
|
|
35
|
+
* This function clones the request to read the body without affecting the original.
|
|
36
|
+
* Only textual content types are captured - binary data is skipped.
|
|
37
|
+
*
|
|
38
|
+
* This is used by WinterCG-compatible runtimes (Cloudflare Workers, Deno, Bun, Vercel Edge, etc.)
|
|
39
|
+
* that use the Web Fetch API Request object.
|
|
40
|
+
*
|
|
41
|
+
* @param request - The incoming Web Fetch API Request
|
|
42
|
+
* @param isolationScope - The isolation scope to add the body to
|
|
43
|
+
* @param maxRequestBodySize - The maximum size of the request body to capture ('small' = 1KB, 'medium' = 10KB, 'always' = 1MB)
|
|
44
|
+
*/
|
|
45
|
+
export declare function captureBodyFromWinterCGRequest(request: WebFetchRequest, isolationScope: Scope, maxRequestBodySize: Exclude<MaxRequestBodySize, 'none'>): Promise<void>;
|
|
16
46
|
/**
|
|
17
47
|
* Convert a HTTP request object to RequestEventData to be passed as normalizedRequest.
|
|
18
48
|
* Instead of allowing `PolymorphicRequest` to be passed,
|
|
@@ -73,7 +73,7 @@ export declare function spanIsSampled(span: Span): boolean;
|
|
|
73
73
|
/** Get the status message to use for a JSON representation of a span. */
|
|
74
74
|
export declare function getStatusMessage(status: SpanStatus | undefined): string | undefined;
|
|
75
75
|
/**
|
|
76
|
-
* Convert the various statuses to the simple
|
|
76
|
+
* Convert the various statuses to the simple ones expected by Sentry for streamed spans ('ok' is default).
|
|
77
77
|
*/
|
|
78
78
|
export declare function getSimpleStatusMessage(status: SpanStatus | undefined): 'ok' | 'error';
|
|
79
79
|
declare const CHILD_SPANS_FIELD = "_sentryChildSpans";
|
|
@@ -42,5 +42,5 @@ export declare function isMatchingPattern(value: string, pattern: RegExp | strin
|
|
|
42
42
|
* count. If false, `testString` will match a string pattern if it contains that pattern.
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare function stringMatchesSomePattern(testString: string, patterns?: Array<string | RegExp | ((value: string) => boolean)>, requireExactStringMatch?: boolean): boolean;
|
|
45
|
+
export declare function stringMatchesSomePattern(testString: string, patterns?: Array<string | RegExp | ((value: string) => boolean)> | Set<string | RegExp | ((value: string) => boolean)>, requireExactStringMatch?: boolean): boolean;
|
|
46
46
|
//# sourceMappingURL=string.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.53.0",
|
|
4
4
|
"description": "Base implementation for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
|
|
@@ -10,13 +10,35 @@
|
|
|
10
10
|
"node": ">=18"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"/build"
|
|
13
|
+
"/build",
|
|
14
|
+
"browser.js",
|
|
15
|
+
"server.js"
|
|
14
16
|
],
|
|
15
17
|
"main": "build/cjs/index.js",
|
|
16
18
|
"module": "build/esm/index.js",
|
|
17
19
|
"types": "build/types/index.d.ts",
|
|
18
20
|
"exports": {
|
|
19
21
|
"./package.json": "./package.json",
|
|
22
|
+
"./server": {
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./build/types/server.d.ts",
|
|
25
|
+
"default": "./build/esm/server.js"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./build/types/server.d.ts",
|
|
29
|
+
"default": "./build/cjs/server.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"./browser": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./build/types/browser.d.ts",
|
|
35
|
+
"default": "./build/esm/browser.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./build/types/browser.d.ts",
|
|
39
|
+
"default": "./build/cjs/browser.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
20
42
|
".": {
|
|
21
43
|
"import": {
|
|
22
44
|
"types": "./build/types/index.d.ts",
|
package/server.js
ADDED