@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC1D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LRUMap } from '../../utils/lru';
|
|
2
|
+
import type { HttpClientRequest } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Inject Sentry trace-propagation headers into an outgoing request if the
|
|
5
|
+
* target URL matches the configured `tracePropagationTargets`.
|
|
6
|
+
*
|
|
7
|
+
* Note: this must be called *before* calling `request.end()` (or firing the
|
|
8
|
+
* `http.client.request.start` diagnostics channel), because at that point,
|
|
9
|
+
* the headers have already been sent, and cannot be modified.
|
|
10
|
+
*/
|
|
11
|
+
export declare function injectTracePropagationHeaders(request: HttpClientRequest, propagationDecisionMap: LRUMap<string, boolean>): void;
|
|
12
|
+
//# sourceMappingURL=inject-trace-propagation-headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-trace-propagation-headers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/inject-trace-propagation-headers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAS9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,iBAAiB,EAC1B,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9C,IAAI,CAsDN"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-portable HTTP(S) outgoing-request integration – type definitions.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*
|
|
6
|
+
* This Sentry integration is a derivative work based on the OpenTelemetry
|
|
7
|
+
* HTTP instrumentation.
|
|
8
|
+
*
|
|
9
|
+
* <https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http>
|
|
10
|
+
*
|
|
11
|
+
* Extended under the terms of the Apache 2.0 license linked below:
|
|
12
|
+
*
|
|
13
|
+
* ----
|
|
14
|
+
*
|
|
15
|
+
* Copyright The OpenTelemetry Authors
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
* you may not use this file except in compliance with the License.
|
|
19
|
+
* You may obtain a copy of the License at
|
|
20
|
+
*
|
|
21
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
24
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
|
+
* See the License for the specific language governing permissions and
|
|
27
|
+
* limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
import type { RequestEventData } from '../../types-hoist/request';
|
|
30
|
+
import type { Span } from '../../types-hoist/span';
|
|
31
|
+
/** Minimal interface for a Node.js http.ClientRequest */
|
|
32
|
+
export interface HttpClientRequest {
|
|
33
|
+
method?: string;
|
|
34
|
+
path?: string;
|
|
35
|
+
host?: string;
|
|
36
|
+
protocol?: string;
|
|
37
|
+
port?: number;
|
|
38
|
+
end(): void;
|
|
39
|
+
getHeader(name: string): string | string[] | number | undefined;
|
|
40
|
+
getHeaders(): Record<string, string | string[] | undefined | number>;
|
|
41
|
+
setHeader(name: string, value: string | string[] | number): void;
|
|
42
|
+
removeHeader(name: string): void;
|
|
43
|
+
prependListener(event: 'response', listener: (res: HttpIncomingMessage) => void): this;
|
|
44
|
+
prependListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
45
|
+
on(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
46
|
+
once(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
47
|
+
listenerCount(event: string | symbol): number;
|
|
48
|
+
removeListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
49
|
+
}
|
|
50
|
+
/** Minimal interface for http client RequestOptions */
|
|
51
|
+
export interface HttpRequestOptions {
|
|
52
|
+
method?: string;
|
|
53
|
+
protocol?: string | null;
|
|
54
|
+
hostname?: string | null;
|
|
55
|
+
host?: string | null;
|
|
56
|
+
port?: string | number | null;
|
|
57
|
+
path?: string | null;
|
|
58
|
+
headers?: Record<string, string | string[] | undefined | number>;
|
|
59
|
+
}
|
|
60
|
+
/** Minimal interface for a Node.js http.ServerResponse */
|
|
61
|
+
export interface HttpServerResponse {
|
|
62
|
+
statusCode: number;
|
|
63
|
+
statusMessage?: string;
|
|
64
|
+
headers: Record<string, string | undefined | string[] | number>;
|
|
65
|
+
once(ev: string, ...data: unknown[]): this;
|
|
66
|
+
once(ev: 'close'): this;
|
|
67
|
+
on(ev: string | symbol, handler: (...data: unknown[]) => void): this;
|
|
68
|
+
}
|
|
69
|
+
export interface HttpServer {
|
|
70
|
+
emit(ev: string, ...data: unknown[]): this;
|
|
71
|
+
emit(ev: 'request', request: HttpIncomingMessage, response: HttpServerResponse): this;
|
|
72
|
+
}
|
|
73
|
+
export interface HttpSocket {
|
|
74
|
+
remoteAddress?: string;
|
|
75
|
+
remotePort?: number;
|
|
76
|
+
localAddress?: string;
|
|
77
|
+
localPort?: number;
|
|
78
|
+
}
|
|
79
|
+
/** Minimal interface for a Node.js http.IncomingMessage */
|
|
80
|
+
export interface HttpIncomingMessage {
|
|
81
|
+
statusCode?: number;
|
|
82
|
+
statusMessage?: string;
|
|
83
|
+
httpVersion?: string;
|
|
84
|
+
url?: string;
|
|
85
|
+
method?: string;
|
|
86
|
+
headers: Record<string, string | string[] | undefined>;
|
|
87
|
+
socket?: HttpSocket;
|
|
88
|
+
aborted?: boolean;
|
|
89
|
+
complete?: boolean;
|
|
90
|
+
resume(): void;
|
|
91
|
+
on(event: 'end', listener: () => void): this;
|
|
92
|
+
on(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
93
|
+
addListener(event: 'end', listener: () => void): this;
|
|
94
|
+
addListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
95
|
+
off(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
96
|
+
removeListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
|
|
97
|
+
}
|
|
98
|
+
/** Minimal interface for a Node.js http / https module export */
|
|
99
|
+
export interface HttpExport {
|
|
100
|
+
request: (...args: any[]) => HttpClientRequest;
|
|
101
|
+
get: (...args: any[]) => HttpClientRequest;
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
}
|
|
104
|
+
export type HttpModuleExport = HttpExport | (HttpExport & {
|
|
105
|
+
default: HttpExport;
|
|
106
|
+
});
|
|
107
|
+
export interface HttpInstrumentationOptions {
|
|
108
|
+
/**
|
|
109
|
+
* Whether to create spans for outgoing HTTP requests.
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
spans?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether to inject distributed trace propagation headers
|
|
115
|
+
* (`sentry-trace`, `baggage`, `traceparent`) into outgoing requests.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
propagateTrace?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Skip span / breadcrumb creation for requests to matching URLs.
|
|
121
|
+
* Receives the full URL string and the outgoing request object.
|
|
122
|
+
*/
|
|
123
|
+
ignoreOutgoingRequests?: (url: string, request: HttpClientRequest) => boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Whether breadcrumbs should be recorded for outgoing requests.
|
|
126
|
+
* @default true
|
|
127
|
+
*/
|
|
128
|
+
breadcrumbs?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Called after the outgoing-request span is created by the client.
|
|
131
|
+
* Use this to add custom attributes to the span.
|
|
132
|
+
*/
|
|
133
|
+
outgoingRequestHook?: (span: Span, request: HttpClientRequest) => void;
|
|
134
|
+
/**
|
|
135
|
+
* Called when the response is received by the client.
|
|
136
|
+
*/
|
|
137
|
+
outgoingResponseHook?: (span: Span, response: HttpIncomingMessage) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Called when both the request and response are available (after the
|
|
140
|
+
* response ends). Useful for adding attributes based on both objects.
|
|
141
|
+
*/
|
|
142
|
+
applyCustomAttributesOnSpan?: (span: Span, request: HttpClientRequest, response: HttpIncomingMessage) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Symbol to use for observing errors on EventEmitters without consuming
|
|
145
|
+
* them. Pass `EventEmitter.errorMonitor` from Node.js `events` module.
|
|
146
|
+
* Falls back to the plain `'error'` event string when not provided.
|
|
147
|
+
*
|
|
148
|
+
* Using the real `errorMonitor` symbol ensures that Sentry does not
|
|
149
|
+
* swallow errors before they reach user-supplied `'error'` handlers.
|
|
150
|
+
*/
|
|
151
|
+
errorMonitor?: symbol | string;
|
|
152
|
+
/**
|
|
153
|
+
* Controls the maximum size of incoming HTTP request bodies attached to events.
|
|
154
|
+
*
|
|
155
|
+
* Available options:
|
|
156
|
+
* - 'none': No request bodies will be attached
|
|
157
|
+
* - 'small': Request bodies up to 1,000 bytes will be attached
|
|
158
|
+
* - 'medium': Request bodies up to 10,000 bytes will be attached (default)
|
|
159
|
+
* - 'always': Request bodies will always be attached
|
|
160
|
+
*
|
|
161
|
+
* Note that even with 'always' setting, bodies exceeding 1MB will never be attached
|
|
162
|
+
* for performance and security reasons.
|
|
163
|
+
*
|
|
164
|
+
* @default 'medium'
|
|
165
|
+
*/
|
|
166
|
+
maxRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
|
|
167
|
+
/**
|
|
168
|
+
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
|
|
169
|
+
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
|
|
170
|
+
*
|
|
171
|
+
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
|
|
172
|
+
* @param request Contains the {@type RequestOptions} object used to make the incoming request.
|
|
173
|
+
*/
|
|
174
|
+
ignoreRequestBody?: (url: string, request: HttpIncomingMessage) => boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Whether the integration should create [Sessions](https://docs.sentry.io/product/releases/health/#sessions) for incoming requests to track the health and crash-free rate of your releases in Sentry.
|
|
177
|
+
* Read more about Release Health: https://docs.sentry.io/product/releases/health/
|
|
178
|
+
*
|
|
179
|
+
* Defaults to `true`.
|
|
180
|
+
*/
|
|
181
|
+
sessions?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Number of milliseconds until sessions tracked with `trackIncomingRequestsAsSessions` will be flushed as a session aggregate.
|
|
184
|
+
*
|
|
185
|
+
* Defaults to `60000` (60s).
|
|
186
|
+
*/
|
|
187
|
+
sessionFlushingDelayMS?: number;
|
|
188
|
+
/**
|
|
189
|
+
* Optional callback that can be used by integrations to emit the 'request'
|
|
190
|
+
* event within a given Sentry or OTEL context, possibly after creating a
|
|
191
|
+
* span, as in the HttpServerSpansIntegration.
|
|
192
|
+
*/
|
|
193
|
+
wrapServerEmitRequest?: (request: HttpIncomingMessage, response: HttpServerResponse, normalizedRequest: RequestEventData, next: () => void) => void;
|
|
194
|
+
/**
|
|
195
|
+
* Do not capture spans for incoming HTTP requests to URLs where the given callback returns `true`.
|
|
196
|
+
* Spans will be non recording if tracing is disabled.
|
|
197
|
+
*
|
|
198
|
+
* The `urlPath` param consists of the URL path and query string (if any) of the incoming request.
|
|
199
|
+
* For example: `'/users/details?id=123'`
|
|
200
|
+
*
|
|
201
|
+
* The `request` param contains the original {@type IncomingMessage} object of the incoming request.
|
|
202
|
+
* You can use it to filter on additional properties like method, headers, etc.
|
|
203
|
+
*/
|
|
204
|
+
ignoreIncomingRequests?: (urlPath: string, request: HttpIncomingMessage) => boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Whether to automatically ignore common static asset requests like favicon.ico, robots.txt, etc.
|
|
207
|
+
* This helps reduce noise in your transactions.
|
|
208
|
+
*
|
|
209
|
+
* @default `true`
|
|
210
|
+
*/
|
|
211
|
+
ignoreStaticAssets?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Do not capture spans for incoming HTTP requests with the given status codes.
|
|
214
|
+
* By default, spans with some 3xx and 4xx status codes are ignored (see @default).
|
|
215
|
+
* Expects an array of status codes or a range of status codes, e.g. [[300,399], 404] would ignore 3xx and 404 status codes.
|
|
216
|
+
*
|
|
217
|
+
* @default `[[401, 404], [301, 303], [305, 399]]`
|
|
218
|
+
*/
|
|
219
|
+
ignoreStatusCodes?: (number | [number, number])[];
|
|
220
|
+
/**
|
|
221
|
+
* A hook that can be used to mutate the span for incoming requests.
|
|
222
|
+
* This is triggered after the span is created, but before it is recorded.
|
|
223
|
+
*/
|
|
224
|
+
onSpanCreated?: (span: Span, request: HttpIncomingMessage, response: HttpServerResponse) => void;
|
|
225
|
+
/**
|
|
226
|
+
* A hook that can be used to mutate the span one last time when the
|
|
227
|
+
* response is finished, eg to update the transaction name based on
|
|
228
|
+
* the RPC metadata.
|
|
229
|
+
*/
|
|
230
|
+
onSpanEnd?: (span: Span, request: HttpIncomingMessage, response: HttpServerResponse) => void;
|
|
231
|
+
/**
|
|
232
|
+
* Optional: pass in the `http` and `https` modules in order to detect
|
|
233
|
+
* whether a standalone OTel instrumentation is attempting to wrap them
|
|
234
|
+
* as well. This is fine, as long as `spans` option is disabled, but will
|
|
235
|
+
* result in double-emitting spans otherwise.
|
|
236
|
+
*
|
|
237
|
+
* Since this cannot be fully prevented due to module load timing, and isn't
|
|
238
|
+
* necessarily harmful per se (just noisy/annoying), and there are a number
|
|
239
|
+
* of reasonable approaches to fix it (disable the OTel instrumentation,
|
|
240
|
+
* disable this instrumentation, or keep both and disable spans in one or the
|
|
241
|
+
* other), we simply print a warning so the user can hopefully make an
|
|
242
|
+
* informed decision about how to address it (if at all).
|
|
243
|
+
*/
|
|
244
|
+
http?: HttpModuleExport;
|
|
245
|
+
https?: HttpModuleExport;
|
|
246
|
+
/** suppress the warning about double-wrapping with OTel */
|
|
247
|
+
suppressOtelWarning?: boolean;
|
|
248
|
+
}
|
|
249
|
+
//#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IAAI,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAE7F;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -2,6 +2,6 @@ interface LinkedErrorsOptions {
|
|
|
2
2
|
key?: string;
|
|
3
3
|
limit?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("
|
|
5
|
+
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("..").Integration;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=linkederrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkederrors.d.ts","sourceRoot":"","sources":["../../../src/integrations/linkederrors.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqBD,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"linkederrors.d.ts","sourceRoot":"","sources":["../../../src/integrations/linkederrors.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqBD,eAAO,MAAM,uBAAuB,yEAA8C,CAAC"}
|
|
@@ -30,4 +30,22 @@ export declare function wrapPromptHandlers(serverInstance: MCPServerInstance): v
|
|
|
30
30
|
* @param serverInstance - MCP server instance
|
|
31
31
|
*/
|
|
32
32
|
export declare function wrapAllMCPHandlers(serverInstance: MCPServerInstance): void;
|
|
33
|
+
/**
|
|
34
|
+
* Retroactively wraps handlers on tools, resources, and prompts that were registered
|
|
35
|
+
* before `wrapMcpServerWithSentry` was called.
|
|
36
|
+
*
|
|
37
|
+
* The MCP SDK stores registered entries in private maps and invokes them via the entry's
|
|
38
|
+
* own property at call time — `executor` for tools, `readCallback` for resources, and
|
|
39
|
+
* `handler` for prompts. Replacing those properties
|
|
40
|
+
* in-place is therefore equivalent to having wrapped the original registration call.
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This intentionally accesses private MCP SDK internals (`_registeredTools` etc.).
|
|
43
|
+
* The properties and their shapes are verified against @modelcontextprotocol/sdk source:
|
|
44
|
+
* https://github.com/modelcontextprotocol/typescript-sdk/blob/2c0c481cb9dbfd15c8613f765c940a5f5bace94d/packages/server/src/server/mcp.ts#L304
|
|
45
|
+
* When upgrading the MCP SDK, re-verify that these internal maps and their callable
|
|
46
|
+
* properties still exist and are invoked directly (not captured by closure at registration).
|
|
47
|
+
* All access is defensive — if a property is absent or not a function we skip silently.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
export declare function wrapExistingHandlers(serverInstance: MCPServerInstance): void;
|
|
33
51
|
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mcp-server/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAqH7D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAGxE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAG5E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAG1E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAI1E"}
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mcp-server/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAqH7D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAGxE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAG5E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAG1E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAI1E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAoD5E"}
|
|
@@ -6,17 +6,24 @@ import type { McpServerWrapperOptions } from './types';
|
|
|
6
6
|
* and versions that expose the newer `registerTool`/`registerResource`/`registerPrompt` API (introduced in 1.x, sole API in 2.x).
|
|
7
7
|
* Automatically instruments transport methods and handler functions for comprehensive monitoring.
|
|
8
8
|
*
|
|
9
|
+
* Both call orderings are supported: wrapping before or after registering tools, resources,
|
|
10
|
+
* and prompts. Sentry patches the registration methods for future handlers and retroactively
|
|
11
|
+
* wraps any already-registered ones. Wrapping at construction time is recommended by
|
|
12
|
+
* convention (consistent with other SDK integrations), but is not required.
|
|
13
|
+
*
|
|
9
14
|
* @example
|
|
10
15
|
* ```typescript
|
|
11
16
|
* import * as Sentry from '@sentry/core';
|
|
12
17
|
* import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
13
18
|
* import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
14
19
|
*
|
|
15
|
-
* //
|
|
20
|
+
* // Wrap first, then register tools — this is the correct order
|
|
16
21
|
* const server = Sentry.wrapMcpServerWithSentry(
|
|
17
22
|
* new McpServer({ name: "my-server", version: "1.0.0" })
|
|
18
23
|
* );
|
|
19
24
|
*
|
|
25
|
+
* server.registerTool('my-tool', schema, handler);
|
|
26
|
+
*
|
|
20
27
|
* // Explicitly control input/output capture
|
|
21
28
|
* const server = Sentry.wrapMcpServerWithSentry(
|
|
22
29
|
* new McpServer({ name: "my-server", version: "1.0.0" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mcp-server/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAqB,uBAAuB,EAAoC,MAAM,SAAS,CAAC;AAS5G
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mcp-server/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAqB,uBAAuB,EAAoC,MAAM,SAAS,CAAC;AAS5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EAAE,iBAAiB,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,CAAC,CAyCpH"}
|
|
@@ -16,6 +16,6 @@ type RequestDataIntegrationOptions = {
|
|
|
16
16
|
* Add data about a request to an event. Primarily for use in Node-based SDKs, but included in `@sentry/core`
|
|
17
17
|
* so it can be used in cross-platform SDKs like `@sentry/nextjs`.
|
|
18
18
|
*/
|
|
19
|
-
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("
|
|
19
|
+
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("..").Integration;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=requestdata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestdata.d.ts","sourceRoot":"","sources":["../../../src/integrations/requestdata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"requestdata.d.ts","sourceRoot":"","sources":["../../../src/integrations/requestdata.ts"],"names":[],"mappings":"AAYA,UAAU,yBAAyB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,KAAK,6BAA6B,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC,CAAC;AAuDF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,mFAA6C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const spanStreamingIntegration: () => import("
|
|
1
|
+
export declare const spanStreamingIntegration: () => import("..").Integration;
|
|
2
2
|
//# sourceMappingURL=spanStreaming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spanStreaming.d.ts","sourceRoot":"","sources":["../../../src/integrations/spanStreaming.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"spanStreaming.d.ts","sourceRoot":"","sources":["../../../src/integrations/spanStreaming.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB,gCAiCX,CAAC"}
|
|
@@ -95,6 +95,6 @@ export declare function translateFiltersIntoMethods(key: string, query: string):
|
|
|
95
95
|
export declare const instrumentSupabaseClient: (supabaseClient: unknown) => void;
|
|
96
96
|
export declare const supabaseIntegration: (options: {
|
|
97
97
|
supabaseClient: any;
|
|
98
|
-
}) => import("
|
|
98
|
+
}) => import("..").Integration;
|
|
99
99
|
export {};
|
|
100
100
|
//# sourceMappingURL=supabase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":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uesAsAtta
|
|
|
71
71
|
/**
|
|
72
72
|
* Sentry integration to process Zod errors, making them easier to work with in Sentry.
|
|
73
73
|
*/
|
|
74
|
-
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("
|
|
74
|
+
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("..").Integration;
|
|
75
75
|
export {};
|
|
76
76
|
//# sourceMappingURL=zoderrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoderrors.d.ts","sourceRoot":"","sources":["../../../src/integrations/zoderrors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAK7D,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAKD;;GAEG;AACH,UAAU,QAAQ;IAChB,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,UAAU,QAAS,SAAQ,KAAK;IAC9B,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AAUD,KAAK,mBAAmB,CAAC,CAAC,SAAS,QAAQ,IAAI;KAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GACpD,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAA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QAAS,SAAQ,KAAK;IAC9B,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AAUD,KAAK,mBAAmB,CAAC,CAAC,SAAS,QAAQ,IAAI;KAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GACpD,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,EAAE,GACpB,MAAM,GAAG,SAAS,GAClB,OAAO;CACd,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAO3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAUrE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAyB7D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EACb,yBAAyB,EAAE,OAAO,YAAQ,EAC1C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,SAAS,GACd,KAAK,CA6DP;AAcD;;GAEG;AACH,eAAO,MAAM,oBAAoB,sEAA2C,CAAC"}
|
|
@@ -22,6 +22,6 @@ interface CaptureConsoleOptions {
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare const consoleLoggingIntegration: (options?: Partial<CaptureConsoleOptions> | undefined) => import("
|
|
25
|
+
export declare const consoleLoggingIntegration: (options?: Partial<CaptureConsoleOptions> | undefined) => import("..").Integration;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=console-integration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-integration.d.ts","sourceRoot":"","sources":["../../../src/logs/console-integration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D,UAAU,qBAAqB;IAC7B,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AA6DD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"console-integration.d.ts","sourceRoot":"","sources":["../../../src/logs/console-integration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D,UAAU,qBAAqB;IAC7B,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AA6DD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB,oFAAgD,CAAC"}
|
|
@@ -6,9 +6,11 @@ import type { SdkMetadata } from '../types-hoist/sdkmetadata';
|
|
|
6
6
|
* Creates a log container envelope item for a list of logs.
|
|
7
7
|
*
|
|
8
8
|
* @param items - The logs to include in the envelope.
|
|
9
|
+
* @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
|
|
10
|
+
* Only emitted as `ingest_settings` in browser environments.
|
|
9
11
|
* @returns The created log container envelope item.
|
|
10
12
|
*/
|
|
11
|
-
export declare function createLogContainerEnvelopeItem(items: Array<SerializedLog
|
|
13
|
+
export declare function createLogContainerEnvelopeItem(items: Array<SerializedLog>, inferUserData?: boolean): LogContainerItem;
|
|
12
14
|
/**
|
|
13
15
|
* Creates an envelope for a list of logs.
|
|
14
16
|
*
|
|
@@ -18,7 +20,8 @@ export declare function createLogContainerEnvelopeItem(items: Array<SerializedLo
|
|
|
18
20
|
* @param metadata - The metadata to include in the envelope.
|
|
19
21
|
* @param tunnel - The tunnel to include in the envelope.
|
|
20
22
|
* @param dsn - The DSN to include in the envelope.
|
|
23
|
+
* @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
|
|
21
24
|
* @returns The created envelope.
|
|
22
25
|
*/
|
|
23
|
-
export declare function createLogEnvelope(logs: Array<SerializedLog>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents): LogEnvelope;
|
|
26
|
+
export declare function createLogEnvelope(logs: Array<SerializedLog>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents, inferUserData?: boolean): LogEnvelope;
|
|
24
27
|
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../src/logs/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../src/logs/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAgBrH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,EAC1B,QAAQ,CAAC,EAAE,WAAW,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,aAAa,EACnB,aAAa,CAAC,EAAE,OAAO,GACtB,WAAW,CAeb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/logs/internal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAgC7D;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,IAAI,CAcjG;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,GAAG,EACd,YAAY,qBAAoB,EAChC,oBAAoB,GAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,KAAK,IAAqC,GAClG,IAAI,CAkGN;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/logs/internal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAgC7D;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,IAAI,CAcjG;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,GAAG,EACd,YAAY,qBAAoB,EAChC,oBAAoB,GAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,KAAK,IAAqC,GAClG,IAAI,CAkGN;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,CAuBrG;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,SAAS,CAEvF"}
|
|
@@ -6,9 +6,11 @@ import type { SdkMetadata } from '../types-hoist/sdkmetadata';
|
|
|
6
6
|
* Creates a metric container envelope item for a list of metrics.
|
|
7
7
|
*
|
|
8
8
|
* @param items - The metrics to include in the envelope.
|
|
9
|
+
* @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
|
|
10
|
+
* Only emitted as `ingest_settings` in browser environments.
|
|
9
11
|
* @returns The created metric container envelope item.
|
|
10
12
|
*/
|
|
11
|
-
export declare function createMetricContainerEnvelopeItem(items: Array<SerializedMetric
|
|
13
|
+
export declare function createMetricContainerEnvelopeItem(items: Array<SerializedMetric>, inferUserData?: boolean): MetricContainerItem;
|
|
12
14
|
/**
|
|
13
15
|
* Creates an envelope for a list of metrics.
|
|
14
16
|
*
|
|
@@ -18,7 +20,8 @@ export declare function createMetricContainerEnvelopeItem(items: Array<Serialize
|
|
|
18
20
|
* @param metadata - The metadata to include in the envelope.
|
|
19
21
|
* @param tunnel - The tunnel to include in the envelope.
|
|
20
22
|
* @param dsn - The DSN to include in the envelope.
|
|
23
|
+
* @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
|
|
21
24
|
* @returns The created envelope.
|
|
22
25
|
*/
|
|
23
|
-
export declare function createMetricEnvelope(metrics: Array<SerializedMetric>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents): MetricEnvelope;
|
|
26
|
+
export declare function createMetricEnvelope(metrics: Array<SerializedMetric>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents, inferUserData?: boolean): MetricEnvelope;
|
|
24
27
|
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../src/metrics/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../src/metrics/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,EAC9B,aAAa,CAAC,EAAE,OAAO,GACtB,mBAAmB,CAgBrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,EAChC,QAAQ,CAAC,EAAE,WAAW,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,aAAa,EACnB,aAAa,CAAC,EAAE,OAAO,GACtB,cAAc,CAehB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/metrics/internal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,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BAAgB,KAAK,IAAI,CAAC;CAC9E;AAiFD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,IAAI,CA2C1G;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAuB9G;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAE7F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-only utilities for Sentry SDKs.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
export type { ServerRuntimeClientOptions } from './server-runtime-client';
|
|
7
|
+
export { ServerRuntimeClient } from './server-runtime-client';
|
|
8
|
+
export type { ServerRuntimeOptions } from './types-hoist/options';
|
|
9
|
+
export { trpcMiddleware } from './trpc';
|
|
10
|
+
export { wrapMcpServerWithSentry } from './integrations/mcp-server';
|
|
11
|
+
export { isNodeEnv, loadModule } from './utils/node';
|
|
12
|
+
export { filenameIsInApp, node, nodeStackLineParser } from './utils/node-stack-trace';
|
|
13
|
+
export { vercelWaitUntil } from './utils/vercelWaitUntil';
|
|
14
|
+
export { flushIfServerless } from './utils/flushIfServerless';
|
|
15
|
+
export { callFrameToStackFrame, watchdogTimer } from './utils/anr';
|
|
16
|
+
export { safeUnref as _INTERNAL_safeUnref } from './utils/timer';
|
|
17
|
+
export { patchExpressModule, setupExpressErrorHandler, expressErrorHandler } from './integrations/express/index';
|
|
18
|
+
export type { ExpressIntegrationOptions, ExpressHandlerOptions, ExpressMiddleware, ExpressErrorMiddleware, } from './integrations/express/types';
|
|
19
|
+
export { instrumentPostgresJsSql } from './integrations/postgresjs';
|
|
20
|
+
export { patchHttpModuleClient } from './integrations/http/client-patch';
|
|
21
|
+
export { getHttpClientSubscriptions } from './integrations/http/client-subscriptions';
|
|
22
|
+
export { addOutgoingRequestBreadcrumb } from './integrations/http/add-outgoing-request-breadcrumb';
|
|
23
|
+
export { getRequestUrl, getRequestUrlObject, getRequestUrlFromClientRequest, getRequestOptions, } from './integrations/http/get-request-url';
|
|
24
|
+
export { HTTP_ON_CLIENT_REQUEST, HTTP_ON_SERVER_REQUEST } from './integrations/http/constants';
|
|
25
|
+
export type { HttpInstrumentationOptions, HttpClientRequest, HttpIncomingMessage, HttpServerResponse, HttpModuleExport, } from './integrations/http/types';
|
|
26
|
+
//# sourceMappingURL=server-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-exports.d.ts","sourceRoot":"","sources":["../../src/server-exports.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,SAAS,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACjH,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,8BAA8B,EAC9B,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,YAAY,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Sentry core SDK and integrations used by node, node-core, cloudflare,
|
|
3
|
+
* bun, deno, aws lambda, and other server-side platforms, where bundle size
|
|
4
|
+
* is less of an issue.
|
|
5
|
+
*
|
|
6
|
+
* This export should not contain anything strictly browser-specific.
|
|
7
|
+
*/
|
|
8
|
+
export * from './shared-exports';
|
|
9
|
+
export * from './server-exports';
|
|
10
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|