@sentry/cloudflare 10.68.0 → 11.0.0-alpha.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/README.md +3 -7
- package/build/cjs/dev/baseSdk.js +83 -0
- package/build/cjs/dev/baseSdk.js.map +1 -0
- package/build/cjs/{client.js → dev/client.js} +5 -0
- package/build/cjs/dev/client.js.map +1 -0
- package/build/cjs/dev/debug-build.js.map +1 -0
- package/build/cjs/dev/defineCloudflareOptions.js.map +1 -0
- package/build/cjs/dev/durableobject.js +234 -0
- package/build/cjs/dev/durableobject.js.map +1 -0
- package/build/cjs/dev/flush.js.map +1 -0
- package/build/cjs/{index.js → dev/index.js} +18 -17
- package/build/cjs/{index.js.map → dev/index.js.map} +1 -1
- package/build/cjs/dev/instrument.js.map +1 -0
- package/build/cjs/dev/instrumentations/agents/index.js +16 -0
- package/build/cjs/dev/instrumentations/agents/index.js.map +1 -0
- package/build/cjs/dev/instrumentations/agents/instrumentAgentCallableRpc.js +52 -0
- package/build/cjs/dev/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
- package/build/cjs/dev/instrumentations/agents/instrumentAgentRequestConversation.js +19 -0
- package/build/cjs/dev/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
- package/build/cjs/dev/instrumentations/agents/instrumentChatAgentConversation.js +31 -0
- package/build/cjs/dev/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
- package/build/cjs/dev/instrumentations/agents/types.js +77 -0
- package/build/cjs/dev/instrumentations/agents/types.js.map +1 -0
- package/build/cjs/dev/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectStorage.js +6 -0
- package/build/cjs/dev/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
- package/build/cjs/dev/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/instrumentSqlStorage.js +1 -1
- package/build/cjs/dev/instrumentations/instrumentSqlStorage.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/instrumentWorkerEntrypoint.js +3 -3
- package/build/cjs/dev/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentD1.js +0 -4
- package/build/cjs/dev/instrumentations/worker/instrumentD1.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentEmail.js +3 -1
- package/build/cjs/dev/instrumentations/worker/instrumentEmail.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentEnv.js +3 -4
- package/build/cjs/dev/instrumentations/worker/instrumentEnv.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentFetch.js +9 -3
- package/build/cjs/dev/instrumentations/worker/instrumentFetch.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentFetcher.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentQueue.js +3 -2
- package/build/cjs/dev/instrumentations/worker/instrumentQueue.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentR2.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentRateLimit.js.map +1 -0
- package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentScheduled.js +3 -1
- package/build/cjs/dev/instrumentations/worker/instrumentScheduled.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentTail.js.map +1 -0
- package/build/cjs/{integrations → dev/integrations}/fetch.js +1 -1
- package/build/cjs/dev/integrations/fetch.js.map +1 -0
- package/build/cjs/{integrations → dev/integrations}/httpServer.js +5 -4
- package/build/cjs/dev/integrations/httpServer.js.map +1 -0
- package/build/cjs/dev/integrations/spotlight.js +64 -0
- package/build/cjs/dev/integrations/spotlight.js.map +1 -0
- package/build/cjs/{nodejs_compat → dev}/integrations/tracing/vercelai.js +6 -6
- package/build/cjs/dev/integrations/tracing/vercelai.js.map +1 -0
- package/build/cjs/dev/opentelemetry/tracer.js.map +1 -0
- package/build/cjs/dev/options.js +50 -0
- package/build/cjs/dev/options.js.map +1 -0
- package/build/cjs/{pages-plugin.js → dev/pages-plugin.js} +8 -3
- package/build/cjs/dev/pages-plugin.js.map +1 -0
- package/build/cjs/{request.js → dev/request.js} +23 -12
- package/build/cjs/dev/request.js.map +1 -0
- package/build/cjs/dev/scope-utils.js.map +1 -0
- package/build/cjs/dev/sdk.js +19 -0
- package/build/cjs/dev/sdk.js.map +1 -0
- package/build/cjs/dev/transport.js.map +1 -0
- package/build/cjs/{utils → dev/utils}/instrumentContext.js +8 -13
- package/build/cjs/dev/utils/instrumentContext.js.map +1 -0
- package/build/cjs/dev/utils/internalSqlQuery.js +25 -0
- package/build/cjs/dev/utils/internalSqlQuery.js.map +1 -0
- package/build/cjs/dev/utils/internalStorageKey.js +44 -0
- package/build/cjs/dev/utils/internalStorageKey.js.map +1 -0
- package/build/cjs/dev/utils/invocationScope.js +12 -0
- package/build/cjs/dev/utils/invocationScope.js.map +1 -0
- package/build/cjs/dev/utils/isBinding.js.map +1 -0
- package/build/cjs/dev/utils/isCloudflareClass.js.map +1 -0
- package/build/cjs/{utils → dev/utils}/rpcMeta.js +4 -0
- package/build/cjs/dev/utils/rpcMeta.js.map +1 -0
- package/build/cjs/dev/utils/streaming.js.map +1 -0
- package/build/cjs/dev/utils/traceLinks.js.map +1 -0
- package/build/cjs/dev/vendor/stacktrace.js.map +1 -0
- package/build/cjs/dev/vite/agentClass.js +114 -0
- package/build/cjs/dev/vite/agentClass.js.map +1 -0
- package/build/cjs/{vite → dev/vite}/autoInstrument.js +17 -4
- package/build/cjs/dev/vite/autoInstrument.js.map +1 -0
- package/build/cjs/{vite → dev/vite}/index.js +4 -2
- package/build/cjs/dev/vite/index.js.map +1 -0
- package/build/cjs/dev/vite/instrumentFile.js.map +1 -0
- package/build/cjs/dev/vite/moduleShape.js +231 -0
- package/build/cjs/dev/vite/moduleShape.js.map +1 -0
- package/build/cjs/{vite → dev/vite}/transform.js +6 -1
- package/build/cjs/dev/vite/transform.js.map +1 -0
- package/build/cjs/dev/vite/workerEntrypoint.js.map +1 -0
- package/build/cjs/{vite → dev/vite}/wranglerConfig.js +1 -1
- package/build/cjs/dev/vite/wranglerConfig.js.map +1 -0
- package/build/cjs/{withSentry.js → dev/withSentry.js} +2 -19
- package/build/cjs/dev/withSentry.js.map +1 -0
- package/build/cjs/{workflows.js → dev/workflows.js} +9 -4
- package/build/cjs/dev/workflows.js.map +1 -0
- package/build/cjs/{wrapMethodWithSentry.js → dev/wrapMethodWithSentry.js} +2 -3
- package/build/cjs/dev/wrapMethodWithSentry.js.map +1 -0
- package/build/cjs/{sdk.js → prod/baseSdk.js} +25 -17
- package/build/cjs/prod/baseSdk.js.map +1 -0
- package/build/cjs/prod/client.js +122 -0
- package/build/cjs/prod/client.js.map +1 -0
- package/build/cjs/prod/debug-build.js +6 -0
- package/build/cjs/prod/debug-build.js.map +1 -0
- package/build/cjs/prod/defineCloudflareOptions.js +11 -0
- package/build/cjs/prod/defineCloudflareOptions.js.map +1 -0
- package/build/cjs/prod/durableobject.js +234 -0
- package/build/cjs/prod/durableobject.js.map +1 -0
- package/build/cjs/prod/flush.js +87 -0
- package/build/cjs/prod/flush.js.map +1 -0
- package/build/cjs/{nodejs_compat → prod}/index.js +34 -35
- package/build/cjs/{nodejs_compat → prod}/index.js.map +1 -1
- package/build/cjs/prod/instrument.js +52 -0
- package/build/cjs/prod/instrument.js.map +1 -0
- package/build/cjs/prod/instrumentations/agents/index.js +16 -0
- package/build/cjs/prod/instrumentations/agents/index.js.map +1 -0
- package/build/cjs/prod/instrumentations/agents/instrumentAgentCallableRpc.js +52 -0
- package/build/cjs/prod/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
- package/build/cjs/prod/instrumentations/agents/instrumentAgentRequestConversation.js +19 -0
- package/build/cjs/prod/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
- package/build/cjs/prod/instrumentations/agents/instrumentChatAgentConversation.js +31 -0
- package/build/cjs/prod/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
- package/build/cjs/prod/instrumentations/agents/types.js +77 -0
- package/build/cjs/prod/instrumentations/agents/types.js.map +1 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectNamespace.js +41 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectStorage.js +72 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js +40 -0
- package/build/cjs/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
- package/build/cjs/prod/instrumentations/instrumentSqlStorage.js +42 -0
- package/build/cjs/prod/instrumentations/instrumentSqlStorage.js.map +1 -0
- package/build/cjs/prod/instrumentations/instrumentWorkerEntrypoint.js +139 -0
- package/build/cjs/prod/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentD1.js +161 -0
- package/build/cjs/prod/instrumentations/worker/instrumentD1.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentEmail.js +63 -0
- package/build/cjs/prod/instrumentations/worker/instrumentEmail.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentEnv.js +90 -0
- package/build/cjs/prod/instrumentations/worker/instrumentEnv.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentFetch.js +54 -0
- package/build/cjs/prod/instrumentations/worker/instrumentFetch.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentFetcher.js +24 -0
- package/build/cjs/prod/instrumentations/worker/instrumentFetcher.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentQueue.js +82 -0
- package/build/cjs/prod/instrumentations/worker/instrumentQueue.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentQueueProducer.js +80 -0
- package/build/cjs/prod/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentR2.js +124 -0
- package/build/cjs/prod/instrumentations/worker/instrumentR2.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentRateLimit.js +29 -0
- package/build/cjs/prod/instrumentations/worker/instrumentRateLimit.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js +78 -0
- package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentTail.js +60 -0
- package/build/cjs/prod/instrumentations/worker/instrumentTail.js.map +1 -0
- package/build/cjs/prod/integrations/fetch.js +119 -0
- package/build/cjs/prod/integrations/fetch.js.map +1 -0
- package/build/cjs/prod/integrations/httpServer.js +36 -0
- package/build/cjs/prod/integrations/httpServer.js.map +1 -0
- package/build/cjs/prod/integrations/spotlight.js +64 -0
- package/build/cjs/prod/integrations/spotlight.js.map +1 -0
- package/build/cjs/{integrations → prod/integrations}/tracing/vercelai.js +5 -5
- package/build/cjs/prod/integrations/tracing/vercelai.js.map +1 -0
- package/build/cjs/prod/opentelemetry/tracer.js +49 -0
- package/build/cjs/prod/opentelemetry/tracer.js.map +1 -0
- package/build/cjs/{options.js → prod/options.js} +5 -1
- package/build/cjs/prod/options.js.map +1 -0
- package/build/cjs/prod/pages-plugin.js +24 -0
- package/build/cjs/prod/pages-plugin.js.map +1 -0
- package/build/cjs/prod/request.js +132 -0
- package/build/cjs/prod/request.js.map +1 -0
- package/build/cjs/prod/scope-utils.js +22 -0
- package/build/cjs/prod/scope-utils.js.map +1 -0
- package/build/cjs/prod/sdk.js +19 -0
- package/build/cjs/prod/sdk.js.map +1 -0
- package/build/cjs/prod/transport.js +75 -0
- package/build/cjs/prod/transport.js.map +1 -0
- package/build/cjs/prod/utils/instrumentContext.js +63 -0
- package/build/cjs/prod/utils/instrumentContext.js.map +1 -0
- package/build/cjs/prod/utils/internalSqlQuery.js +25 -0
- package/build/cjs/prod/utils/internalSqlQuery.js.map +1 -0
- package/build/cjs/prod/utils/internalStorageKey.js +44 -0
- package/build/cjs/prod/utils/internalStorageKey.js.map +1 -0
- package/build/cjs/prod/utils/invocationScope.js +12 -0
- package/build/cjs/prod/utils/invocationScope.js.map +1 -0
- package/build/cjs/prod/utils/isBinding.js +37 -0
- package/build/cjs/prod/utils/isBinding.js.map +1 -0
- package/build/cjs/prod/utils/isCloudflareClass.js +23 -0
- package/build/cjs/prod/utils/isCloudflareClass.js.map +1 -0
- package/build/cjs/prod/utils/rpcMeta.js +39 -0
- package/build/cjs/prod/utils/rpcMeta.js.map +1 -0
- package/build/cjs/prod/utils/streaming.js +16 -0
- package/build/cjs/prod/utils/streaming.js.map +1 -0
- package/build/cjs/prod/utils/traceLinks.js +54 -0
- package/build/cjs/prod/utils/traceLinks.js.map +1 -0
- package/build/cjs/prod/vendor/stacktrace.js +28 -0
- package/build/cjs/prod/vendor/stacktrace.js.map +1 -0
- package/build/cjs/prod/vite/agentClass.js +114 -0
- package/build/cjs/prod/vite/agentClass.js.map +1 -0
- package/build/cjs/prod/vite/autoInstrument.js +94 -0
- package/build/cjs/prod/vite/autoInstrument.js.map +1 -0
- package/build/cjs/prod/vite/index.js +16 -0
- package/build/cjs/prod/vite/index.js.map +1 -0
- package/build/cjs/prod/vite/instrumentFile.js +31 -0
- package/build/cjs/prod/vite/instrumentFile.js.map +1 -0
- package/build/cjs/prod/vite/moduleShape.js +231 -0
- package/build/cjs/prod/vite/moduleShape.js.map +1 -0
- package/build/cjs/prod/vite/transform.js +149 -0
- package/build/cjs/prod/vite/transform.js.map +1 -0
- package/build/cjs/prod/vite/workerEntrypoint.js +66 -0
- package/build/cjs/prod/vite/workerEntrypoint.js.map +1 -0
- package/build/cjs/prod/vite/wranglerConfig.js +54 -0
- package/build/cjs/prod/vite/wranglerConfig.js.map +1 -0
- package/build/cjs/prod/withSentry.js +29 -0
- package/build/cjs/prod/withSentry.js.map +1 -0
- package/build/cjs/prod/workflows.js +139 -0
- package/build/cjs/prod/workflows.js.map +1 -0
- package/build/cjs/prod/wrapMethodWithSentry.js +134 -0
- package/build/cjs/prod/wrapMethodWithSentry.js.map +1 -0
- package/build/esm/dev/baseSdk.js +79 -0
- package/build/esm/dev/baseSdk.js.map +1 -0
- package/build/esm/{client.js → dev/client.js} +6 -1
- package/build/esm/dev/client.js.map +1 -0
- package/build/esm/dev/debug-build.js.map +1 -0
- package/build/esm/dev/defineCloudflareOptions.js.map +1 -0
- package/build/esm/dev/durableobject.js +229 -0
- package/build/esm/dev/durableobject.js.map +1 -0
- package/build/esm/dev/flush.js.map +1 -0
- package/build/esm/dev/index.js +15 -0
- package/build/esm/{index.js.map → dev/index.js.map} +1 -1
- package/build/esm/dev/instrument.js.map +1 -0
- package/build/esm/dev/instrumentations/agents/index.js +14 -0
- package/build/esm/dev/instrumentations/agents/index.js.map +1 -0
- package/build/esm/dev/instrumentations/agents/instrumentAgentCallableRpc.js +50 -0
- package/build/esm/dev/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
- package/build/esm/dev/instrumentations/agents/instrumentAgentRequestConversation.js +17 -0
- package/build/esm/dev/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
- package/build/esm/dev/instrumentations/agents/instrumentChatAgentConversation.js +29 -0
- package/build/esm/dev/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
- package/build/esm/dev/instrumentations/agents/types.js +69 -0
- package/build/esm/dev/instrumentations/agents/types.js.map +1 -0
- package/build/esm/dev/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectStorage.js +7 -1
- package/build/esm/dev/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
- package/build/esm/dev/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/instrumentSqlStorage.js +1 -1
- package/build/esm/dev/instrumentations/instrumentSqlStorage.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/instrumentWorkerEntrypoint.js +2 -2
- package/build/esm/dev/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentD1.js +1 -4
- package/build/esm/dev/instrumentations/worker/instrumentD1.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentEmail.js +3 -1
- package/build/esm/dev/instrumentations/worker/instrumentEmail.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentEnv.js +3 -4
- package/build/esm/dev/instrumentations/worker/instrumentEnv.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentFetch.js +10 -4
- package/build/esm/dev/instrumentations/worker/instrumentFetch.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentFetcher.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentQueue.js +4 -3
- package/build/esm/dev/instrumentations/worker/instrumentQueue.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentR2.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentRateLimit.js.map +1 -0
- package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentScheduled.js +3 -1
- package/build/esm/dev/instrumentations/worker/instrumentScheduled.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentTail.js.map +1 -0
- package/build/esm/{integrations → dev/integrations}/fetch.js +1 -1
- package/build/esm/dev/integrations/fetch.js.map +1 -0
- package/build/esm/{integrations → dev/integrations}/httpServer.js +5 -4
- package/build/esm/dev/integrations/httpServer.js.map +1 -0
- package/build/esm/dev/integrations/spotlight.js +61 -0
- package/build/esm/dev/integrations/spotlight.js.map +1 -0
- package/build/esm/{integrations → dev/integrations}/tracing/vercelai.js +5 -5
- package/build/esm/dev/integrations/tracing/vercelai.js.map +1 -0
- package/build/esm/dev/opentelemetry/tracer.js.map +1 -0
- package/build/esm/dev/options.js +48 -0
- package/build/esm/dev/options.js.map +1 -0
- package/build/esm/dev/package.json +1 -0
- package/build/esm/{pages-plugin.js → dev/pages-plugin.js} +8 -3
- package/build/esm/dev/pages-plugin.js.map +1 -0
- package/build/esm/{request.js → dev/request.js} +24 -14
- package/build/esm/dev/request.js.map +1 -0
- package/build/esm/dev/scope-utils.js.map +1 -0
- package/build/esm/dev/sdk.js +16 -0
- package/build/esm/dev/sdk.js.map +1 -0
- package/build/esm/dev/transport.js.map +1 -0
- package/build/esm/{utils → dev/utils}/instrumentContext.js +8 -13
- package/build/esm/dev/utils/instrumentContext.js.map +1 -0
- package/build/esm/dev/utils/internalSqlQuery.js +23 -0
- package/build/esm/dev/utils/internalSqlQuery.js.map +1 -0
- package/build/esm/dev/utils/internalStorageKey.js +41 -0
- package/build/esm/dev/utils/internalStorageKey.js.map +1 -0
- package/build/esm/dev/utils/invocationScope.js +10 -0
- package/build/esm/dev/utils/invocationScope.js.map +1 -0
- package/build/esm/dev/utils/isBinding.js.map +1 -0
- package/build/esm/dev/utils/isCloudflareClass.js.map +1 -0
- package/build/esm/{utils → dev/utils}/rpcMeta.js +4 -1
- package/build/esm/dev/utils/rpcMeta.js.map +1 -0
- package/build/esm/dev/utils/streaming.js.map +1 -0
- package/build/esm/dev/utils/traceLinks.js.map +1 -0
- package/build/esm/dev/vendor/stacktrace.js.map +1 -0
- package/build/esm/dev/vite/agentClass.js +111 -0
- package/build/esm/dev/vite/agentClass.js.map +1 -0
- package/build/esm/{vite → dev/vite}/autoInstrument.js +17 -4
- package/build/esm/dev/vite/autoInstrument.js.map +1 -0
- package/build/esm/{vite → dev/vite}/index.js +4 -2
- package/build/esm/dev/vite/index.js.map +1 -0
- package/build/esm/dev/vite/instrumentFile.js.map +1 -0
- package/build/esm/dev/vite/moduleShape.js +227 -0
- package/build/esm/dev/vite/moduleShape.js.map +1 -0
- package/build/esm/{vite → dev/vite}/transform.js +6 -1
- package/build/esm/dev/vite/transform.js.map +1 -0
- package/build/esm/dev/vite/workerEntrypoint.js.map +1 -0
- package/build/esm/{vite → dev/vite}/wranglerConfig.js +1 -1
- package/build/esm/dev/vite/wranglerConfig.js.map +1 -0
- package/build/esm/{withSentry.js → dev/withSentry.js} +1 -18
- package/build/esm/dev/withSentry.js.map +1 -0
- package/build/esm/{workflows.js → dev/workflows.js} +9 -4
- package/build/esm/dev/workflows.js.map +1 -0
- package/build/esm/{wrapMethodWithSentry.js → dev/wrapMethodWithSentry.js} +3 -4
- package/build/esm/dev/wrapMethodWithSentry.js.map +1 -0
- package/build/esm/{sdk.js → prod/baseSdk.js} +24 -17
- package/build/esm/prod/baseSdk.js.map +1 -0
- package/build/esm/prod/client.js +120 -0
- package/build/esm/prod/client.js.map +1 -0
- package/build/esm/prod/debug-build.js +4 -0
- package/build/esm/prod/debug-build.js.map +1 -0
- package/build/esm/prod/defineCloudflareOptions.js +9 -0
- package/build/esm/prod/defineCloudflareOptions.js.map +1 -0
- package/build/esm/prod/durableobject.js +229 -0
- package/build/esm/prod/durableobject.js.map +1 -0
- package/build/esm/prod/flush.js +83 -0
- package/build/esm/prod/flush.js.map +1 -0
- package/build/esm/prod/index.js +15 -0
- package/build/esm/{nodejs_compat → prod}/index.js.map +1 -1
- package/build/esm/prod/instrument.js +48 -0
- package/build/esm/prod/instrument.js.map +1 -0
- package/build/esm/prod/instrumentations/agents/index.js +14 -0
- package/build/esm/prod/instrumentations/agents/index.js.map +1 -0
- package/build/esm/prod/instrumentations/agents/instrumentAgentCallableRpc.js +50 -0
- package/build/esm/prod/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
- package/build/esm/prod/instrumentations/agents/instrumentAgentRequestConversation.js +17 -0
- package/build/esm/prod/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
- package/build/esm/prod/instrumentations/agents/instrumentChatAgentConversation.js +29 -0
- package/build/esm/prod/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
- package/build/esm/prod/instrumentations/agents/types.js +69 -0
- package/build/esm/prod/instrumentations/agents/types.js.map +1 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectNamespace.js +38 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectStorage.js +70 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js +38 -0
- package/build/esm/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
- package/build/esm/prod/instrumentations/instrumentSqlStorage.js +40 -0
- package/build/esm/prod/instrumentations/instrumentSqlStorage.js.map +1 -0
- package/build/esm/prod/instrumentations/instrumentWorkerEntrypoint.js +137 -0
- package/build/esm/prod/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentD1.js +159 -0
- package/build/esm/prod/instrumentations/worker/instrumentD1.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentEmail.js +61 -0
- package/build/esm/prod/instrumentations/worker/instrumentEmail.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentEnv.js +88 -0
- package/build/esm/prod/instrumentations/worker/instrumentEnv.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentFetch.js +51 -0
- package/build/esm/prod/instrumentations/worker/instrumentFetch.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentFetcher.js +22 -0
- package/build/esm/prod/instrumentations/worker/instrumentFetcher.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentQueue.js +79 -0
- package/build/esm/prod/instrumentations/worker/instrumentQueue.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentQueueProducer.js +78 -0
- package/build/esm/prod/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentR2.js +122 -0
- package/build/esm/prod/instrumentations/worker/instrumentR2.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentRateLimit.js +27 -0
- package/build/esm/prod/instrumentations/worker/instrumentRateLimit.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentScheduled.js +75 -0
- package/build/esm/prod/instrumentations/worker/instrumentScheduled.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentTail.js +57 -0
- package/build/esm/prod/instrumentations/worker/instrumentTail.js.map +1 -0
- package/build/esm/prod/integrations/fetch.js +117 -0
- package/build/esm/prod/integrations/fetch.js.map +1 -0
- package/build/esm/prod/integrations/httpServer.js +33 -0
- package/build/esm/prod/integrations/httpServer.js.map +1 -0
- package/build/esm/prod/integrations/spotlight.js +61 -0
- package/build/esm/prod/integrations/spotlight.js.map +1 -0
- package/build/esm/prod/integrations/tracing/vercelai.js +16 -0
- package/build/esm/prod/integrations/tracing/vercelai.js.map +1 -0
- package/build/esm/prod/opentelemetry/tracer.js +47 -0
- package/build/esm/prod/opentelemetry/tracer.js.map +1 -0
- package/build/esm/{options.js → prod/options.js} +5 -1
- package/build/esm/prod/options.js.map +1 -0
- package/build/esm/prod/package.json +1 -0
- package/build/esm/prod/pages-plugin.js +22 -0
- package/build/esm/prod/pages-plugin.js.map +1 -0
- package/build/esm/prod/request.js +129 -0
- package/build/esm/prod/request.js.map +1 -0
- package/build/esm/prod/scope-utils.js +18 -0
- package/build/esm/prod/scope-utils.js.map +1 -0
- package/build/esm/prod/sdk.js +16 -0
- package/build/esm/prod/sdk.js.map +1 -0
- package/build/esm/prod/transport.js +72 -0
- package/build/esm/prod/transport.js.map +1 -0
- package/build/esm/prod/utils/instrumentContext.js +61 -0
- package/build/esm/prod/utils/instrumentContext.js.map +1 -0
- package/build/esm/prod/utils/internalSqlQuery.js +23 -0
- package/build/esm/prod/utils/internalSqlQuery.js.map +1 -0
- package/build/esm/prod/utils/internalStorageKey.js +41 -0
- package/build/esm/prod/utils/internalStorageKey.js.map +1 -0
- package/build/esm/prod/utils/invocationScope.js +10 -0
- package/build/esm/prod/utils/invocationScope.js.map +1 -0
- package/build/esm/prod/utils/isBinding.js +29 -0
- package/build/esm/prod/utils/isBinding.js.map +1 -0
- package/build/esm/prod/utils/isCloudflareClass.js +21 -0
- package/build/esm/prod/utils/isCloudflareClass.js.map +1 -0
- package/build/esm/prod/utils/rpcMeta.js +35 -0
- package/build/esm/prod/utils/rpcMeta.js.map +1 -0
- package/build/esm/prod/utils/streaming.js +14 -0
- package/build/esm/prod/utils/streaming.js.map +1 -0
- package/build/esm/prod/utils/traceLinks.js +49 -0
- package/build/esm/prod/utils/traceLinks.js.map +1 -0
- package/build/esm/prod/vendor/stacktrace.js +25 -0
- package/build/esm/prod/vendor/stacktrace.js.map +1 -0
- package/build/esm/prod/vite/agentClass.js +111 -0
- package/build/esm/prod/vite/agentClass.js.map +1 -0
- package/build/esm/prod/vite/autoInstrument.js +92 -0
- package/build/esm/prod/vite/autoInstrument.js.map +1 -0
- package/build/esm/prod/vite/index.js +14 -0
- package/build/esm/prod/vite/index.js.map +1 -0
- package/build/esm/prod/vite/instrumentFile.js +27 -0
- package/build/esm/prod/vite/instrumentFile.js.map +1 -0
- package/build/esm/prod/vite/moduleShape.js +227 -0
- package/build/esm/prod/vite/moduleShape.js.map +1 -0
- package/build/esm/prod/vite/transform.js +147 -0
- package/build/esm/prod/vite/transform.js.map +1 -0
- package/build/esm/prod/vite/workerEntrypoint.js +64 -0
- package/build/esm/prod/vite/workerEntrypoint.js.map +1 -0
- package/build/esm/prod/vite/wranglerConfig.js +52 -0
- package/build/esm/prod/vite/wranglerConfig.js.map +1 -0
- package/build/esm/prod/withSentry.js +27 -0
- package/build/esm/prod/withSentry.js.map +1 -0
- package/build/esm/prod/workflows.js +136 -0
- package/build/esm/prod/workflows.js.map +1 -0
- package/build/esm/prod/wrapMethodWithSentry.js +132 -0
- package/build/esm/prod/wrapMethodWithSentry.js.map +1 -0
- package/build/types/baseSdk.d.ts +28 -0
- package/build/types/baseSdk.d.ts.map +1 -0
- package/build/types/client.d.ts +43 -33
- package/build/types/client.d.ts.map +1 -1
- package/build/types/defineCloudflareOptions.d.ts +2 -2
- package/build/types/defineCloudflareOptions.d.ts.map +1 -1
- package/build/types/durableobject.d.ts +93 -2
- package/build/types/durableobject.d.ts.map +1 -1
- package/build/types/flush.d.ts +1 -1
- package/build/types/flush.d.ts.map +1 -1
- package/build/types/index.d.ts +5 -6
- package/build/types/index.d.ts.map +1 -1
- package/build/types/instrumentations/agents/index.d.ts +25 -0
- package/build/types/instrumentations/agents/index.d.ts.map +1 -0
- package/build/types/instrumentations/agents/instrumentAgentCallableRpc.d.ts +14 -0
- package/build/types/instrumentations/agents/instrumentAgentCallableRpc.d.ts.map +1 -0
- package/build/types/instrumentations/agents/instrumentAgentRequestConversation.d.ts +16 -0
- package/build/types/instrumentations/agents/instrumentAgentRequestConversation.d.ts.map +1 -0
- package/build/types/instrumentations/agents/instrumentChatAgentConversation.d.ts +23 -0
- package/build/types/instrumentations/agents/instrumentChatAgentConversation.d.ts.map +1 -0
- package/build/types/instrumentations/agents/types.d.ts +94 -0
- package/build/types/instrumentations/agents/types.d.ts.map +1 -0
- package/build/types/instrumentations/instrumentDurableObjectStorage.d.ts.map +1 -1
- package/build/types/instrumentations/instrumentSqlStorage.d.ts.map +1 -1
- package/build/types/instrumentations/instrumentWorkerEntrypoint.d.ts +2 -1
- package/build/types/instrumentations/instrumentWorkerEntrypoint.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentD1.d.ts +0 -16
- package/build/types/instrumentations/worker/instrumentD1.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentEmail.d.ts +2 -2
- package/build/types/instrumentations/worker/instrumentEmail.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentEnv.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentFetch.d.ts +2 -2
- package/build/types/instrumentations/worker/instrumentFetch.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentQueue.d.ts +2 -2
- package/build/types/instrumentations/worker/instrumentQueue.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentScheduled.d.ts +2 -2
- package/build/types/instrumentations/worker/instrumentScheduled.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentTail.d.ts +2 -2
- package/build/types/instrumentations/worker/instrumentTail.d.ts.map +1 -1
- package/build/types/integrations/httpServer.d.ts.map +1 -1
- package/build/types/integrations/spotlight.d.ts +22 -0
- package/build/types/integrations/spotlight.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai.d.ts +2 -9
- package/build/types/integrations/tracing/vercelai.d.ts.map +1 -1
- package/build/types/options.d.ts.map +1 -1
- package/build/types/pages-plugin.d.ts +1 -1
- package/build/types/pages-plugin.d.ts.map +1 -1
- package/build/types/request.d.ts +17 -2
- package/build/types/request.d.ts.map +1 -1
- package/build/types/sdk.d.ts +8 -3
- package/build/types/sdk.d.ts.map +1 -1
- package/build/types/transport.d.ts.map +1 -1
- package/build/types/types.d.ts +85 -0
- package/build/types/types.d.ts.map +1 -0
- package/build/types/utils/instrumentContext.d.ts.map +1 -1
- package/build/types/utils/internalSqlQuery.d.ts +4 -2
- package/build/types/utils/internalSqlQuery.d.ts.map +1 -1
- package/build/types/utils/internalStorageKey.d.ts +22 -0
- package/build/types/utils/internalStorageKey.d.ts.map +1 -0
- package/build/types/utils/invocationScope.d.ts +24 -0
- package/build/types/utils/invocationScope.d.ts.map +1 -0
- package/build/types/utils/isCloudflareClass.d.ts +1 -1
- package/build/types/utils/isCloudflareClass.d.ts.map +1 -1
- package/build/types/utils/rpcMeta.d.ts +8 -0
- package/build/types/utils/rpcMeta.d.ts.map +1 -1
- package/build/types/vite/agentClass.d.ts +41 -0
- package/build/types/vite/agentClass.d.ts.map +1 -0
- package/build/types/vite/autoInstrument.d.ts +7 -6
- package/build/types/vite/autoInstrument.d.ts.map +1 -1
- package/build/types/vite/index.d.ts +31 -45
- package/build/types/vite/index.d.ts.map +1 -1
- package/build/types/vite/moduleShape.d.ts +52 -0
- package/build/types/vite/moduleShape.d.ts.map +1 -0
- package/build/types/vite/transform.d.ts +6 -1
- package/build/types/vite/transform.d.ts.map +1 -1
- package/build/types/withSentry.d.ts +2 -2
- package/build/types/withSentry.d.ts.map +1 -1
- package/build/types/workflows.d.ts +5 -4
- package/build/types/workflows.d.ts.map +1 -1
- package/build/types/wrapMethodWithSentry.d.ts +1 -1
- package/build/types/wrapMethodWithSentry.d.ts.map +1 -1
- package/package.json +28 -51
- package/build/cjs/async.js +0 -63
- package/build/cjs/async.js.map +0 -1
- package/build/cjs/client.js.map +0 -1
- package/build/cjs/debug-build.js.map +0 -1
- package/build/cjs/defineCloudflareOptions.js.map +0 -1
- package/build/cjs/durableobject.js +0 -120
- package/build/cjs/durableobject.js.map +0 -1
- package/build/cjs/flush.js.map +0 -1
- package/build/cjs/instrument.js.map +0 -1
- package/build/cjs/instrumentations/instrumentDurableObjectNamespace.js.map +0 -1
- package/build/cjs/instrumentations/instrumentDurableObjectStorage.js.map +0 -1
- package/build/cjs/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +0 -1
- package/build/cjs/instrumentations/instrumentSqlStorage.js.map +0 -1
- package/build/cjs/instrumentations/instrumentWorkerEntrypoint.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentD1.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentEmail.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentEnv.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentFetch.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentFetcher.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentQueue.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentQueueProducer.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentR2.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentRateLimit.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentScheduled.js.map +0 -1
- package/build/cjs/instrumentations/worker/instrumentTail.js.map +0 -1
- package/build/cjs/integrations/fetch.js.map +0 -1
- package/build/cjs/integrations/hono.js +0 -52
- package/build/cjs/integrations/hono.js.map +0 -1
- package/build/cjs/integrations/httpServer.js.map +0 -1
- package/build/cjs/integrations/tracing/vercelai.js.map +0 -1
- package/build/cjs/nodejs_compat/integrations/tracing/vercelai.js.map +0 -1
- package/build/cjs/opentelemetry/tracer.js.map +0 -1
- package/build/cjs/options.js.map +0 -1
- package/build/cjs/pages-plugin.js.map +0 -1
- package/build/cjs/request.js.map +0 -1
- package/build/cjs/scope-utils.js.map +0 -1
- package/build/cjs/sdk.js.map +0 -1
- package/build/cjs/transport.js.map +0 -1
- package/build/cjs/utils/instrumentContext.js.map +0 -1
- package/build/cjs/utils/internalSqlQuery.js +0 -19
- package/build/cjs/utils/internalSqlQuery.js.map +0 -1
- package/build/cjs/utils/isBinding.js.map +0 -1
- package/build/cjs/utils/isCloudflareClass.js.map +0 -1
- package/build/cjs/utils/rpcMeta.js.map +0 -1
- package/build/cjs/utils/rpcOptions.js +0 -26
- package/build/cjs/utils/rpcOptions.js.map +0 -1
- package/build/cjs/utils/streaming.js.map +0 -1
- package/build/cjs/utils/traceLinks.js.map +0 -1
- package/build/cjs/vendor/stacktrace.js.map +0 -1
- package/build/cjs/vite/autoInstrument.js.map +0 -1
- package/build/cjs/vite/index.js.map +0 -1
- package/build/cjs/vite/instrumentFile.js.map +0 -1
- package/build/cjs/vite/transform.js.map +0 -1
- package/build/cjs/vite/workerEntrypoint.js.map +0 -1
- package/build/cjs/vite/wranglerConfig.js.map +0 -1
- package/build/cjs/withSentry.js.map +0 -1
- package/build/cjs/workflows.js.map +0 -1
- package/build/cjs/wrapMethodWithSentry.js.map +0 -1
- package/build/esm/async.js +0 -61
- package/build/esm/async.js.map +0 -1
- package/build/esm/client.js.map +0 -1
- package/build/esm/debug-build.js.map +0 -1
- package/build/esm/defineCloudflareOptions.js.map +0 -1
- package/build/esm/durableobject.js +0 -118
- package/build/esm/durableobject.js.map +0 -1
- package/build/esm/flush.js.map +0 -1
- package/build/esm/index.js +0 -16
- package/build/esm/instrument.js.map +0 -1
- package/build/esm/instrumentations/instrumentDurableObjectNamespace.js.map +0 -1
- package/build/esm/instrumentations/instrumentDurableObjectStorage.js.map +0 -1
- package/build/esm/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +0 -1
- package/build/esm/instrumentations/instrumentSqlStorage.js.map +0 -1
- package/build/esm/instrumentations/instrumentWorkerEntrypoint.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentD1.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentEmail.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentEnv.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentFetch.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentFetcher.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentQueue.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentQueueProducer.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentR2.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentRateLimit.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentScheduled.js.map +0 -1
- package/build/esm/instrumentations/worker/instrumentTail.js.map +0 -1
- package/build/esm/integrations/fetch.js.map +0 -1
- package/build/esm/integrations/hono.js +0 -49
- package/build/esm/integrations/hono.js.map +0 -1
- package/build/esm/integrations/httpServer.js.map +0 -1
- package/build/esm/integrations/tracing/vercelai.js.map +0 -1
- package/build/esm/nodejs_compat/index.js +0 -17
- package/build/esm/nodejs_compat/integrations/tracing/vercelai.js +0 -16
- package/build/esm/nodejs_compat/integrations/tracing/vercelai.js.map +0 -1
- package/build/esm/opentelemetry/tracer.js.map +0 -1
- package/build/esm/options.js.map +0 -1
- package/build/esm/package.json +0 -1
- package/build/esm/pages-plugin.js.map +0 -1
- package/build/esm/request.js.map +0 -1
- package/build/esm/scope-utils.js.map +0 -1
- package/build/esm/sdk.js.map +0 -1
- package/build/esm/transport.js.map +0 -1
- package/build/esm/utils/instrumentContext.js.map +0 -1
- package/build/esm/utils/internalSqlQuery.js +0 -17
- package/build/esm/utils/internalSqlQuery.js.map +0 -1
- package/build/esm/utils/isBinding.js.map +0 -1
- package/build/esm/utils/isCloudflareClass.js.map +0 -1
- package/build/esm/utils/rpcMeta.js.map +0 -1
- package/build/esm/utils/rpcOptions.js +0 -24
- package/build/esm/utils/rpcOptions.js.map +0 -1
- package/build/esm/utils/streaming.js.map +0 -1
- package/build/esm/utils/traceLinks.js.map +0 -1
- package/build/esm/vendor/stacktrace.js.map +0 -1
- package/build/esm/vite/autoInstrument.js.map +0 -1
- package/build/esm/vite/index.js.map +0 -1
- package/build/esm/vite/instrumentFile.js.map +0 -1
- package/build/esm/vite/transform.js.map +0 -1
- package/build/esm/vite/workerEntrypoint.js.map +0 -1
- package/build/esm/vite/wranglerConfig.js.map +0 -1
- package/build/esm/withSentry.js.map +0 -1
- package/build/esm/workflows.js.map +0 -1
- package/build/esm/wrapMethodWithSentry.js.map +0 -1
- package/build/types/async.d.ts +0 -11
- package/build/types/async.d.ts.map +0 -1
- package/build/types/integrations/hono.d.ts +0 -42
- package/build/types/integrations/hono.d.ts.map +0 -1
- package/build/types/nodejs_compat/index.d.ts +0 -4
- package/build/types/nodejs_compat/index.d.ts.map +0 -1
- package/build/types/nodejs_compat/integrations/tracing/vercelai.d.ts +0 -37
- package/build/types/nodejs_compat/integrations/tracing/vercelai.d.ts.map +0 -1
- package/build/types/utils/rpcOptions.d.ts +0 -13
- package/build/types/utils/rpcOptions.d.ts.map +0 -1
- package/build/types-ts3.8/async.d.ts +0 -11
- package/build/types-ts3.8/client.d.ts +0 -166
- package/build/types-ts3.8/debug-build.d.ts +0 -7
- package/build/types-ts3.8/defineCloudflareOptions.d.ts +0 -38
- package/build/types-ts3.8/durableobject.d.ts +0 -37
- package/build/types-ts3.8/executionContext.d.ts +0 -13
- package/build/types-ts3.8/flush.d.ts +0 -47
- package/build/types-ts3.8/index.d.ts +0 -18
- package/build/types-ts3.8/instrument.d.ts +0 -20
- package/build/types-ts3.8/instrumentations/instrumentDurableObjectNamespace.d.ts +0 -13
- package/build/types-ts3.8/instrumentations/instrumentDurableObjectStorage.d.ts +0 -19
- package/build/types-ts3.8/instrumentations/instrumentDurableObjectSyncKvStorage.d.ts +0 -3
- package/build/types-ts3.8/instrumentations/instrumentSqlStorage.d.ts +0 -9
- package/build/types-ts3.8/instrumentations/instrumentWorkerEntrypoint.d.ts +0 -42
- package/build/types-ts3.8/instrumentations/worker/instrumentD1.d.ts +0 -19
- package/build/types-ts3.8/instrumentations/worker/instrumentEmail.d.ts +0 -8
- package/build/types-ts3.8/instrumentations/worker/instrumentEnv.d.ts +0 -18
- package/build/types-ts3.8/instrumentations/worker/instrumentFetch.d.ts +0 -12
- package/build/types-ts3.8/instrumentations/worker/instrumentFetcher.d.ts +0 -10
- package/build/types-ts3.8/instrumentations/worker/instrumentQueue.d.ts +0 -12
- package/build/types-ts3.8/instrumentations/worker/instrumentQueueProducer.d.ts +0 -10
- package/build/types-ts3.8/instrumentations/worker/instrumentR2.d.ts +0 -9
- package/build/types-ts3.8/instrumentations/worker/instrumentRateLimit.d.ts +0 -6
- package/build/types-ts3.8/instrumentations/worker/instrumentScheduled.d.ts +0 -12
- package/build/types-ts3.8/instrumentations/worker/instrumentTail.d.ts +0 -12
- package/build/types-ts3.8/integrations/fetch.d.ts +0 -19
- package/build/types-ts3.8/integrations/hono.d.ts +0 -42
- package/build/types-ts3.8/integrations/httpServer.d.ts +0 -63
- package/build/types-ts3.8/integrations/tracing/vercelai.d.ts +0 -47
- package/build/types-ts3.8/nodejs_compat/index.d.ts +0 -4
- package/build/types-ts3.8/nodejs_compat/integrations/tracing/vercelai.d.ts +0 -37
- package/build/types-ts3.8/opentelemetry/tracer.d.ts +0 -6
- package/build/types-ts3.8/options.d.ts +0 -17
- package/build/types-ts3.8/pages-plugin.d.ts +0 -34
- package/build/types-ts3.8/request.d.ts +0 -25
- package/build/types-ts3.8/scope-utils.d.ts +0 -15
- package/build/types-ts3.8/sdk.d.ts +0 -10
- package/build/types-ts3.8/transport.d.ts +0 -34
- package/build/types-ts3.8/utils/instrumentContext.d.ts +0 -16
- package/build/types-ts3.8/utils/internalSqlQuery.d.ts +0 -18
- package/build/types-ts3.8/utils/isBinding.d.ts +0 -77
- package/build/types-ts3.8/utils/isCloudflareClass.d.ts +0 -30
- package/build/types-ts3.8/utils/rpcMeta.d.ts +0 -15
- package/build/types-ts3.8/utils/rpcOptions.d.ts +0 -13
- package/build/types-ts3.8/utils/streaming.d.ts +0 -17
- package/build/types-ts3.8/utils/traceLinks.d.ts +0 -28
- package/build/types-ts3.8/vendor/stacktrace.d.ts +0 -11
- package/build/types-ts3.8/vite/autoInstrument.d.ts +0 -21
- package/build/types-ts3.8/vite/index.d.ts +0 -88
- package/build/types-ts3.8/vite/instrumentFile.d.ts +0 -22
- package/build/types-ts3.8/vite/transform.d.ts +0 -60
- package/build/types-ts3.8/vite/workerEntrypoint.d.ts +0 -12
- package/build/types-ts3.8/vite/wranglerConfig.d.ts +0 -43
- package/build/types-ts3.8/withSentry.d.ts +0 -16
- package/build/types-ts3.8/workflows.d.ts +0 -25
- package/build/types-ts3.8/wrapMethodWithSentry.d.ts +0 -43
- /package/build/cjs/{debug-build.js → dev/debug-build.js} +0 -0
- /package/build/cjs/{defineCloudflareOptions.js → dev/defineCloudflareOptions.js} +0 -0
- /package/build/cjs/{flush.js → dev/flush.js} +0 -0
- /package/build/cjs/{instrument.js → dev/instrument.js} +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectNamespace.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectSyncKvStorage.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentFetcher.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentQueueProducer.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentR2.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentRateLimit.js +0 -0
- /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentTail.js +0 -0
- /package/build/cjs/{opentelemetry → dev/opentelemetry}/tracer.js +0 -0
- /package/build/cjs/{scope-utils.js → dev/scope-utils.js} +0 -0
- /package/build/cjs/{transport.js → dev/transport.js} +0 -0
- /package/build/cjs/{utils → dev/utils}/isBinding.js +0 -0
- /package/build/cjs/{utils → dev/utils}/isCloudflareClass.js +0 -0
- /package/build/cjs/{utils → dev/utils}/streaming.js +0 -0
- /package/build/cjs/{utils → dev/utils}/traceLinks.js +0 -0
- /package/build/cjs/{vendor → dev/vendor}/stacktrace.js +0 -0
- /package/build/cjs/{vite → dev/vite}/instrumentFile.js +0 -0
- /package/build/cjs/{vite → dev/vite}/workerEntrypoint.js +0 -0
- /package/build/esm/{debug-build.js → dev/debug-build.js} +0 -0
- /package/build/esm/{defineCloudflareOptions.js → dev/defineCloudflareOptions.js} +0 -0
- /package/build/esm/{flush.js → dev/flush.js} +0 -0
- /package/build/esm/{instrument.js → dev/instrument.js} +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectNamespace.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectSyncKvStorage.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentFetcher.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentQueueProducer.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentR2.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentRateLimit.js +0 -0
- /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentTail.js +0 -0
- /package/build/esm/{opentelemetry → dev/opentelemetry}/tracer.js +0 -0
- /package/build/esm/{scope-utils.js → dev/scope-utils.js} +0 -0
- /package/build/esm/{transport.js → dev/transport.js} +0 -0
- /package/build/esm/{utils → dev/utils}/isBinding.js +0 -0
- /package/build/esm/{utils → dev/utils}/isCloudflareClass.js +0 -0
- /package/build/esm/{utils → dev/utils}/streaming.js +0 -0
- /package/build/esm/{utils → dev/utils}/traceLinks.js +0 -0
- /package/build/esm/{vendor → dev/vendor}/stacktrace.js +0 -0
- /package/build/esm/{vite → dev/vite}/instrumentFile.js +0 -0
- /package/build/esm/{vite → dev/vite}/workerEntrypoint.js +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CloudflareOptions } from './client';
|
|
2
|
-
/**
|
|
3
|
-
* Plugin middleware for Cloudflare Pages.
|
|
4
|
-
*
|
|
5
|
-
* Initializes the SDK and wraps cloudflare pages requests with SDK instrumentation.
|
|
6
|
-
*
|
|
7
|
-
* @example Simple usage
|
|
8
|
-
*
|
|
9
|
-
* ```javascript
|
|
10
|
-
* // functions/_middleware.js
|
|
11
|
-
* import * as Sentry from '@sentry/cloudflare';
|
|
12
|
-
*
|
|
13
|
-
* export const onRequest = Sentry.sentryPagesPlugin({
|
|
14
|
-
* dsn: process.env.SENTRY_DSN,
|
|
15
|
-
* tracesSampleRate: 1.0,
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @example Usage with handler function to access context for environmental variables
|
|
20
|
-
*
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import * as Sentry from '@sentry/cloudflare';
|
|
23
|
-
*
|
|
24
|
-
* const const onRequest = Sentry.sentryPagesPlugin((context) => ({
|
|
25
|
-
* dsn: context.env.SENTRY_DSN,
|
|
26
|
-
* tracesSampleRate: 1.0,
|
|
27
|
-
* })
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @param handlerOrOptions Configuration options or a function that returns configuration options.
|
|
31
|
-
* @returns A plugin function that can be used in Cloudflare Pages.
|
|
32
|
-
*/
|
|
33
|
-
export declare function sentryPagesPlugin<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>, PluginParams = any>(handlerOrOptions: CloudflareOptions | ((context: EventPluginContext<Env, Params, Data, PluginParams>) => CloudflareOptions)): PagesPluginFunction<Env, Params, Data, PluginParams>;
|
|
34
|
-
//# sourceMappingURL=pages-plugin.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CfProperties, IncomingRequestCfProperties } from '@cloudflare/workers-types';
|
|
2
|
-
import { CloudflareOptions } from './client';
|
|
3
|
-
import { ExecutionContextCompat } from './executionContext';
|
|
4
|
-
interface RequestHandlerWrapperOptions {
|
|
5
|
-
options: CloudflareOptions;
|
|
6
|
-
request: Request<unknown, IncomingRequestCfProperties<unknown> | CfProperties<unknown>>;
|
|
7
|
-
context: ExecutionContextCompat | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* If true, errors will be captured, rethrown and sent to Sentry.
|
|
10
|
-
* Otherwise, errors are rethrown but not captured.
|
|
11
|
-
*
|
|
12
|
-
* You most likely don't want to set this to `false`, if you use `wrapRequestHandler` directly.
|
|
13
|
-
* This is primarily meant as an escape hatch for higher-level SDKs relying on additional error
|
|
14
|
-
* capturing mechanisms where this wrapper captures errors too early or too generally.
|
|
15
|
-
*
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
captureErrors?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Wraps a cloudflare request handler in Sentry instrumentation
|
|
22
|
-
*/
|
|
23
|
-
export declare function wrapRequestHandler(wrapperOptions: RequestHandlerWrapperOptions, handler: (...args: unknown[]) => Response | Promise<Response>): Promise<Response>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CfProperties, IncomingRequestCfProperties } from '@cloudflare/workers-types';
|
|
2
|
-
import { Scope } from '@sentry/core';
|
|
3
|
-
/**
|
|
4
|
-
* Set cloud resource context on scope.
|
|
5
|
-
*/
|
|
6
|
-
export declare function addCloudResourceContext(scope: Scope): void;
|
|
7
|
-
/**
|
|
8
|
-
* Set culture context on scope
|
|
9
|
-
*/
|
|
10
|
-
export declare function addCultureContext(scope: Scope, cf: IncomingRequestCfProperties | CfProperties): void;
|
|
11
|
-
/**
|
|
12
|
-
* Set request data on scope
|
|
13
|
-
*/
|
|
14
|
-
export declare function addRequest(scope: Scope, request: Request): void;
|
|
15
|
-
//# sourceMappingURL=scope-utils.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/core';
|
|
2
|
-
import { CloudflareOptions } from './client';
|
|
3
|
-
import { CloudflareClient } from './client';
|
|
4
|
-
/** Get the default integrations for the Cloudflare SDK. */
|
|
5
|
-
export declare function getDefaultIntegrations(options: CloudflareOptions): Integration[];
|
|
6
|
-
/**
|
|
7
|
-
* Initializes the cloudflare SDK.
|
|
8
|
-
*/
|
|
9
|
-
export declare function init(options: CloudflareOptions): CloudflareClient | undefined;
|
|
10
|
-
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { BaseTransportOptions, Transport, TransportMakeRequestResponse } from '@sentry/core';
|
|
2
|
-
export interface CloudflareTransportOptions extends BaseTransportOptions {
|
|
3
|
-
/** Custom fetch function to use. This allows usage of things like Workers VPC */
|
|
4
|
-
fetch?: typeof fetch;
|
|
5
|
-
/** Fetch API init parameters. */
|
|
6
|
-
fetchOptions?: RequestInit;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* This is a modified promise buffer that collects tasks until drain is called.
|
|
10
|
-
* We need this in the edge runtime because edge function invocations may not share I/O objects, like fetch requests
|
|
11
|
-
* and responses, and the normal PromiseBuffer inherently buffers stuff inbetween incoming requests.
|
|
12
|
-
*
|
|
13
|
-
* A limitation we need to be aware of is that DEFAULT_TRANSPORT_BUFFER_SIZE is the maximum amount of payloads the
|
|
14
|
-
* SDK can send for a given edge function invocation.
|
|
15
|
-
*/
|
|
16
|
-
export declare class IsolatedPromiseBuffer {
|
|
17
|
-
$: Array<PromiseLike<TransportMakeRequestResponse>>;
|
|
18
|
-
private _taskProducers;
|
|
19
|
-
private readonly _bufferSize;
|
|
20
|
-
constructor(_bufferSize?: number);
|
|
21
|
-
/**
|
|
22
|
-
* @inheritdoc
|
|
23
|
-
*/
|
|
24
|
-
add(taskProducer: () => PromiseLike<TransportMakeRequestResponse>): PromiseLike<TransportMakeRequestResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritdoc
|
|
27
|
-
*/
|
|
28
|
-
drain(timeout?: number): PromiseLike<boolean>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Creates a Transport that uses the native fetch API to send events to Sentry.
|
|
32
|
-
*/
|
|
33
|
-
export declare function makeCloudflareTransport(options: CloudflareTransportOptions): Transport;
|
|
34
|
-
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DurableObjectState, ExecutionContext } from '@cloudflare/workers-types';
|
|
2
|
-
type ContextType = ExecutionContext | DurableObjectState;
|
|
3
|
-
/**
|
|
4
|
-
* Instruments an execution context or DurableObjectState with Sentry tracing.
|
|
5
|
-
*
|
|
6
|
-
* Creates a copy of the context that:
|
|
7
|
-
* - Allows overriding of methods (e.g., waitUntil)
|
|
8
|
-
* - For DurableObjectState: instruments storage operations (get, put, delete, list, etc.)
|
|
9
|
-
* to create Sentry spans automatically
|
|
10
|
-
*
|
|
11
|
-
* @param ctx - The execution context or DurableObjectState to instrument
|
|
12
|
-
* @returns An instrumented copy of the context
|
|
13
|
-
*/
|
|
14
|
-
export declare function instrumentContext<T extends ContextType>(ctx: T): T;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=instrumentContext.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cloudflare frameworks that build on Durable Objects (`agents`, `partyserver`, ...) manage their
|
|
3
|
-
* own internal SQLite tables, all namespaced with a `cf_` prefix — e.g. `cf_agents_schedules`,
|
|
4
|
-
* `cf_agent_state`, `cf_ai_chat_stream_chunks`. Queries against them (schedule polling, chat-stream
|
|
5
|
-
* persistence, state bookkeeping) are framework implementation details that otherwise flood traces
|
|
6
|
-
* with dozens of zero-signal `db.query` spans per request. The exact set of tables even varies
|
|
7
|
-
* between framework versions, so we match the reserved prefix rather than an enumerated list.
|
|
8
|
-
*
|
|
9
|
-
* The `cf_` prefix is a reserved convention for framework-managed tables, so user tables should not
|
|
10
|
-
* use it. In case a user table does collide with the prefix, the `durableObjectSqlSpanAllowlist`
|
|
11
|
-
* option lets them opt those tables back into instrumentation.
|
|
12
|
-
*
|
|
13
|
-
* The check operates on the query summary produced by `getSqlQuerySummary` (`{operation} {table} ...`,
|
|
14
|
-
* the same value used as the span name), so table targets are already isolated from the rest of the
|
|
15
|
-
* query.
|
|
16
|
-
*/
|
|
17
|
-
export declare function targetsCloudflareInternalTable(querySummary: string | undefined, allowlist?: Array<string | RegExp>): boolean;
|
|
18
|
-
//# sourceMappingURL=internalSqlQuery.d.ts.map
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adapted from https://github.com/evanderkoogh/otel-cf-workers/blob/effeb549f0a4ed1c55ea0c4f0d8e8e37e5494fb3/src/instrumentation/env.ts
|
|
3
|
-
*
|
|
4
|
-
* BSD 3-Clause License
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2023, Erwin van der Koogh
|
|
7
|
-
*
|
|
8
|
-
* Redistribution and use in source and binary forms, with or without
|
|
9
|
-
* modification, are permitted provided that the following conditions are met:
|
|
10
|
-
*
|
|
11
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
12
|
-
* list of conditions and the following disclaimer.
|
|
13
|
-
*
|
|
14
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
15
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
16
|
-
* and/or other materials provided with the distribution.
|
|
17
|
-
*
|
|
18
|
-
* 3. Neither the name of the copyright holder nor the names of its
|
|
19
|
-
* contributors may be used to endorse or promote products derived from
|
|
20
|
-
* this software without specific prior written permission.
|
|
21
|
-
*
|
|
22
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
23
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
24
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
25
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
26
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
27
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
28
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
29
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
30
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
|
-
*/
|
|
33
|
-
import { Ai, D1Database, DurableObjectNamespace, Queue, R2Bucket, RateLimit } from '@cloudflare/workers-types';
|
|
34
|
-
/**
|
|
35
|
-
* Checks if a value is a JSRPC proxy (service binding).
|
|
36
|
-
*
|
|
37
|
-
* JSRPC proxies return a truthy value for ANY property access, including
|
|
38
|
-
* properties that don't exist. This makes other duck-type checks unreliable
|
|
39
|
-
* unless we exclude JSRPC first.
|
|
40
|
-
*
|
|
41
|
-
* Must be checked before other binding type checks.
|
|
42
|
-
*/
|
|
43
|
-
export declare function isJSRPC(item: unknown): item is Service;
|
|
44
|
-
/**
|
|
45
|
-
* Duck-type check for DurableObjectNamespace bindings.
|
|
46
|
-
* DurableObjectNamespace has `idFromName`, `idFromString`, `get`, `newUniqueId`.
|
|
47
|
-
*/
|
|
48
|
-
export declare function isDurableObjectNamespace(item: unknown): item is DurableObjectNamespace;
|
|
49
|
-
/**
|
|
50
|
-
* Duck-type check for Queue producer bindings.
|
|
51
|
-
* Queue has `send` and `sendBatch` async methods.
|
|
52
|
-
*/
|
|
53
|
-
export declare function isQueue(item: unknown): item is Queue;
|
|
54
|
-
/**
|
|
55
|
-
* Duck-type check for D1Database bindings.
|
|
56
|
-
* D1Database has `prepare`, `batch`, and `exec` methods.
|
|
57
|
-
*/
|
|
58
|
-
export declare function isD1Database(item: unknown): item is D1Database;
|
|
59
|
-
/**
|
|
60
|
-
* Duck-type check for Workers AI bindings.
|
|
61
|
-
* The Ai binding has `run`, `gateway`, and `toMarkdown` methods.
|
|
62
|
-
*/
|
|
63
|
-
export declare function isAiBinding(item: unknown): item is Ai;
|
|
64
|
-
/**
|
|
65
|
-
* Duck-type check for R2 Bucket bindings.
|
|
66
|
-
* R2Bucket has `head`, `put`, and `createMultipartUpload` methods.
|
|
67
|
-
*/
|
|
68
|
-
export declare function isR2Bucket(item: unknown): item is R2Bucket;
|
|
69
|
-
/**
|
|
70
|
-
* Duck-type check for RateLimit bindings.
|
|
71
|
-
* RateLimit only exposes a single `limit` method. Because that is a fairly
|
|
72
|
-
* common method name, this check is intentionally run after the more specific
|
|
73
|
-
* binding checks (Queue, R2, D1) in `instrumentEnv`, so those win when a binding
|
|
74
|
-
* also happens to expose `limit`.
|
|
75
|
-
*/
|
|
76
|
-
export declare function isRateLimit(item: unknown): item is RateLimit;
|
|
77
|
-
//# sourceMappingURL=isBinding.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DurableObject, WorkflowEntrypoint } from 'cloudflare:workers';
|
|
2
|
-
import { WorkerEntrypointConstructor } from '../instrumentations/instrumentWorkerEntrypoint';
|
|
3
|
-
/**
|
|
4
|
-
* Checks if a class constructor extends a specific Cloudflare base class.
|
|
5
|
-
*
|
|
6
|
-
* Uses prototype chain walking with constructor names rather than instanceof,
|
|
7
|
-
* so it works in Node at build time without requiring the cloudflare:workers
|
|
8
|
-
* module (which only exists in the Workers runtime).
|
|
9
|
-
*
|
|
10
|
-
* This is used to differentiate between different Cloudflare worker types:
|
|
11
|
-
* - WorkerEntrypoint: Class-based workers (used with instrumentWorkerEntrypoint)
|
|
12
|
-
* - DurableObject: Durable Object classes
|
|
13
|
-
* - Workflow: Workflow classes
|
|
14
|
-
*
|
|
15
|
-
* For ExportedHandler (plain objects), this will return false for all types.
|
|
16
|
-
*
|
|
17
|
-
* @param value - The value to check (typically a class constructor)
|
|
18
|
-
* @param className - The Cloudflare base class name to check against
|
|
19
|
-
* @returns true if the value is a class that extends the specified Cloudflare class
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* isCloudflareClass(MyWorker, 'WorkerEntrypoint') // true if MyWorker extends WorkerEntrypoint
|
|
24
|
-
* isCloudflareClass(MyDO, 'DurableObject') // true if MyDO extends DurableObject
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function isCloudflareClass(value: unknown, className: 'WorkerEntrypoint'): value is WorkerEntrypointConstructor;
|
|
28
|
-
export declare function isCloudflareClass(value: unknown, className: 'DurableObject'): value is new (...args: unknown[]) => DurableObject;
|
|
29
|
-
export declare function isCloudflareClass(value: unknown, className: 'WorkflowEntrypoint'): value is new (...args: unknown[]) => WorkflowEntrypoint;
|
|
30
|
-
//# sourceMappingURL=isCloudflareClass.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SerializedTraceData } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Appends Sentry RPC metadata to an args array for trace propagation.
|
|
4
|
-
* If no active trace exists, returns the original args unchanged.
|
|
5
|
-
*/
|
|
6
|
-
export declare function appendRpcMeta(args: unknown[]): unknown[];
|
|
7
|
-
/**
|
|
8
|
-
* Extracts Sentry RPC metadata from the trailing argument of an args array.
|
|
9
|
-
* Returns cleaned args (without meta) and the extracted trace data if found.
|
|
10
|
-
*/
|
|
11
|
-
export declare function extractRpcMeta<T extends unknown[]>(args: T): {
|
|
12
|
-
args: T;
|
|
13
|
-
rpcMeta?: SerializedTraceData;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=rpcMeta.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CloudflareOptions } from '../client';
|
|
2
|
-
/**
|
|
3
|
-
* Gets the effective RPC propagation setting, handling deprecation of `instrumentPrototypeMethods`.
|
|
4
|
-
*
|
|
5
|
-
* Priority:
|
|
6
|
-
* 1. If `enableRpcTracePropagation` is set, use it (ignore `instrumentPrototypeMethods`)
|
|
7
|
-
* 2. If only `instrumentPrototypeMethods` is set, use it with deprecation warning
|
|
8
|
-
* 3. If neither is set, return `false`
|
|
9
|
-
*
|
|
10
|
-
* @returns The effective setting for RPC trace propagation
|
|
11
|
-
*/
|
|
12
|
-
export declare function getEffectiveRpcPropagation(options: CloudflareOptions): boolean;
|
|
13
|
-
//# sourceMappingURL=rpcOptions.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type StreamingGuess = {
|
|
2
|
-
isStreaming: boolean;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Classifies a Response as streaming or non-streaming.
|
|
6
|
-
*
|
|
7
|
-
* Heuristics:
|
|
8
|
-
* - No body → not streaming
|
|
9
|
-
* - Known streaming Content-Types → streaming (SSE, NDJSON, JSON streaming)
|
|
10
|
-
* - text/plain without Content-Length → streaming (some AI APIs)
|
|
11
|
-
* - Otherwise → not streaming (conservative default, including HTML/SSR)
|
|
12
|
-
*
|
|
13
|
-
* We avoid probing the stream to prevent blocking on transform streams (like injectTraceMetaTags)
|
|
14
|
-
* or SSR streams that may not have data ready immediately.
|
|
15
|
-
*/
|
|
16
|
-
export declare function classifyResponseStreaming(res: Response): StreamingGuess;
|
|
17
|
-
//# sourceMappingURL=streaming.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DurableObjectStorage } from '@cloudflare/workers-types';
|
|
2
|
-
import { SpanLink } from '@sentry/core';
|
|
3
|
-
/** Stored span context for creating span links */
|
|
4
|
-
export interface StoredSpanContext {
|
|
5
|
-
traceId: string;
|
|
6
|
-
spanId: string;
|
|
7
|
-
sampled: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Gets the storage key for a specific method's trace link.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getTraceLinkKey(methodName: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Stores the current span context in Durable Object storage for trace linking.
|
|
15
|
-
* Uses the original uninstrumented storage to avoid creating spans for internal operations.
|
|
16
|
-
* Errors are silently ignored to prevent internal storage failures from propagating to user code.
|
|
17
|
-
*/
|
|
18
|
-
export declare function storeSpanContext(originalStorage: DurableObjectStorage, methodName: string): void;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves a stored span context from Durable Object storage.
|
|
21
|
-
* Errors are silently ignored to prevent internal storage failures from propagating to user code.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getStoredSpanContext(originalStorage: DurableObjectStorage, methodName: string): StoredSpanContext | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Builds span links from a stored span context.
|
|
26
|
-
*/
|
|
27
|
-
export declare function buildSpanLinks(storedContext: StoredSpanContext): SpanLink[];
|
|
28
|
-
//# sourceMappingURL=traceLinks.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { StackParser } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Gets the module from filename.
|
|
4
|
-
*
|
|
5
|
-
* @param filename
|
|
6
|
-
* @returns Module name
|
|
7
|
-
*/
|
|
8
|
-
export declare function getModule(filename: string | undefined): string | undefined;
|
|
9
|
-
/** Cloudflare Workers stack parser */
|
|
10
|
-
export declare const defaultStackParser: StackParser;
|
|
11
|
-
//# sourceMappingURL=stacktrace.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ProgramBody } from './transform';
|
|
2
|
-
export declare function sentryCloudflareAutoInstrumentPlugin(): {
|
|
3
|
-
name: string;
|
|
4
|
-
configResolved(config: {
|
|
5
|
-
root: string;
|
|
6
|
-
logger?: {
|
|
7
|
-
warn(msg: string): void;
|
|
8
|
-
};
|
|
9
|
-
}): void;
|
|
10
|
-
transform(this: {
|
|
11
|
-
parse(code: string): ProgramBody;
|
|
12
|
-
warn?(msg: string): void;
|
|
13
|
-
environment?: {
|
|
14
|
-
name?: string;
|
|
15
|
-
};
|
|
16
|
-
}, code: string, id: string): {
|
|
17
|
-
code: string;
|
|
18
|
-
map: unknown;
|
|
19
|
-
} | undefined;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=autoInstrument.d.ts.map
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for {@link sentryCloudflareVitePlugin}.
|
|
3
|
-
*/
|
|
4
|
-
export interface SentryCloudflareVitePluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Experimental options that may change or be removed without notice.
|
|
7
|
-
*/
|
|
8
|
-
_experimental?: {
|
|
9
|
-
/**
|
|
10
|
-
* Enables build-time automatic instrumentation of supported dependencies
|
|
11
|
-
* (e.g. database clients like `mysql`) so the Sentry Cloudflare SDK can
|
|
12
|
-
* trace them without monkey-patching, which wouldn't work in workerd anyway.
|
|
13
|
-
*
|
|
14
|
-
* When enabled, the plugin injects `diagnostics_channel.tracingChannel`
|
|
15
|
-
* calls into the bundled packages and, next to each, a snippet that
|
|
16
|
-
* registers the matching Sentry channel-subscriber factory on the global
|
|
17
|
-
* marker, which the SDK picks up in `Sentry.withSentry()`. Both `vite build`
|
|
18
|
-
* and `vite dev` are instrumented.
|
|
19
|
-
*
|
|
20
|
-
* @default false
|
|
21
|
-
* @experimental May change or be removed in any release.
|
|
22
|
-
*/
|
|
23
|
-
useDiagnosticsChannelInjection?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Automatically wraps your Worker at build time so you don't have to edit
|
|
26
|
-
* your entry: the plugin reads your wrangler config, wraps the default
|
|
27
|
-
* export with `Sentry.withSentry()` (sourcing options from a co-located
|
|
28
|
-
* `instrument.*` file, falling back to env), and wraps any configured
|
|
29
|
-
* Durable Object class with `instrumentDurableObjectWithSentry`. Both
|
|
30
|
-
* `vite build` and `vite dev` are instrumented.
|
|
31
|
-
*
|
|
32
|
-
* @default false
|
|
33
|
-
* @experimental May change or be removed in any release.
|
|
34
|
-
*/
|
|
35
|
-
autoInstrumentation?: boolean;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Sentry Vite plugin for Cloudflare Workers.
|
|
40
|
-
*
|
|
41
|
-
* Add this plugin to your Vite configuration to enable additional Sentry
|
|
42
|
-
* instrumentation for Cloudflare Workers built with Vite. Configure the Sentry
|
|
43
|
-
* SDK in your Worker as usual with `Sentry.withSentry()`.
|
|
44
|
-
*
|
|
45
|
-
* Currently, the only functionality is the experimental
|
|
46
|
-
* `_experimental.useDiagnosticsChannelInjection` option, which traces supported
|
|
47
|
-
* dependencies (such as database clients) without changing your application
|
|
48
|
-
* code. Without it, the plugin is a no-op.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* // vite.config.ts
|
|
53
|
-
* import { cloudflare } from '@cloudflare/vite-plugin';
|
|
54
|
-
* import { sentryCloudflareVitePlugin } from '@sentry/cloudflare/vite';
|
|
55
|
-
* import { defineConfig } from 'vite';
|
|
56
|
-
*
|
|
57
|
-
* export default defineConfig({
|
|
58
|
-
* plugins: [
|
|
59
|
-
* cloudflare(),
|
|
60
|
-
* sentryCloudflareVitePlugin({
|
|
61
|
-
* _experimental: {
|
|
62
|
-
* useDiagnosticsChannelInjection: true,
|
|
63
|
-
* },
|
|
64
|
-
* }),
|
|
65
|
-
* ],
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare function sentryCloudflareVitePlugin(options?: SentryCloudflareVitePluginOptions): ({
|
|
70
|
-
name: string;
|
|
71
|
-
configResolved(config: {
|
|
72
|
-
root: string;
|
|
73
|
-
logger?: {
|
|
74
|
-
warn(msg: string): void;
|
|
75
|
-
};
|
|
76
|
-
}): void;
|
|
77
|
-
transform(this: {
|
|
78
|
-
parse(code: string): import("./transform").ProgramBody;
|
|
79
|
-
warn?(msg: string): void;
|
|
80
|
-
environment?: {
|
|
81
|
-
name?: string;
|
|
82
|
-
};
|
|
83
|
-
}, code: string, id: string): {
|
|
84
|
-
code: string;
|
|
85
|
-
map: unknown;
|
|
86
|
-
} | undefined;
|
|
87
|
-
} | import("vite").Plugin<any>)[];
|
|
88
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const ENV_FALLBACK_OPTIONS_FN = "() => undefined";
|
|
2
|
-
/**
|
|
3
|
-
* Locate the conventional `instrument.server.*` module sitting next to the
|
|
4
|
-
* worker entry file. Returns its absolute path, or `undefined` when absent.
|
|
5
|
-
*/
|
|
6
|
-
export declare function resolveInstrumentFile(entryFilePath: string): string | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Build the `optionsFn` reference and `import` statement for the instrument
|
|
9
|
-
* module whose **default export** is the options callback
|
|
10
|
-
* `(env) => CloudflareOptions`.
|
|
11
|
-
*
|
|
12
|
-
* The import is emitted relative to `entryFilePath` because it is injected into
|
|
13
|
-
* the entry file's source. The file extension is kept: extensionless specifiers
|
|
14
|
-
* only resolve for extensions in Vite's default `resolve.extensions` (which
|
|
15
|
-
* excludes `.cjs`), and keeping it makes our probe order authoritative when
|
|
16
|
-
* several `instrument.server.*` files coexist.
|
|
17
|
-
*/
|
|
18
|
-
export declare function buildOptionsImport(entryFilePath: string, instrumentFilePath: string): {
|
|
19
|
-
optionsFn: string;
|
|
20
|
-
importStmt: string;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=instrumentFile.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import MagicString from 'magic-string';
|
|
2
|
-
export interface BaseNode {
|
|
3
|
-
type: string;
|
|
4
|
-
start: number;
|
|
5
|
-
end: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ProgramBody {
|
|
8
|
-
body: BaseNode[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The kind of Sentry wrapper to apply to an exported class.
|
|
12
|
-
*
|
|
13
|
-
* `durableObject` and `workflow` are keyed by name from the wrangler config
|
|
14
|
-
* (`durable_objects.bindings`, `workflows`), since those class names are
|
|
15
|
-
* authoritative there. `workerEntrypoint` is different: a worker's own
|
|
16
|
-
* entrypoints aren't enumerated in its config, so they're detected structurally
|
|
17
|
-
* (a class extending `WorkerEntrypoint` from `cloudflare:workers`), with the
|
|
18
|
-
* config providing only a fallback for self-bound entrypoints whose base class
|
|
19
|
-
* lives in another module.
|
|
20
|
-
*/
|
|
21
|
-
export type ClassWrapperKind = 'durableObject' | 'workflow' | 'workerEntrypoint';
|
|
22
|
-
export interface TransformContext {
|
|
23
|
-
/**
|
|
24
|
-
* Exported class name → the kind of Sentry wrapper to apply. Populated from
|
|
25
|
-
* the wrangler config, so the transform can wrap by name without resolving
|
|
26
|
-
* each class's base type.
|
|
27
|
-
*/
|
|
28
|
-
classWrappers: Map<string, ClassWrapperKind>;
|
|
29
|
-
optionsFn: string;
|
|
30
|
-
/** Import statement prepended when `optionsFn` references a separate module. */
|
|
31
|
-
optionsImport?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface TransformResult {
|
|
34
|
-
code: string;
|
|
35
|
-
map: ReturnType<MagicString['generateMap']>;
|
|
36
|
-
/**
|
|
37
|
-
* The configured class names that were actually wrapped. Lets the plugin warn
|
|
38
|
-
* about configured classes it could not find, instead of silently leaving
|
|
39
|
-
* them uninstrumented.
|
|
40
|
-
*/
|
|
41
|
-
wrappedClasses: Set<string>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Rewrite the worker entry source to wrap its default export with `withSentry`
|
|
45
|
-
* and any configured class export with its matching Sentry wrapper (see
|
|
46
|
-
* {@link TransformContext.classWrappers}, e.g. Durable Object classes with
|
|
47
|
-
* `instrumentDurableObjectWithSentry`).
|
|
48
|
-
*
|
|
49
|
-
* Handles both `export class MyDO {}` and the specifier form
|
|
50
|
-
* (`class MyDO {}` … `export { MyDO }` / `export { Foo as MyDO }`).
|
|
51
|
-
* Re-exports from other modules (`export { MyDO } from './do'`) cannot be
|
|
52
|
-
* wrapped here and are left alone — the plugin warns about them via
|
|
53
|
-
* {@link TransformResult.wrappedClasses}.
|
|
54
|
-
*
|
|
55
|
-
* Exported (rather than inlined into the plugin) so it can be unit-tested with a
|
|
56
|
-
* plain AST and no Vite context. Returns `undefined` when nothing was wrapped and
|
|
57
|
-
* there are no already-manually-wrapped classes to report.
|
|
58
|
-
*/
|
|
59
|
-
export declare function applyAutoInstrumentTransforms(code: string, ast: ProgramBody, ctx: TransformContext): TransformResult | undefined;
|
|
60
|
-
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProgramBody } from './transform';
|
|
2
|
-
/**
|
|
3
|
-
* Find top-level classes that (transitively, within this module) extend
|
|
4
|
-
* `WorkerEntrypoint` imported from `cloudflare:workers`. esbuild has already
|
|
5
|
-
* stripped TypeScript by transform time, so a superclass is a plain identifier
|
|
6
|
-
* (`extends WorkerEntrypoint`) or member access (`extends cf.WorkerEntrypoint`).
|
|
7
|
-
*
|
|
8
|
-
* Only same-file base chains are resolvable here; a base class imported from
|
|
9
|
-
* another module is invisible and relies on the config self-binding fallback.
|
|
10
|
-
*/
|
|
11
|
-
export declare function detectWorkerEntrypointClasses(ast: ProgramBody): Set<string>;
|
|
12
|
-
//# sourceMappingURL=workerEntrypoint.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The slice of the wrangler configuration the auto-instrument plugin cares
|
|
3
|
-
* about. `main` is an absolute path (wrangler resolves it against the config
|
|
4
|
-
* file's directory).
|
|
5
|
-
*/
|
|
6
|
-
export interface WranglerConfig {
|
|
7
|
-
main?: string;
|
|
8
|
-
durableObjects: Array<{
|
|
9
|
-
name: string;
|
|
10
|
-
className: string;
|
|
11
|
-
}>;
|
|
12
|
-
workflows: Array<{
|
|
13
|
-
name: string;
|
|
14
|
-
className: string;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Named `WorkerEntrypoint` exports this worker binds to itself via a service
|
|
18
|
-
* binding (`services[]` whose `service` is this worker's own `name`). Only
|
|
19
|
-
* self-bindings appear here: a service binding's `entrypoint` otherwise names
|
|
20
|
-
* an export on a *different* worker, which this build can't wrap.
|
|
21
|
-
*/
|
|
22
|
-
workerEntrypoints: string[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Locate and resolve the wrangler configuration via wrangler's own
|
|
26
|
-
* `unstable_readConfig` — the API `@cloudflare/vite-plugin` uses.
|
|
27
|
-
*
|
|
28
|
-
* We only locate the file (probing `wrangler.json`, `.jsonc`, `.toml` inside
|
|
29
|
-
* `root` with wrangler's own precedence, since it discovers from `cwd` rather
|
|
30
|
-
* than an arbitrary root); wrangler then parses it, flattens the active
|
|
31
|
-
* environment (honoring `CLOUDFLARE_ENV`), and resolves `main` to an absolute
|
|
32
|
-
* path. Durable Object and Workflow bindings are the active environment's,
|
|
33
|
-
* matching what the deployed Worker actually binds.
|
|
34
|
-
*
|
|
35
|
-
* Returns `undefined` when no config file is found or it can't be read/parsed
|
|
36
|
-
* (the caller warns and disables auto-instrumentation rather than failing the
|
|
37
|
-
* whole build).
|
|
38
|
-
*/
|
|
39
|
-
export declare function resolveWranglerConfig(root: string, explicitPath?: string): {
|
|
40
|
-
config: WranglerConfig;
|
|
41
|
-
configDir: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
//# sourceMappingURL=wranglerConfig.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { env as cloudflareEnv } from 'cloudflare:workers';
|
|
2
|
-
import { CloudflareOptions } from './client';
|
|
3
|
-
import { WorkerEntrypointConstructor } from './instrumentations/instrumentWorkerEntrypoint';
|
|
4
|
-
/**
|
|
5
|
-
* Wrapper for Cloudflare handlers.
|
|
6
|
-
*
|
|
7
|
-
* Initializes the SDK and wraps the handler with Sentry instrumentation.
|
|
8
|
-
*
|
|
9
|
-
* Automatically instruments the `fetch` method of the handler.
|
|
10
|
-
*
|
|
11
|
-
* @param optionsCallback Function that returns the options for the SDK initialization.
|
|
12
|
-
* @param handler {ExportedHandler} The handler to wrap.
|
|
13
|
-
* @returns The wrapped handler.
|
|
14
|
-
*/
|
|
15
|
-
export declare function withSentry<Env = typeof cloudflareEnv, QueueHandlerMessage = unknown, CfHostMetadata = unknown, T extends ExportedHandler<Env, QueueHandlerMessage, CfHostMetadata> | WorkerEntrypointConstructor = ExportedHandler<Env, QueueHandlerMessage, CfHostMetadata>>(optionsCallback: (env: Env) => CloudflareOptions | undefined, handler: T): T;
|
|
16
|
-
//# sourceMappingURL=withSentry.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
2
|
-
import { CloudflareOptions } from './client';
|
|
3
|
-
/**
|
|
4
|
-
* Hashes a string to a UUID using SHA-1.
|
|
5
|
-
*/
|
|
6
|
-
export declare function deterministicTraceIdFromInstanceId(instanceId: string): Promise<string>;
|
|
7
|
-
/**
|
|
8
|
-
* Instruments a Cloudflare Workflow class with Sentry.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const InstrumentedWorkflow = instrumentWorkflowWithSentry(
|
|
13
|
-
* (env) => ({ dsn: env.SENTRY_DSN }),
|
|
14
|
-
* MyWorkflowClass
|
|
15
|
-
* );
|
|
16
|
-
*
|
|
17
|
-
* export default InstrumentedWorkflow;
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @param optionsCallback - Function that returns Sentry options to initialize Sentry
|
|
21
|
-
* @param WorkflowClass - The workflow class to instrument
|
|
22
|
-
* @returns Instrumented workflow class with the same interface
|
|
23
|
-
*/
|
|
24
|
-
export declare function instrumentWorkflowWithSentry<E, P, T extends WorkflowEntrypoint<E, P>, C extends new (ctx: ExecutionContext, env: E) => T>(optionsCallback: (env: E) => CloudflareOptions, WorkFlowClass: C): C;
|
|
25
|
-
//# sourceMappingURL=workflows.d.ts.map
|