@sentry/node 7.105.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 -99
- 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 -145
- 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 -145
- 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/cjs/integrations/http.js
CHANGED
|
@@ -4,385 +4,134 @@ var {
|
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
6
|
|
|
7
|
+
const api = require('@opentelemetry/api');
|
|
8
|
+
const instrumentation = require('@opentelemetry/instrumentation');
|
|
9
|
+
const instrumentationHttp = require('@opentelemetry/instrumentation-http');
|
|
7
10
|
const core = require('@sentry/core');
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
11
|
+
const opentelemetry = require('@sentry/opentelemetry');
|
|
12
|
+
const scope = require('../sdk/scope.js');
|
|
13
|
+
const addOriginToSpan = require('../utils/addOriginToSpan.js');
|
|
14
|
+
const getRequestUrl = require('../utils/getRequestUrl.js');
|
|
12
15
|
|
|
13
16
|
const _httpIntegration = ((options = {}) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return new Http(convertedOptions) ;
|
|
30
|
-
}) ;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The http module integration instruments Node's internal http module. It creates breadcrumbs, spans for outgoing
|
|
34
|
-
* http requests, and attaches trace data when tracing is enabled via its `tracing` option.
|
|
35
|
-
*
|
|
36
|
-
* By default, this will always create breadcrumbs, and will create spans if tracing is enabled.
|
|
37
|
-
*/
|
|
38
|
-
const httpIntegration = core.defineIntegration(_httpIntegration);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The http module integration instruments Node's internal http module. It creates breadcrumbs, transactions for outgoing
|
|
42
|
-
* http requests and attaches trace data when tracing is enabled via its `tracing` option.
|
|
43
|
-
*
|
|
44
|
-
* @deprecated Use `httpIntegration()` instead.
|
|
45
|
-
*/
|
|
46
|
-
class Http {
|
|
47
|
-
/**
|
|
48
|
-
* @inheritDoc
|
|
49
|
-
*/
|
|
50
|
-
static __initStatic() {this.id = 'Http';}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @inheritDoc
|
|
54
|
-
*/
|
|
55
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
56
|
-
__init() {this.name = Http.id;}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @inheritDoc
|
|
60
|
-
*/
|
|
61
|
-
constructor(options = {}) {Http.prototype.__init.call(this);
|
|
62
|
-
this._breadcrumbs = typeof options.breadcrumbs === 'undefined' ? true : options.breadcrumbs;
|
|
63
|
-
this._tracing = !options.tracing ? undefined : options.tracing === true ? {} : options.tracing;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @inheritDoc
|
|
68
|
-
*/
|
|
69
|
-
setupOnce(
|
|
70
|
-
_addGlobalEventProcessor,
|
|
71
|
-
setupOnceGetCurrentHub,
|
|
72
|
-
) {
|
|
73
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
74
|
-
const clientOptions = _optionalChain([setupOnceGetCurrentHub, 'call', _ => _(), 'access', _2 => _2.getClient, 'call', _3 => _3(), 'optionalAccess', _4 => _4.getOptions, 'call', _5 => _5()]);
|
|
75
|
-
|
|
76
|
-
// If `tracing` is not explicitly set, we default this based on whether or not tracing is enabled.
|
|
77
|
-
// But for compatibility, we only do that if `enableIfHasTracingEnabled` is set.
|
|
78
|
-
const shouldCreateSpans = _shouldCreateSpans(this._tracing, clientOptions);
|
|
79
|
-
|
|
80
|
-
// No need to instrument if we don't want to track anything
|
|
81
|
-
if (!this._breadcrumbs && !shouldCreateSpans) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Do not auto-instrument for other instrumenter
|
|
86
|
-
if (clientOptions && clientOptions.instrumenter !== 'sentry') {
|
|
87
|
-
debugBuild.DEBUG_BUILD && utils.logger.log('HTTP Integration is skipped because of instrumenter configuration.');
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const shouldCreateSpanForRequest = _getShouldCreateSpanForRequest(shouldCreateSpans, this._tracing, clientOptions);
|
|
92
|
-
|
|
93
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
94
|
-
const tracePropagationTargets = _optionalChain([clientOptions, 'optionalAccess', _6 => _6.tracePropagationTargets]) || _optionalChain([this, 'access', _7 => _7._tracing, 'optionalAccess', _8 => _8.tracePropagationTargets]);
|
|
95
|
-
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
97
|
-
const httpModule = require('http');
|
|
98
|
-
const wrappedHttpHandlerMaker = _createWrappedRequestMethodFactory(
|
|
99
|
-
httpModule,
|
|
100
|
-
this._breadcrumbs,
|
|
101
|
-
shouldCreateSpanForRequest,
|
|
102
|
-
tracePropagationTargets,
|
|
103
|
-
);
|
|
104
|
-
utils.fill(httpModule, 'get', wrappedHttpHandlerMaker);
|
|
105
|
-
utils.fill(httpModule, 'request', wrappedHttpHandlerMaker);
|
|
106
|
-
|
|
107
|
-
// NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.
|
|
108
|
-
// If we do, we'd get double breadcrumbs and double spans for `https` calls.
|
|
109
|
-
// It has been changed in Node 9, so for all versions equal and above, we patch `https` separately.
|
|
110
|
-
if (nodeVersion.NODE_VERSION.major > 8) {
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
112
|
-
const httpsModule = require('https');
|
|
113
|
-
const wrappedHttpsHandlerMaker = _createWrappedRequestMethodFactory(
|
|
114
|
-
httpsModule,
|
|
115
|
-
this._breadcrumbs,
|
|
116
|
-
shouldCreateSpanForRequest,
|
|
117
|
-
tracePropagationTargets,
|
|
118
|
-
);
|
|
119
|
-
utils.fill(httpsModule, 'get', wrappedHttpsHandlerMaker);
|
|
120
|
-
utils.fill(httpsModule, 'request', wrappedHttpsHandlerMaker);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}Http.__initStatic();
|
|
124
|
-
|
|
125
|
-
// for ease of reading below
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Function which creates a function which creates wrapped versions of internal `request` and `get` calls within `http`
|
|
129
|
-
* and `https` modules. (NB: Not a typo - this is a creator^2!)
|
|
130
|
-
*
|
|
131
|
-
* @param breadcrumbsEnabled Whether or not to record outgoing requests as breadcrumbs
|
|
132
|
-
* @param tracingEnabled Whether or not to record outgoing requests as tracing spans
|
|
133
|
-
*
|
|
134
|
-
* @returns A function which accepts the exiting handler and returns a wrapped handler
|
|
135
|
-
*/
|
|
136
|
-
function _createWrappedRequestMethodFactory(
|
|
137
|
-
httpModule,
|
|
138
|
-
breadcrumbsEnabled,
|
|
139
|
-
shouldCreateSpanForRequest,
|
|
140
|
-
tracePropagationTargets,
|
|
141
|
-
) {
|
|
142
|
-
// We're caching results so we don't have to recompute regexp every time we create a request.
|
|
143
|
-
const createSpanUrlMap = new utils.LRUMap(100);
|
|
144
|
-
const headersUrlMap = new utils.LRUMap(100);
|
|
145
|
-
|
|
146
|
-
const shouldCreateSpan = (url) => {
|
|
147
|
-
if (shouldCreateSpanForRequest === undefined) {
|
|
148
|
-
return true;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const cachedDecision = createSpanUrlMap.get(url);
|
|
152
|
-
if (cachedDecision !== undefined) {
|
|
153
|
-
return cachedDecision;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const decision = shouldCreateSpanForRequest(url);
|
|
157
|
-
createSpanUrlMap.set(url, decision);
|
|
158
|
-
return decision;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
const shouldAttachTraceData = (url) => {
|
|
162
|
-
if (tracePropagationTargets === undefined) {
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const cachedDecision = headersUrlMap.get(url);
|
|
167
|
-
if (cachedDecision !== undefined) {
|
|
168
|
-
return cachedDecision;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const decision = utils.stringMatchesSomePattern(url, tracePropagationTargets);
|
|
172
|
-
headersUrlMap.set(url, decision);
|
|
173
|
-
return decision;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Captures Breadcrumb based on provided request/response pair
|
|
178
|
-
*/
|
|
179
|
-
function addRequestBreadcrumb(
|
|
180
|
-
event,
|
|
181
|
-
requestSpanData,
|
|
182
|
-
req,
|
|
183
|
-
res,
|
|
184
|
-
) {
|
|
185
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
186
|
-
if (!core.getCurrentHub().getIntegration(Http)) {
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
core.addBreadcrumb(
|
|
191
|
-
{
|
|
192
|
-
category: 'http',
|
|
193
|
-
data: {
|
|
194
|
-
status_code: res && res.statusCode,
|
|
195
|
-
...requestSpanData,
|
|
196
|
-
},
|
|
197
|
-
type: 'http',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
event,
|
|
201
|
-
request: req,
|
|
202
|
-
response: res,
|
|
203
|
-
},
|
|
204
|
-
);
|
|
205
|
-
}
|
|
17
|
+
const _breadcrumbs = typeof options.breadcrumbs === 'undefined' ? true : options.breadcrumbs;
|
|
18
|
+
const _ignoreOutgoingRequests = options.ignoreOutgoingRequests;
|
|
19
|
+
const _ignoreIncomingRequests = options.ignoreIncomingRequests;
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
name: 'Http',
|
|
23
|
+
setupOnce() {
|
|
24
|
+
const instrumentations = [
|
|
25
|
+
new instrumentationHttp.HttpInstrumentation({
|
|
26
|
+
ignoreOutgoingRequestHook: request => {
|
|
27
|
+
const url = getRequestUrl.getRequestUrl(request);
|
|
28
|
+
|
|
29
|
+
if (!url) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
206
32
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
const requestOptions = requestArgs[0];
|
|
211
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
212
|
-
const rawRequestUrl = http.extractRawUrl(requestOptions);
|
|
213
|
-
const requestUrl = http.extractUrl(requestOptions);
|
|
214
|
-
const client = core.getClient();
|
|
33
|
+
if (core.isSentryRequestUrl(url, opentelemetry.getClient())) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
215
36
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
37
|
+
if (_ignoreOutgoingRequests && _ignoreOutgoingRequests(url)) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
220
40
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const parentSpan = core.getActiveSpan();
|
|
41
|
+
return false;
|
|
42
|
+
},
|
|
224
43
|
|
|
225
|
-
|
|
44
|
+
ignoreIncomingRequestHook: request => {
|
|
45
|
+
const url = getRequestUrl.getRequestUrl(request);
|
|
226
46
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
description: `${data['http.method']} ${data.url}`,
|
|
233
|
-
data,
|
|
234
|
-
})])
|
|
235
|
-
: undefined;
|
|
47
|
+
const method = _optionalChain([request, 'access', _ => _.method, 'optionalAccess', _2 => _2.toUpperCase, 'call', _3 => _3()]);
|
|
48
|
+
// We do not capture OPTIONS/HEAD requests as transactions
|
|
49
|
+
if (method === 'OPTIONS' || method === 'HEAD') {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
236
52
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
...scope.getPropagationContext(),
|
|
241
|
-
};
|
|
53
|
+
if (_ignoreIncomingRequests && _ignoreIncomingRequests(url)) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
242
56
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
: utils.generateSentryTraceHeader(traceId, spanId, sampled);
|
|
57
|
+
return false;
|
|
58
|
+
},
|
|
246
59
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
: core.getDynamicSamplingContextFromClient(traceId, client, scope)),
|
|
252
|
-
);
|
|
60
|
+
requireParentforOutgoingSpans: true,
|
|
61
|
+
requireParentforIncomingSpans: false,
|
|
62
|
+
requestHook: (span, req) => {
|
|
63
|
+
_updateSpan(span, req);
|
|
253
64
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
`[Tracing] Not adding sentry-trace header to outgoing request (${requestUrl}) due to mismatching tracePropagationTargets option.`,
|
|
259
|
-
);
|
|
260
|
-
}
|
|
65
|
+
// Update the isolation scope, isolate this request
|
|
66
|
+
if (opentelemetry.getSpanKind(span) === api.SpanKind.SERVER) {
|
|
67
|
+
const isolationScope = core.getIsolationScope().clone();
|
|
68
|
+
isolationScope.setSDKProcessingMetadata({ request: req });
|
|
261
69
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
if (res.statusCode) {
|
|
273
|
-
core.setHttpStatus(requestSpan, res.statusCode);
|
|
70
|
+
const client = opentelemetry.getClient();
|
|
71
|
+
if (client && client.getOptions().autoSessionTracking) {
|
|
72
|
+
isolationScope.setRequestSession({ status: 'ok' });
|
|
73
|
+
}
|
|
74
|
+
scope.setIsolationScope(isolationScope);
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
responseHook: (span, res) => {
|
|
78
|
+
if (_breadcrumbs) {
|
|
79
|
+
_addRequestBreadcrumb(span, res);
|
|
274
80
|
}
|
|
275
|
-
requestSpan.updateName(
|
|
276
|
-
http.cleanSpanDescription(core.spanToJSON(requestSpan).description || '', requestOptions, req) || '',
|
|
277
|
-
);
|
|
278
|
-
requestSpan.end();
|
|
279
|
-
}
|
|
280
|
-
})
|
|
281
|
-
.once('error', function () {
|
|
282
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
283
|
-
const req = this;
|
|
284
81
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
82
|
+
const client = opentelemetry.getClient();
|
|
83
|
+
if (client && client.getOptions().autoSessionTracking) {
|
|
84
|
+
setImmediate(() => {
|
|
85
|
+
client['_captureRequestSession']();
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
instrumentation.registerInstrumentations({
|
|
93
|
+
instrumentations,
|
|
94
|
+
});
|
|
95
|
+
},
|
|
297
96
|
};
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
function addHeadersToRequestOptions(
|
|
301
|
-
requestOptions,
|
|
302
|
-
requestUrl,
|
|
303
|
-
sentryTraceHeader,
|
|
304
|
-
sentryBaggageHeader,
|
|
305
|
-
) {
|
|
306
|
-
// Don't overwrite sentry-trace and baggage header if it's already set.
|
|
307
|
-
const headers = requestOptions.headers || {};
|
|
308
|
-
if (headers['sentry-trace']) {
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
97
|
+
}) ;
|
|
311
98
|
|
|
312
|
-
|
|
313
|
-
utils.logger.log(`[Tracing] Adding sentry-trace header ${sentryTraceHeader} to outgoing request to "${requestUrl}": `);
|
|
99
|
+
const httpIntegration = core.defineIntegration(_httpIntegration);
|
|
314
100
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
// Setting a header to `undefined` will crash in node so we only set the baggage header when it's defined
|
|
319
|
-
...(sentryBaggageHeader &&
|
|
320
|
-
sentryBaggageHeader.length > 0 && { baggage: normalizeBaggageHeader(requestOptions, sentryBaggageHeader) }),
|
|
321
|
-
};
|
|
322
|
-
}
|
|
101
|
+
/** Update the span with data we need. */
|
|
102
|
+
function _updateSpan(span, request) {
|
|
103
|
+
addOriginToSpan.addOriginToSpan(span, 'auto.http.otel.http');
|
|
323
104
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
const data = {
|
|
327
|
-
url: requestUrl,
|
|
328
|
-
'http.method': method,
|
|
329
|
-
};
|
|
330
|
-
if (requestOptions.hash) {
|
|
331
|
-
// strip leading "#"
|
|
332
|
-
data['http.fragment'] = requestOptions.hash.substring(1);
|
|
105
|
+
if (opentelemetry.getSpanKind(span) === api.SpanKind.SERVER) {
|
|
106
|
+
opentelemetry.setSpanMetadata(span, { request: request });
|
|
333
107
|
}
|
|
334
|
-
if (requestOptions.search) {
|
|
335
|
-
// strip leading "?"
|
|
336
|
-
data['http.query'] = requestOptions.search.substring(1);
|
|
337
|
-
}
|
|
338
|
-
return data;
|
|
339
108
|
}
|
|
340
109
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
if (!requestOptions.headers || !requestOptions.headers.baggage) {
|
|
346
|
-
return sentryBaggageHeader;
|
|
347
|
-
} else if (!sentryBaggageHeader) {
|
|
348
|
-
return requestOptions.headers.baggage ;
|
|
349
|
-
} else if (Array.isArray(requestOptions.headers.baggage)) {
|
|
350
|
-
return [...requestOptions.headers.baggage, sentryBaggageHeader];
|
|
110
|
+
/** Add a breadcrumb for outgoing requests. */
|
|
111
|
+
function _addRequestBreadcrumb(span, response) {
|
|
112
|
+
if (opentelemetry.getSpanKind(span) !== api.SpanKind.CLIENT) {
|
|
113
|
+
return;
|
|
351
114
|
}
|
|
352
|
-
// Type-cast explanation:
|
|
353
|
-
// Technically this the following could be of type `(number | string)[]` but for the sake of simplicity
|
|
354
|
-
// we say this is undefined behaviour, since it would not be baggage spec conform if the user did this.
|
|
355
|
-
return [requestOptions.headers.baggage, sentryBaggageHeader] ;
|
|
356
|
-
}
|
|
357
115
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
)
|
|
376
|
-
const handler = shouldCreateSpans
|
|
377
|
-
? // eslint-disable-next-line deprecation/deprecation
|
|
378
|
-
_optionalChain([tracingOptions, 'optionalAccess', _11 => _11.shouldCreateSpanForRequest]) || _optionalChain([clientOptions, 'optionalAccess', _12 => _12.shouldCreateSpanForRequest])
|
|
379
|
-
: () => false;
|
|
380
|
-
|
|
381
|
-
return handler;
|
|
116
|
+
const data = opentelemetry._INTERNAL.getRequestSpanData(span);
|
|
117
|
+
core.addBreadcrumb(
|
|
118
|
+
{
|
|
119
|
+
category: 'http',
|
|
120
|
+
data: {
|
|
121
|
+
status_code: response.statusCode,
|
|
122
|
+
...data,
|
|
123
|
+
},
|
|
124
|
+
type: 'http',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
event: 'response',
|
|
128
|
+
// TODO FN: Do we need access to `request` here?
|
|
129
|
+
// If we do, we'll have to use the `applyCustomAttributesOnSpan` hook instead,
|
|
130
|
+
// but this has worse context semantics than request/responseHook.
|
|
131
|
+
response,
|
|
132
|
+
},
|
|
133
|
+
);
|
|
382
134
|
}
|
|
383
135
|
|
|
384
|
-
exports.Http = Http;
|
|
385
|
-
exports._getShouldCreateSpanForRequest = _getShouldCreateSpanForRequest;
|
|
386
|
-
exports._shouldCreateSpans = _shouldCreateSpans;
|
|
387
136
|
exports.httpIntegration = httpIntegration;
|
|
388
137
|
//# sourceMappingURL=http.js.map
|