@sentry/node 7.104.0 → 8.0.0-alpha.1
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/LICENSE +1 -1
- package/README.md +114 -38
- package/cjs/cron/index.js +15 -0
- package/cjs/cron/index.js.map +1 -0
- package/cjs/index.js +79 -98
- package/cjs/index.js.map +1 -1
- package/cjs/integrations/anr/index.js +4 -30
- package/cjs/integrations/anr/index.js.map +1 -1
- package/cjs/integrations/anr/worker-script.js +2 -2
- package/cjs/integrations/console.js +2 -13
- package/cjs/integrations/console.js.map +1 -1
- package/cjs/integrations/context.js +2 -16
- package/cjs/integrations/context.js.map +1 -1
- package/cjs/integrations/contextlines.js +6 -23
- package/cjs/integrations/contextlines.js.map +1 -1
- package/cjs/integrations/http.js +103 -354
- package/cjs/integrations/http.js.map +1 -1
- package/cjs/integrations/local-variables/index.js +0 -10
- package/cjs/integrations/local-variables/index.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-sync.js +29 -24
- package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/cjs/integrations/modules.js +19 -30
- package/cjs/integrations/modules.js.map +1 -1
- package/cjs/integrations/node-fetch.js +82 -0
- package/cjs/integrations/node-fetch.js.map +1 -0
- package/cjs/integrations/onuncaughtexception.js +15 -30
- package/cjs/integrations/onuncaughtexception.js.map +1 -1
- package/cjs/integrations/onunhandledrejection.js +3 -17
- package/cjs/integrations/onunhandledrejection.js.map +1 -1
- package/cjs/integrations/spotlight.js +4 -22
- package/cjs/integrations/spotlight.js.map +1 -1
- package/cjs/integrations/tracing/express.js +103 -0
- package/cjs/integrations/tracing/express.js.map +1 -0
- package/cjs/integrations/tracing/fastify.js +33 -0
- package/cjs/integrations/tracing/fastify.js.map +1 -0
- package/cjs/integrations/tracing/graphql.js +34 -0
- package/cjs/integrations/tracing/graphql.js.map +1 -0
- package/cjs/integrations/tracing/hapi/index.js +81 -0
- package/cjs/integrations/tracing/hapi/index.js.map +1 -0
- package/cjs/integrations/tracing/index.js +37 -0
- package/cjs/integrations/tracing/index.js.map +1 -0
- package/cjs/integrations/tracing/koa.js +21 -0
- package/cjs/integrations/tracing/koa.js.map +1 -0
- package/cjs/integrations/tracing/mongo.js +33 -0
- package/cjs/integrations/tracing/mongo.js.map +1 -0
- package/cjs/integrations/tracing/mongoose.js +33 -0
- package/cjs/integrations/tracing/mongoose.js.map +1 -0
- package/cjs/integrations/tracing/mysql.js +26 -0
- package/cjs/integrations/tracing/mysql.js.map +1 -0
- package/cjs/integrations/tracing/mysql2.js +33 -0
- package/cjs/integrations/tracing/mysql2.js.map +1 -0
- package/cjs/integrations/tracing/nest.js +26 -0
- package/cjs/integrations/tracing/nest.js.map +1 -0
- package/cjs/integrations/tracing/postgres.js +34 -0
- package/cjs/integrations/tracing/postgres.js.map +1 -0
- package/cjs/integrations/tracing/prisma.js +33 -0
- package/cjs/integrations/tracing/prisma.js.map +1 -0
- package/cjs/nodeVersion.js +5 -1
- package/cjs/nodeVersion.js.map +1 -1
- package/cjs/otel/contextManager.js +16 -0
- package/cjs/otel/contextManager.js.map +1 -0
- package/cjs/proxy/index.js +1 -2
- package/cjs/proxy/index.js.map +1 -1
- package/cjs/sdk/api.js +74 -0
- package/cjs/sdk/api.js.map +1 -0
- package/cjs/sdk/client.js +57 -0
- package/cjs/sdk/client.js.map +1 -0
- package/cjs/sdk/hub.js +104 -0
- package/cjs/sdk/hub.js.map +1 -0
- package/cjs/sdk/init.js +224 -0
- package/cjs/sdk/init.js.map +1 -0
- package/cjs/sdk/initOtel.js +70 -0
- package/cjs/sdk/initOtel.js.map +1 -0
- package/cjs/sdk/scope.js +18 -0
- package/cjs/sdk/scope.js.map +1 -0
- package/cjs/transports/http.js +2 -3
- package/cjs/transports/http.js.map +1 -1
- package/cjs/utils/addOriginToSpan.js +11 -0
- package/cjs/utils/addOriginToSpan.js.map +1 -0
- package/cjs/{integrations/utils → utils}/errorhandling.js +2 -1
- package/cjs/utils/errorhandling.js.map +1 -0
- package/cjs/utils/getRequestUrl.js +18 -0
- package/cjs/utils/getRequestUrl.js.map +1 -0
- package/cjs/utils/module.js.map +1 -0
- package/esm/cron/index.js +13 -0
- package/esm/cron/index.js.map +1 -0
- package/esm/index.js +28 -48
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/index.js +7 -32
- package/esm/integrations/anr/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/console.js +4 -14
- package/esm/integrations/console.js.map +1 -1
- package/esm/integrations/context.js +4 -17
- package/esm/integrations/context.js.map +1 -1
- package/esm/integrations/contextlines.js +8 -25
- package/esm/integrations/contextlines.js.map +1 -1
- package/esm/integrations/http.js +105 -353
- package/esm/integrations/http.js.map +1 -1
- package/esm/integrations/local-variables/index.js +2 -11
- package/esm/integrations/local-variables/index.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-sync.js +31 -25
- package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/esm/integrations/modules.js +21 -31
- package/esm/integrations/modules.js.map +1 -1
- package/esm/integrations/node-fetch.js +80 -0
- package/esm/integrations/node-fetch.js.map +1 -0
- package/esm/integrations/onuncaughtexception.js +17 -31
- package/esm/integrations/onuncaughtexception.js.map +1 -1
- package/esm/integrations/onunhandledrejection.js +5 -18
- package/esm/integrations/onunhandledrejection.js.map +1 -1
- package/esm/integrations/spotlight.js +3 -20
- package/esm/integrations/spotlight.js.map +1 -1
- package/esm/integrations/tracing/express.js +96 -0
- package/esm/integrations/tracing/express.js.map +1 -0
- package/esm/integrations/tracing/fastify.js +31 -0
- package/esm/integrations/tracing/fastify.js.map +1 -0
- package/esm/integrations/tracing/graphql.js +32 -0
- package/esm/integrations/tracing/graphql.js.map +1 -0
- package/esm/integrations/tracing/hapi/index.js +77 -0
- package/esm/integrations/tracing/hapi/index.js.map +1 -0
- package/esm/integrations/tracing/index.js +35 -0
- package/esm/integrations/tracing/index.js.map +1 -0
- package/esm/integrations/tracing/koa.js +19 -0
- package/esm/integrations/tracing/koa.js.map +1 -0
- package/esm/integrations/tracing/mongo.js +31 -0
- package/esm/integrations/tracing/mongo.js.map +1 -0
- package/esm/integrations/tracing/mongoose.js +31 -0
- package/esm/integrations/tracing/mongoose.js.map +1 -0
- package/esm/integrations/tracing/mysql.js +24 -0
- package/esm/integrations/tracing/mysql.js.map +1 -0
- package/esm/integrations/tracing/mysql2.js +31 -0
- package/esm/integrations/tracing/mysql2.js.map +1 -0
- package/esm/integrations/tracing/nest.js +24 -0
- package/esm/integrations/tracing/nest.js.map +1 -0
- package/esm/integrations/tracing/postgres.js +32 -0
- package/esm/integrations/tracing/postgres.js.map +1 -0
- package/esm/integrations/tracing/prisma.js +31 -0
- package/esm/integrations/tracing/prisma.js.map +1 -0
- package/esm/nodeVersion.js +5 -2
- package/esm/nodeVersion.js.map +1 -1
- package/esm/otel/contextManager.js +14 -0
- package/esm/otel/contextManager.js.map +1 -0
- package/esm/proxy/index.js +0 -1
- package/esm/proxy/index.js.map +1 -1
- package/esm/sdk/api.js +69 -0
- package/esm/sdk/api.js.map +1 -0
- package/esm/sdk/client.js +52 -0
- package/esm/sdk/client.js.map +1 -0
- package/esm/sdk/hub.js +102 -0
- package/esm/sdk/hub.js.map +1 -0
- package/esm/sdk/init.js +221 -0
- package/esm/sdk/init.js.map +1 -0
- package/esm/sdk/initOtel.js +67 -0
- package/esm/sdk/initOtel.js.map +1 -0
- package/esm/sdk/scope.js +16 -0
- package/esm/sdk/scope.js.map +1 -0
- package/esm/transports/http.js +0 -1
- package/esm/transports/http.js.map +1 -1
- package/esm/utils/addOriginToSpan.js +9 -0
- package/esm/utils/addOriginToSpan.js.map +1 -0
- package/esm/{integrations/utils → utils}/errorhandling.js +2 -1
- package/esm/utils/errorhandling.js.map +1 -0
- package/esm/utils/getRequestUrl.js +16 -0
- package/esm/utils/getRequestUrl.js.map +1 -0
- package/esm/utils/module.js.map +1 -0
- package/package.json +31 -23
- package/types/cron/index.d.ts +10 -0
- package/types/cron/index.d.ts.map +1 -0
- package/types/index.d.ts +30 -142
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/index.d.ts +0 -15
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/console.d.ts +2 -8
- package/types/integrations/console.d.ts.map +1 -1
- package/types/integrations/context.d.ts +3 -18
- package/types/integrations/context.d.ts.map +1 -1
- package/types/integrations/contextlines.d.ts +8 -10
- package/types/integrations/contextlines.d.ts.map +1 -1
- package/types/integrations/http.d.ts +8 -89
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/local-variables/index.d.ts +0 -11
- package/types/integrations/local-variables/index.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-async.d.ts +1 -1
- package/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/types/integrations/modules.d.ts +1 -7
- package/types/integrations/modules.d.ts.map +1 -1
- package/types/integrations/node-fetch.d.ts +15 -0
- package/types/integrations/node-fetch.d.ts.map +1 -0
- package/types/integrations/onuncaughtexception.d.ts +3 -12
- package/types/integrations/onuncaughtexception.d.ts.map +1 -1
- package/types/integrations/onunhandledrejection.d.ts +3 -10
- package/types/integrations/onunhandledrejection.d.ts.map +1 -1
- package/types/integrations/spotlight.d.ts +1 -10
- package/types/integrations/spotlight.d.ts.map +1 -1
- package/types/integrations/tracing/express.d.ts +37 -0
- package/types/integrations/tracing/express.d.ts.map +1 -0
- package/types/integrations/tracing/fastify.d.ts +7 -0
- package/types/integrations/tracing/fastify.d.ts.map +1 -0
- package/types/integrations/tracing/graphql.d.ts +7 -0
- package/types/integrations/tracing/graphql.d.ts.map +1 -0
- package/types/integrations/tracing/hapi/index.d.ts +18 -0
- package/types/integrations/tracing/hapi/index.d.ts.map +1 -0
- package/types/integrations/{hapi → tracing/hapi}/types.d.ts +1 -2
- package/types/integrations/tracing/hapi/types.d.ts.map +1 -0
- package/types/integrations/tracing/index.d.ts +6 -0
- package/types/integrations/tracing/index.d.ts.map +1 -0
- package/types/integrations/tracing/koa.d.ts +2 -0
- package/types/integrations/tracing/koa.d.ts.map +1 -0
- package/types/integrations/tracing/mongo.d.ts +7 -0
- package/types/integrations/tracing/mongo.d.ts.map +1 -0
- package/types/integrations/tracing/mongoose.d.ts +7 -0
- package/types/integrations/tracing/mongoose.d.ts.map +1 -0
- package/types/integrations/tracing/mysql.d.ts +7 -0
- package/types/integrations/tracing/mysql.d.ts.map +1 -0
- package/types/integrations/tracing/mysql2.d.ts +7 -0
- package/types/integrations/tracing/mysql2.d.ts.map +1 -0
- package/types/integrations/tracing/nest.d.ts +7 -0
- package/types/integrations/tracing/nest.d.ts.map +1 -0
- package/types/integrations/tracing/postgres.d.ts +7 -0
- package/types/integrations/tracing/postgres.d.ts.map +1 -0
- package/types/integrations/tracing/prisma.d.ts +11 -0
- package/types/integrations/tracing/prisma.d.ts.map +1 -0
- package/types/nodeVersion.d.ts +3 -3
- package/types/nodeVersion.d.ts.map +1 -1
- package/types/otel/contextManager.d.ts +10 -0
- package/types/otel/contextManager.d.ts.map +1 -0
- package/types/proxy/helpers.d.ts +0 -1
- package/types/proxy/helpers.d.ts.map +1 -1
- package/types/proxy/index.d.ts +0 -1
- package/types/proxy/index.d.ts.map +1 -1
- package/types/sdk/api.d.ts +18 -0
- package/types/sdk/api.d.ts.map +1 -0
- package/types/sdk/client.d.ts +17 -0
- package/types/sdk/client.d.ts.map +1 -0
- package/types/sdk/globals.d.ts +6 -0
- package/types/sdk/globals.d.ts.map +1 -0
- package/types/sdk/hub.d.ts +7 -0
- package/types/sdk/hub.d.ts.map +1 -0
- package/types/sdk/init.d.ts +9 -0
- package/types/sdk/init.d.ts.map +1 -0
- package/types/sdk/initOtel.d.ts +9 -0
- package/types/sdk/initOtel.d.ts.map +1 -0
- package/types/sdk/scope.d.ts +7 -0
- package/types/sdk/scope.d.ts.map +1 -0
- package/types/transports/http-module.d.ts +2 -5
- package/types/transports/http-module.d.ts.map +1 -1
- package/types/transports/http.d.ts.map +1 -1
- package/types/types.d.ts +18 -25
- package/types/types.d.ts.map +1 -1
- package/types/utils/addOriginToSpan.d.ts +5 -0
- package/types/utils/addOriginToSpan.d.ts.map +1 -0
- package/types/utils/errorhandling.d.ts.map +1 -0
- package/types/utils/getRequestUrl.d.ts +5 -0
- package/types/utils/getRequestUrl.d.ts.map +1 -0
- package/types/utils/module.d.ts.map +1 -0
- package/types/utils/prepareEvent.d.ts +17 -0
- package/types/utils/prepareEvent.d.ts.map +1 -0
- package/types-ts3.8/cron/index.d.ts +10 -0
- package/types-ts3.8/index.d.ts +30 -142
- package/types-ts3.8/integrations/anr/index.d.ts +0 -15
- package/types-ts3.8/integrations/console.d.ts +2 -8
- package/types-ts3.8/integrations/context.d.ts +3 -18
- package/types-ts3.8/integrations/contextlines.d.ts +8 -10
- package/types-ts3.8/integrations/http.d.ts +8 -89
- package/types-ts3.8/integrations/local-variables/index.d.ts +0 -11
- package/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +1 -1
- package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types-ts3.8/integrations/modules.d.ts +1 -7
- package/types-ts3.8/integrations/node-fetch.d.ts +15 -0
- package/types-ts3.8/integrations/onuncaughtexception.d.ts +3 -12
- package/types-ts3.8/integrations/onunhandledrejection.d.ts +3 -10
- package/types-ts3.8/integrations/spotlight.d.ts +1 -10
- package/types-ts3.8/integrations/tracing/express.d.ts +37 -0
- package/types-ts3.8/integrations/tracing/fastify.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/graphql.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/hapi/index.d.ts +18 -0
- package/types-ts3.8/integrations/{hapi → tracing/hapi}/types.d.ts +1 -2
- package/types-ts3.8/integrations/tracing/index.d.ts +6 -0
- package/types-ts3.8/integrations/tracing/koa.d.ts +2 -0
- package/types-ts3.8/integrations/tracing/mongo.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/mongoose.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/mysql.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/mysql2.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/nest.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/postgres.d.ts +7 -0
- package/types-ts3.8/integrations/tracing/prisma.d.ts +11 -0
- package/types-ts3.8/nodeVersion.d.ts +3 -3
- package/types-ts3.8/otel/contextManager.d.ts +10 -0
- package/types-ts3.8/proxy/helpers.d.ts +0 -1
- package/types-ts3.8/proxy/index.d.ts +0 -1
- package/types-ts3.8/sdk/api.d.ts +18 -0
- package/types-ts3.8/sdk/client.d.ts +17 -0
- package/types-ts3.8/sdk/globals.d.ts +6 -0
- package/types-ts3.8/sdk/hub.d.ts +7 -0
- package/types-ts3.8/sdk/init.d.ts +9 -0
- package/types-ts3.8/sdk/initOtel.d.ts +9 -0
- package/types-ts3.8/sdk/scope.d.ts +7 -0
- package/types-ts3.8/transports/http-module.d.ts +2 -4
- package/types-ts3.8/types.d.ts +18 -25
- package/types-ts3.8/utils/addOriginToSpan.d.ts +5 -0
- package/types-ts3.8/utils/getRequestUrl.d.ts +5 -0
- package/types-ts3.8/utils/prepareEvent.d.ts +17 -0
- package/cjs/async/domain.js +0 -61
- package/cjs/async/domain.js.map +0 -1
- package/cjs/async/hooks.js +0 -50
- package/cjs/async/hooks.js.map +0 -1
- package/cjs/async/index.js +0 -22
- package/cjs/async/index.js.map +0 -1
- package/cjs/client.js +0 -39
- package/cjs/client.js.map +0 -1
- package/cjs/handlers.js +0 -340
- package/cjs/handlers.js.map +0 -1
- package/cjs/integrations/anr/legacy.js +0 -29
- package/cjs/integrations/anr/legacy.js.map +0 -1
- package/cjs/integrations/hapi/index.js +0 -161
- package/cjs/integrations/hapi/index.js.map +0 -1
- package/cjs/integrations/index.js +0 -32
- package/cjs/integrations/index.js.map +0 -1
- package/cjs/integrations/undici/index.js +0 -307
- package/cjs/integrations/undici/index.js.map +0 -1
- package/cjs/integrations/utils/errorhandling.js.map +0 -1
- package/cjs/integrations/utils/http.js +0 -225
- package/cjs/integrations/utils/http.js.map +0 -1
- package/cjs/module.js.map +0 -1
- package/cjs/requestDataDeprecated.js +0 -45
- package/cjs/requestDataDeprecated.js.map +0 -1
- package/cjs/sdk.js +0 -284
- package/cjs/sdk.js.map +0 -1
- package/cjs/tracing/index.js +0 -29
- package/cjs/tracing/index.js.map +0 -1
- package/cjs/tracing/integrations.js +0 -14
- package/cjs/tracing/integrations.js.map +0 -1
- package/cjs/utils.js +0 -45
- package/cjs/utils.js.map +0 -1
- package/esm/async/domain.js +0 -56
- package/esm/async/domain.js.map +0 -1
- package/esm/async/hooks.js +0 -45
- package/esm/async/hooks.js.map +0 -1
- package/esm/async/index.js +0 -20
- package/esm/async/index.js.map +0 -1
- package/esm/client.js +0 -37
- package/esm/client.js.map +0 -1
- package/esm/handlers.js +0 -330
- package/esm/handlers.js.map +0 -1
- package/esm/integrations/anr/legacy.js +0 -27
- package/esm/integrations/anr/legacy.js.map +0 -1
- package/esm/integrations/hapi/index.js +0 -156
- package/esm/integrations/hapi/index.js.map +0 -1
- package/esm/integrations/index.js +0 -16
- package/esm/integrations/index.js.map +0 -1
- package/esm/integrations/undici/index.js +0 -301
- package/esm/integrations/undici/index.js.map +0 -1
- package/esm/integrations/utils/errorhandling.js.map +0 -1
- package/esm/integrations/utils/http.js +0 -216
- package/esm/integrations/utils/http.js.map +0 -1
- package/esm/module.js.map +0 -1
- package/esm/requestDataDeprecated.js +0 -42
- package/esm/requestDataDeprecated.js.map +0 -1
- package/esm/sdk.js +0 -274
- package/esm/sdk.js.map +0 -1
- package/esm/tracing/index.js +0 -27
- package/esm/tracing/index.js.map +0 -1
- package/esm/tracing/integrations.js +0 -2
- package/esm/tracing/integrations.js.map +0 -1
- package/esm/utils.js +0 -43
- package/esm/utils.js.map +0 -1
- package/types/async/domain.d.ts +0 -5
- package/types/async/domain.d.ts.map +0 -1
- package/types/async/hooks.d.ts +0 -5
- package/types/async/hooks.d.ts.map +0 -1
- package/types/async/index.d.ts +0 -8
- package/types/async/index.d.ts.map +0 -1
- package/types/client.d.ts +0 -16
- package/types/client.d.ts.map +0 -1
- package/types/handlers.d.ts +0 -57
- package/types/handlers.d.ts.map +0 -1
- package/types/integrations/anr/legacy.d.ts +0 -22
- package/types/integrations/anr/legacy.d.ts.map +0 -1
- package/types/integrations/hapi/index.d.ts +0 -22
- package/types/integrations/hapi/index.d.ts.map +0 -1
- package/types/integrations/hapi/types.d.ts.map +0 -1
- package/types/integrations/index.d.ts +0 -14
- package/types/integrations/index.d.ts.map +0 -1
- package/types/integrations/undici/index.d.ts +0 -58
- package/types/integrations/undici/index.d.ts.map +0 -1
- package/types/integrations/undici/types.d.ts +0 -224
- package/types/integrations/undici/types.d.ts.map +0 -1
- package/types/integrations/utils/errorhandling.d.ts.map +0 -1
- package/types/integrations/utils/http.d.ts +0 -70
- package/types/integrations/utils/http.d.ts.map +0 -1
- package/types/module.d.ts.map +0 -1
- package/types/requestDataDeprecated.d.ts +0 -45
- package/types/requestDataDeprecated.d.ts.map +0 -1
- package/types/sdk.d.ts +0 -74
- package/types/sdk.d.ts.map +0 -1
- package/types/tracing/index.d.ts +0 -6
- package/types/tracing/index.d.ts.map +0 -1
- package/types/tracing/integrations.d.ts +0 -2
- package/types/tracing/integrations.d.ts.map +0 -1
- package/types/utils.d.ts +0 -10
- package/types/utils.d.ts.map +0 -1
- package/types-ts3.8/async/domain.d.ts +0 -5
- package/types-ts3.8/async/hooks.d.ts +0 -5
- package/types-ts3.8/async/index.d.ts +0 -8
- package/types-ts3.8/client.d.ts +0 -16
- package/types-ts3.8/handlers.d.ts +0 -57
- package/types-ts3.8/integrations/anr/legacy.d.ts +0 -22
- package/types-ts3.8/integrations/hapi/index.d.ts +0 -22
- package/types-ts3.8/integrations/index.d.ts +0 -14
- package/types-ts3.8/integrations/undici/index.d.ts +0 -58
- package/types-ts3.8/integrations/undici/types.d.ts +0 -223
- package/types-ts3.8/integrations/utils/http.d.ts +0 -80
- package/types-ts3.8/requestDataDeprecated.d.ts +0 -45
- package/types-ts3.8/sdk.d.ts +0 -74
- package/types-ts3.8/tracing/index.d.ts +0 -6
- package/types-ts3.8/tracing/integrations.d.ts +0 -2
- package/types-ts3.8/utils.d.ts +0 -10
- /package/cjs/{module.js → utils/module.js} +0 -0
- /package/esm/{module.js → utils/module.js} +0 -0
- /package/types/{integrations/utils → utils}/errorhandling.d.ts +0 -0
- /package/types/{module.d.ts → utils/module.d.ts} +0 -0
- /package/types-ts3.8/{integrations/utils → utils}/errorhandling.d.ts +0 -0
- /package/types-ts3.8/{module.d.ts → utils/module.d.ts} +0 -0
package/types/index.d.ts
CHANGED
|
@@ -1,147 +1,35 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export type { NodeOptions } from './types';
|
|
4
|
-
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, setHttpStatus, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, startSession, captureSession, endSession, } from '@sentry/core';
|
|
5
|
-
export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core';
|
|
6
|
-
export type { SpanStatusType } from '@sentry/core';
|
|
7
|
-
export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
|
|
8
|
-
export { NodeClient } from './client';
|
|
9
|
-
export { makeNodeTransport } from './transports';
|
|
10
|
-
export { defaultIntegrations, getDefaultIntegrations, init, defaultStackParser, getSentryRelease, } from './sdk';
|
|
11
|
-
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
|
|
12
|
-
export { deepReadDirSync } from './utils';
|
|
13
|
-
import { createGetModuleFromFilename } from './module';
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated use `createGetModuleFromFilename` instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const getModuleFromFilename: (filename: string | undefined) => string | undefined;
|
|
18
|
-
export { createGetModuleFromFilename };
|
|
19
|
-
export { enableAnrDetection } from './integrations/anr/legacy';
|
|
20
|
-
import * as Handlers from './handlers';
|
|
21
|
-
import * as NodeIntegrations from './integrations';
|
|
22
|
-
import * as TracingIntegrations from './tracing/integrations';
|
|
23
|
-
export declare const Integrations: {
|
|
24
|
-
Apollo: typeof TracingIntegrations.Apollo;
|
|
25
|
-
Express: typeof TracingIntegrations.Express;
|
|
26
|
-
GraphQL: typeof TracingIntegrations.GraphQL;
|
|
27
|
-
Mongo: typeof TracingIntegrations.Mongo;
|
|
28
|
-
Mysql: typeof TracingIntegrations.Mysql;
|
|
29
|
-
Postgres: typeof TracingIntegrations.Postgres;
|
|
30
|
-
Prisma: typeof TracingIntegrations.Prisma;
|
|
31
|
-
Console: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
32
|
-
setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
33
|
-
}>;
|
|
34
|
-
Http: typeof NodeIntegrations.Http;
|
|
35
|
-
OnUncaughtException: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
36
|
-
setup: (client: import("./client").NodeClient) => void;
|
|
37
|
-
}> & (new (options?: Partial<{
|
|
38
|
-
exitEvenIfOtherHandlersAreRegistered: boolean;
|
|
39
|
-
onFatalError?(this: void, firstError: Error, secondError?: Error | undefined): void;
|
|
40
|
-
}> | undefined) => import("@sentry/types").Integration);
|
|
41
|
-
OnUnhandledRejection: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
42
|
-
setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
43
|
-
}> & (new (options?: Partial<{
|
|
44
|
-
mode: "warn" | "none" | "strict";
|
|
45
|
-
}> | undefined) => import("@sentry/types").Integration);
|
|
46
|
-
Modules: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
47
|
-
processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
|
|
48
|
-
}>;
|
|
49
|
-
ContextLines: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
50
|
-
processEvent: (event: import("@sentry/types").Event) => Promise<import("@sentry/types").Event>;
|
|
51
|
-
}> & (new (options?: {
|
|
52
|
-
frameContextLines?: number | undefined;
|
|
53
|
-
} | undefined) => import("@sentry/types").Integration);
|
|
54
|
-
Context: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
55
|
-
processEvent: (event: import("@sentry/types").Event) => Promise<import("@sentry/types").Event>;
|
|
56
|
-
}> & (new (options?: {
|
|
57
|
-
app?: boolean | undefined;
|
|
58
|
-
os?: boolean | undefined;
|
|
59
|
-
device?: boolean | {
|
|
60
|
-
cpu?: boolean | undefined;
|
|
61
|
-
memory?: boolean | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
culture?: boolean | undefined;
|
|
64
|
-
cloudResource?: boolean | undefined;
|
|
65
|
-
} | undefined) => import("@sentry/types").Integration);
|
|
66
|
-
RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
67
|
-
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event;
|
|
68
|
-
}> & (new (options?: {
|
|
69
|
-
include?: {
|
|
70
|
-
cookies?: boolean | undefined;
|
|
71
|
-
data?: boolean | undefined;
|
|
72
|
-
headers?: boolean | undefined;
|
|
73
|
-
ip?: boolean | undefined;
|
|
74
|
-
query_string?: boolean | undefined;
|
|
75
|
-
url?: boolean | undefined;
|
|
76
|
-
user?: boolean | {
|
|
77
|
-
id?: boolean | undefined;
|
|
78
|
-
username?: boolean | undefined;
|
|
79
|
-
email?: boolean | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined;
|
|
83
|
-
} | undefined) => import("@sentry/types").Integration);
|
|
84
|
-
LocalVariables: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
85
|
-
processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
|
|
86
|
-
setup: (client: import("./client").NodeClient) => void;
|
|
87
|
-
}> & (new (options?: import("./integrations/local-variables/common").LocalVariablesIntegrationOptions | undefined, session?: import("./integrations/local-variables/local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration);
|
|
88
|
-
Undici: typeof NodeIntegrations.Undici;
|
|
89
|
-
Spotlight: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
90
|
-
setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
91
|
-
}> & (new (options?: Partial<{
|
|
92
|
-
sidecarUrl?: string | undefined;
|
|
93
|
-
}> | undefined) => import("@sentry/types").Integration);
|
|
94
|
-
Anr: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
95
|
-
setup: (client: import("./client").NodeClient) => void;
|
|
96
|
-
}> & (new (options?: Partial<import("./integrations/anr/common").AnrIntegrationOptions> | undefined) => import("@sentry/types").Integration & {
|
|
97
|
-
setup(client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>): void;
|
|
98
|
-
});
|
|
99
|
-
Hapi: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration>;
|
|
100
|
-
FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
101
|
-
setupOnce: () => void;
|
|
102
|
-
}>;
|
|
103
|
-
InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
104
|
-
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
105
|
-
}> & (new (options?: Partial<{
|
|
106
|
-
allowUrls: (string | RegExp)[];
|
|
107
|
-
denyUrls: (string | RegExp)[];
|
|
108
|
-
ignoreErrors: (string | RegExp)[];
|
|
109
|
-
ignoreTransactions: (string | RegExp)[];
|
|
110
|
-
ignoreInternal: boolean;
|
|
111
|
-
disableErrorDefaults: boolean;
|
|
112
|
-
disableTransactionDefaults: boolean;
|
|
113
|
-
}> | undefined) => import("@sentry/types").Integration);
|
|
114
|
-
LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
115
|
-
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
116
|
-
}> & (new (options?: {
|
|
117
|
-
key?: string | undefined;
|
|
118
|
-
limit?: number | undefined;
|
|
119
|
-
} | undefined) => import("@sentry/types").Integration);
|
|
120
|
-
};
|
|
1
|
+
export { httpIntegration } from './integrations/http';
|
|
2
|
+
export { nativeNodeFetchIntegration } from './integrations/node-fetch';
|
|
121
3
|
export { consoleIntegration } from './integrations/console';
|
|
122
|
-
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
|
|
123
|
-
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
|
|
124
|
-
export { modulesIntegration } from './integrations/modules';
|
|
125
|
-
export { contextLinesIntegration } from './integrations/contextlines';
|
|
126
4
|
export { nodeContextIntegration } from './integrations/context';
|
|
5
|
+
export { contextLinesIntegration } from './integrations/contextlines';
|
|
127
6
|
export { localVariablesIntegration } from './integrations/local-variables';
|
|
128
|
-
export {
|
|
7
|
+
export { modulesIntegration } from './integrations/modules';
|
|
8
|
+
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
|
|
9
|
+
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
|
|
129
10
|
export { anrIntegration } from './integrations/anr';
|
|
130
|
-
export {
|
|
131
|
-
export {
|
|
132
|
-
export {
|
|
133
|
-
export
|
|
134
|
-
export
|
|
135
|
-
export
|
|
136
|
-
export {
|
|
137
|
-
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
};
|
|
11
|
+
export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
|
|
12
|
+
export { fastifyIntegration } from './integrations/tracing/fastify';
|
|
13
|
+
export { graphqlIntegration } from './integrations/tracing/graphql';
|
|
14
|
+
export { mongoIntegration } from './integrations/tracing/mongo';
|
|
15
|
+
export { mongooseIntegration } from './integrations/tracing/mongoose';
|
|
16
|
+
export { mysqlIntegration } from './integrations/tracing/mysql';
|
|
17
|
+
export { mysql2Integration } from './integrations/tracing/mysql2';
|
|
18
|
+
export { nestIntegration } from './integrations/tracing/nest';
|
|
19
|
+
export { postgresIntegration } from './integrations/tracing/postgres';
|
|
20
|
+
export { prismaIntegration } from './integrations/tracing/prisma';
|
|
21
|
+
export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi';
|
|
22
|
+
export { init, getDefaultIntegrations } from './sdk/init';
|
|
23
|
+
export { getAutoPerformanceIntegrations } from './integrations/tracing';
|
|
24
|
+
export { getClient, getSentryRelease, defaultStackParser, makeMain, } from './sdk/api';
|
|
25
|
+
export { createGetModuleFromFilename } from './utils/module';
|
|
26
|
+
export { makeNodeTransport } from './transports';
|
|
27
|
+
export { NodeClient } from './sdk/client';
|
|
28
|
+
export { getCurrentHub } from './sdk/hub';
|
|
29
|
+
export { cron } from './cron';
|
|
30
|
+
export type { Span, NodeOptions } from './types';
|
|
31
|
+
export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan, } from '@sentry/opentelemetry';
|
|
32
|
+
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData, } from '@sentry/utils';
|
|
33
|
+
export { addBreadcrumb, isInitialized, getGlobalScope, close, createTransport, flush, Hub, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, continueTrace, parameterize, getCurrentScope, getIsolationScope, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, } from '@sentry/core';
|
|
34
|
+
export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types';
|
|
147
35
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACnH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAElB,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EACL,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,KAAK,EACL,eAAe,EACf,KAAK,EACL,GAAG,EACH,WAAW,EACX,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,4BAA4B,EAC5B,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,gBAAgB,EAChB,KAAK,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,GACL,MAAM,eAAe,CAAC"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import type { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
import type { NodeClient } from '../../client';
|
|
3
1
|
import type { AnrIntegrationOptions } from './common';
|
|
4
2
|
export declare const anrIntegration: (options?: Partial<AnrIntegrationOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
5
|
-
/**
|
|
6
|
-
* Starts a thread to detect App Not Responding (ANR) events
|
|
7
|
-
*
|
|
8
|
-
* ANR detection requires Node 16.17.0 or later
|
|
9
|
-
*
|
|
10
|
-
* @deprecated Use `anrIntegration()` instead.
|
|
11
|
-
*/
|
|
12
|
-
export declare const Anr: IntegrationClass<Integration & {
|
|
13
|
-
setup: (client: NodeClient) => void;
|
|
14
|
-
}> & (new (options?: Partial<AnrIntegrationOptions>) => Integration & {
|
|
15
|
-
setup(client: Client): void;
|
|
16
|
-
});
|
|
17
|
-
export type Anr = typeof Anr;
|
|
18
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AA8CvE,eAAO,MAAM,cAAc,uGAAqC,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import type { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @deprecated Use `consoleIntegration()` instead.
|
|
2
|
+
* Capture console logs as breadcrumbs.
|
|
6
3
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
setup: (client: Client) => void;
|
|
9
|
-
}>;
|
|
10
|
-
export type Console = typeof Console;
|
|
4
|
+
export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
11
5
|
//# sourceMappingURL=console.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAgCA;;GAEG;AACH,eAAO,MAAM,kBAAkB,mDAAyC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { readFile, readdir } from 'fs';
|
|
3
|
-
import
|
|
4
|
-
import type { DeviceContext, Event, Integration, IntegrationClass } from '@sentry/types';
|
|
3
|
+
import type { DeviceContext } from '@sentry/types';
|
|
5
4
|
export declare const readFileAsync: typeof readFile.__promisify__;
|
|
6
5
|
export declare const readDirAsync: typeof readdir.__promisify__;
|
|
7
6
|
interface DeviceContextOptions {
|
|
@@ -15,24 +14,10 @@ interface ContextOptions {
|
|
|
15
14
|
culture?: boolean;
|
|
16
15
|
cloudResource?: boolean;
|
|
17
16
|
}
|
|
18
|
-
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @deprecated Use `nodeContextIntegration()` instead.
|
|
18
|
+
* Capture context about the environment and the device that the client is running on, to events.
|
|
22
19
|
*/
|
|
23
|
-
export declare const
|
|
24
|
-
processEvent: (event: Event) => Promise<Event>;
|
|
25
|
-
}> & (new (options?: {
|
|
26
|
-
app?: boolean;
|
|
27
|
-
os?: boolean;
|
|
28
|
-
device?: {
|
|
29
|
-
cpu?: boolean;
|
|
30
|
-
memory?: boolean;
|
|
31
|
-
} | boolean;
|
|
32
|
-
culture?: boolean;
|
|
33
|
-
cloudResource?: boolean;
|
|
34
|
-
}) => Integration);
|
|
35
|
-
export type Context = typeof Context;
|
|
20
|
+
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
36
21
|
/**
|
|
37
22
|
* Gets device information from os
|
|
38
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAKvC,OAAO,KAAK,EAKV,aAAa,EAId,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,aAAa,+BAAsB,CAAC;AACjD,eAAO,MAAM,YAAY,8BAAqB,CAAC;AAI/C,UAAU,oBAAoB;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyED;;GAEG;AACH,eAAO,MAAM,sBAAsB,uFAA6C,CAAC;AAmFjF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,GAAG,aAAa,CAqCtF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event
|
|
1
|
+
import type { Event } from '@sentry/types';
|
|
2
2
|
/**
|
|
3
3
|
* Resets the file cache. Exists for testing purposes.
|
|
4
4
|
* @hidden
|
|
@@ -13,16 +13,14 @@ interface ContextLinesOptions {
|
|
|
13
13
|
**/
|
|
14
14
|
frameContextLines?: number;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/** Exported only for tests, as a type-safe variant. */
|
|
17
|
+
export declare const _contextLinesIntegration: (options?: ContextLinesOptions) => {
|
|
18
|
+
name: string;
|
|
19
|
+
processEvent(event: Event): Promise<Event>;
|
|
20
|
+
};
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Use `contextLinesIntegration()` instead.
|
|
22
|
+
* Capture the lines before and after the frame's context.
|
|
20
23
|
*/
|
|
21
|
-
export declare const
|
|
22
|
-
processEvent: (event: Event) => Promise<Event>;
|
|
23
|
-
}> & (new (options?: {
|
|
24
|
-
frameContextLines?: number;
|
|
25
|
-
}) => Integration);
|
|
26
|
-
export type ContextLines = typeof ContextLines;
|
|
24
|
+
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
27
25
|
export {};
|
|
28
26
|
//# sourceMappingURL=contextlines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAA6B,MAAM,eAAe,CAAC;AAStE;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,aAAc,mBAAmB;;;CAS5C,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,uBAAuB,4FAA8C,CAAC"}
|
|
@@ -1,101 +1,20 @@
|
|
|
1
|
-
import type { Hub } from '@sentry/core';
|
|
2
|
-
import type { ClientOptions, EventProcessor, Integration, IntegrationFnResult, TracePropagationTargets } from '@sentry/types';
|
|
3
|
-
import type { NodeClientOptions } from '../types';
|
|
4
|
-
interface TracingOptions {
|
|
5
|
-
/**
|
|
6
|
-
* List of strings/regex controlling to which outgoing requests
|
|
7
|
-
* the SDK will attach tracing headers.
|
|
8
|
-
*
|
|
9
|
-
* By default the SDK will attach those headers to all outgoing
|
|
10
|
-
* requests. If this option is provided, the SDK will match the
|
|
11
|
-
* request URL of outgoing requests against the items in this
|
|
12
|
-
* array, and only attach tracing headers if a match was found.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated Use top level `tracePropagationTargets` option instead.
|
|
15
|
-
* This option will be removed in v8.
|
|
16
|
-
*
|
|
17
|
-
* ```
|
|
18
|
-
* Sentry.init({
|
|
19
|
-
* tracePropagationTargets: ['api.site.com'],
|
|
20
|
-
* })
|
|
21
|
-
*/
|
|
22
|
-
tracePropagationTargets?: TracePropagationTargets;
|
|
23
|
-
/**
|
|
24
|
-
* Function determining whether or not to create spans to track outgoing requests to the given URL.
|
|
25
|
-
* By default, spans will be created for all outgoing requests.
|
|
26
|
-
*/
|
|
27
|
-
shouldCreateSpanForRequest?: (url: string) => boolean;
|
|
28
|
-
/**
|
|
29
|
-
* This option is just for compatibility with v7.
|
|
30
|
-
* In v8, this will be the default behavior.
|
|
31
|
-
*/
|
|
32
|
-
enableIfHasTracingEnabled?: boolean;
|
|
33
|
-
}
|
|
34
1
|
interface HttpOptions {
|
|
35
2
|
/**
|
|
36
|
-
* Whether breadcrumbs should be recorded for requests
|
|
3
|
+
* Whether breadcrumbs should be recorded for requests.
|
|
37
4
|
* Defaults to true
|
|
38
5
|
*/
|
|
39
6
|
breadcrumbs?: boolean;
|
|
40
7
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
tracing?: TracingOptions | boolean;
|
|
45
|
-
}
|
|
46
|
-
interface HttpIntegrationOptions {
|
|
47
|
-
/**
|
|
48
|
-
* Whether breadcrumbs should be recorded for requests
|
|
49
|
-
* Defaults to true.
|
|
50
|
-
*/
|
|
51
|
-
breadcrumbs?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Whether tracing spans should be created for requests
|
|
54
|
-
* If not set, this will be enabled/disabled based on if tracing is enabled.
|
|
55
|
-
*/
|
|
56
|
-
tracing?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Function determining whether or not to create spans to track outgoing requests to the given URL.
|
|
59
|
-
* By default, spans will be created for all outgoing requests.
|
|
60
|
-
*/
|
|
61
|
-
shouldCreateSpanForRequest?: (url: string) => boolean;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The http module integration instruments Node's internal http module. It creates breadcrumbs, spans for outgoing
|
|
65
|
-
* http requests, and attaches trace data when tracing is enabled via its `tracing` option.
|
|
66
|
-
*
|
|
67
|
-
* By default, this will always create breadcrumbs, and will create spans if tracing is enabled.
|
|
68
|
-
*/
|
|
69
|
-
export declare const httpIntegration: (options?: HttpIntegrationOptions | undefined) => IntegrationFnResult;
|
|
70
|
-
/**
|
|
71
|
-
* The http module integration instruments Node's internal http module. It creates breadcrumbs, transactions for outgoing
|
|
72
|
-
* http requests and attaches trace data when tracing is enabled via its `tracing` option.
|
|
73
|
-
*
|
|
74
|
-
* @deprecated Use `httpIntegration()` instead.
|
|
75
|
-
*/
|
|
76
|
-
export declare class Http implements Integration {
|
|
77
|
-
/**
|
|
78
|
-
* @inheritDoc
|
|
79
|
-
*/
|
|
80
|
-
static id: string;
|
|
81
|
-
/**
|
|
82
|
-
* @inheritDoc
|
|
83
|
-
*/
|
|
84
|
-
name: string;
|
|
85
|
-
private readonly _breadcrumbs;
|
|
86
|
-
private readonly _tracing;
|
|
87
|
-
/**
|
|
88
|
-
* @inheritDoc
|
|
8
|
+
* Do not capture spans or breadcrumbs for outgoing HTTP requests to URLs where the given callback returns `true`.
|
|
9
|
+
* This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
|
|
89
10
|
*/
|
|
90
|
-
|
|
11
|
+
ignoreOutgoingRequests?: (url: string) => boolean;
|
|
91
12
|
/**
|
|
92
|
-
*
|
|
13
|
+
* Do not capture spans or breadcrumbs for incoming HTTP requests to URLs where the given callback returns `true`.
|
|
14
|
+
* This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
|
|
93
15
|
*/
|
|
94
|
-
|
|
16
|
+
ignoreIncomingRequests?: (url: string) => boolean;
|
|
95
17
|
}
|
|
96
|
-
|
|
97
|
-
export declare function _shouldCreateSpans(tracingOptions: TracingOptions | undefined, clientOptions: Partial<ClientOptions> | undefined): boolean;
|
|
98
|
-
/** Exported for tests only. */
|
|
99
|
-
export declare function _getShouldCreateSpanForRequest(shouldCreateSpans: boolean, tracingOptions: TracingOptions | undefined, clientOptions: Partial<NodeClientOptions> | undefined): undefined | ((url: string) => boolean);
|
|
18
|
+
export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
100
19
|
export {};
|
|
101
20
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"AAgBA,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAElD;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAqFD,eAAO,MAAM,eAAe,oFAAsC,CAAC"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import { LocalVariablesSync } from './local-variables-sync';
|
|
2
|
-
/**
|
|
3
|
-
* Adds local variables to exception frames.
|
|
4
|
-
*
|
|
5
|
-
* @deprecated Use `localVariablesIntegration()` instead.
|
|
6
|
-
*/
|
|
7
|
-
export declare const LocalVariables: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
8
|
-
processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
|
|
9
|
-
setup: (client: import("../..").NodeClient) => void;
|
|
10
|
-
}> & (new (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration);
|
|
11
|
-
export type LocalVariables = LocalVariablesSync;
|
|
12
1
|
export declare const localVariablesIntegration: (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
13
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,iMAAgC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
import type { NodeClient } from '../../client';
|
|
2
|
+
import type { NodeClient } from '../../sdk/client';
|
|
3
3
|
import type { LocalVariablesIntegrationOptions } from './common';
|
|
4
4
|
export declare const localVariablesAsyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAEV,gCAAgC,EAIjC,MAAM,UAAU,CAAC;AAyPlB,eAAO,MAAM,8BAA8B,yGAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;0BAG4B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;EAAG,CAAC;AAGpH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
2
2
|
import type { Debugger, InspectorNotification } from 'inspector';
|
|
3
|
-
import type { NodeClient } from '../../client';
|
|
3
|
+
import type { NodeClient } from '../../sdk/client';
|
|
4
4
|
import type { LocalVariablesIntegrationOptions, Variables } from './common';
|
|
5
5
|
type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
|
|
6
6
|
export interface DebugSession {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAEjH,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,WAAW,CAAC;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,KAAK,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/G,kDAAkD;IAClD,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,2CAA2C;IAC3C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;CAChF;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AACnC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAiC3E;AAiVD,eAAO,MAAM,6BAA6B,6IAAoD,CAAC;AAE/F;;;GAGG;AAEH,eAAO,MAAM,kBAAkB;0BAG6B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;qBAC/F,gCAAgC,YAAY,YAAY,KAAG,WAAW,CACtF,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
export declare const modulesIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
3
1
|
/**
|
|
4
2
|
* Add node modules / packages to the event.
|
|
5
|
-
* @deprecated Use `modulesIntegration()` instead.
|
|
6
3
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
processEvent: (event: Event) => Event;
|
|
9
|
-
}>;
|
|
10
|
-
export type Modules = typeof Modules;
|
|
4
|
+
export declare const modulesIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
11
5
|
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,eAAO,MAAM,kBAAkB,mDAAyC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface NodeFetchOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether breadcrumbs should be recorded for requests.
|
|
4
|
+
* Defaults to true
|
|
5
|
+
*/
|
|
6
|
+
breadcrumbs?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Do not capture spans or breadcrumbs for outgoing fetch requests to URLs where the given callback returns `true`.
|
|
9
|
+
* This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
|
|
10
|
+
*/
|
|
11
|
+
ignoreOutgoingRequests?: (url: string) => boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=node-fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-fetch.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-fetch.ts"],"names":[],"mappings":"AAWA,UAAU,gBAAgB;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAkDD,eAAO,MAAM,0BAA0B,yFAAiD,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NodeClient } from '../client';
|
|
1
|
+
import type { NodeClient } from '../sdk/client';
|
|
3
2
|
interface OnUncaughtExceptionOptions {
|
|
4
3
|
/**
|
|
5
4
|
* Controls if the SDK should register a handler to exit the process on uncaught errors:
|
|
@@ -19,18 +18,10 @@ interface OnUncaughtExceptionOptions {
|
|
|
19
18
|
*/
|
|
20
19
|
onFatalError?(this: void, firstError: Error, secondError?: Error): void;
|
|
21
20
|
}
|
|
22
|
-
export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use `onUncaughtExceptionIntegration()` instead.
|
|
22
|
+
* Add a global exception handler.
|
|
26
23
|
*/
|
|
27
|
-
export declare const
|
|
28
|
-
setup: (client: NodeClient) => void;
|
|
29
|
-
}> & (new (options?: Partial<{
|
|
30
|
-
exitEvenIfOtherHandlersAreRegistered: boolean;
|
|
31
|
-
onFatalError?(this: void, firstError: Error, secondError?: Error): void;
|
|
32
|
-
}> | undefined) => Integration);
|
|
33
|
-
export type OnUncaughtException = typeof OnUncaughtException;
|
|
24
|
+
export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
34
25
|
type ErrorHandler = {
|
|
35
26
|
_errorHandler: boolean;
|
|
36
27
|
} & ((error: Error) => void);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAUhD,UAAU,0BAA0B;IAIlC;;;;;;OAMG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACzE;AAkBD;;GAEG;AACH,eAAO,MAAM,8BAA8B,4GAAqD,CAAC;AAEjG,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE1E,8BAA8B;AAC9B,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,GAAG,YAAY,CAyGtG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Client
|
|
1
|
+
import type { Client } from '@sentry/types';
|
|
2
2
|
type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
|
|
3
3
|
interface OnUnhandledRejectionOptions {
|
|
4
4
|
/**
|
|
@@ -7,17 +7,10 @@ interface OnUnhandledRejectionOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
mode: UnhandledRejectionMode;
|
|
9
9
|
}
|
|
10
|
-
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @deprecated Use `onUnhandledRejectionIntegration()` instead.
|
|
11
|
+
* Add a global promise rejection handler.
|
|
14
12
|
*/
|
|
15
|
-
export declare const
|
|
16
|
-
setup: (client: Client) => void;
|
|
17
|
-
}> & (new (options?: Partial<{
|
|
18
|
-
mode: UnhandledRejectionMode;
|
|
19
|
-
}>) => Integration);
|
|
20
|
-
export type OnUnhandledRejection = typeof OnUnhandledRejection;
|
|
13
|
+
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
21
14
|
/**
|
|
22
15
|
* Send an exception with reason
|
|
23
16
|
* @param reason string
|