@depup/sentry__node 10.44.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/build/cjs/debug-build.js +11 -0
- package/build/cjs/debug-build.js.map +1 -0
- package/build/cjs/index.js +216 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/init.js +10 -0
- package/build/cjs/init.js.map +1 -0
- package/build/cjs/integrations/featureFlagShims/growthbook.js +12 -0
- package/build/cjs/integrations/featureFlagShims/growthbook.js.map +1 -0
- package/build/cjs/integrations/featureFlagShims/launchDarkly.js +43 -0
- package/build/cjs/integrations/featureFlagShims/launchDarkly.js.map +1 -0
- package/build/cjs/integrations/featureFlagShims/openFeature.js +55 -0
- package/build/cjs/integrations/featureFlagShims/openFeature.js.map +1 -0
- package/build/cjs/integrations/featureFlagShims/statsig.js +23 -0
- package/build/cjs/integrations/featureFlagShims/statsig.js.map +1 -0
- package/build/cjs/integrations/featureFlagShims/unleash.js +23 -0
- package/build/cjs/integrations/featureFlagShims/unleash.js.map +1 -0
- package/build/cjs/integrations/fs.js +142 -0
- package/build/cjs/integrations/fs.js.map +1 -0
- package/build/cjs/integrations/http.js +224 -0
- package/build/cjs/integrations/http.js.map +1 -0
- package/build/cjs/integrations/node-fetch.js +108 -0
- package/build/cjs/integrations/node-fetch.js.map +1 -0
- package/build/cjs/integrations/tracing/amqplib.js +47 -0
- package/build/cjs/integrations/tracing/amqplib.js.map +1 -0
- package/build/cjs/integrations/tracing/anthropic-ai/index.js +79 -0
- package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +1 -0
- package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +95 -0
- package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/connect.js +110 -0
- package/build/cjs/integrations/tracing/connect.js.map +1 -0
- package/build/cjs/integrations/tracing/dataloader.js +72 -0
- package/build/cjs/integrations/tracing/dataloader.js.map +1 -0
- package/build/cjs/integrations/tracing/express.js +166 -0
- package/build/cjs/integrations/tracing/express.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/index.js +270 -0
- package/build/cjs/integrations/tracing/fastify/index.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/v3/constants.js +23 -0
- package/build/cjs/integrations/tracing/fastify/v3/constants.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js +37 -0
- package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +304 -0
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/v3/utils.js +135 -0
- package/build/cjs/integrations/tracing/fastify/v3/utils.js.map +1 -0
- package/build/cjs/integrations/tracing/firebase/firebase.js +50 -0
- package/build/cjs/integrations/tracing/firebase/firebase.js.map +1 -0
- package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +44 -0
- package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +297 -0
- package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -0
- package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +265 -0
- package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +1 -0
- package/build/cjs/integrations/tracing/genericPool.js +59 -0
- package/build/cjs/integrations/tracing/genericPool.js.map +1 -0
- package/build/cjs/integrations/tracing/google-genai/index.js +78 -0
- package/build/cjs/integrations/tracing/google-genai/index.js.map +1 -0
- package/build/cjs/integrations/tracing/google-genai/instrumentation.js +88 -0
- package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/graphql.js +127 -0
- package/build/cjs/integrations/tracing/graphql.js.map +1 -0
- package/build/cjs/integrations/tracing/hapi/index.js +135 -0
- package/build/cjs/integrations/tracing/hapi/index.js.map +1 -0
- package/build/cjs/integrations/tracing/hono/constants.js +15 -0
- package/build/cjs/integrations/tracing/hono/constants.js.map +1 -0
- package/build/cjs/integrations/tracing/hono/index.js +137 -0
- package/build/cjs/integrations/tracing/hono/index.js.map +1 -0
- package/build/cjs/integrations/tracing/hono/instrumentation.js +236 -0
- package/build/cjs/integrations/tracing/hono/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/index.js +110 -0
- package/build/cjs/integrations/tracing/index.js.map +1 -0
- package/build/cjs/integrations/tracing/kafka.js +48 -0
- package/build/cjs/integrations/tracing/kafka.js.map +1 -0
- package/build/cjs/integrations/tracing/knex.js +57 -0
- package/build/cjs/integrations/tracing/knex.js.map +1 -0
- package/build/cjs/integrations/tracing/koa.js +138 -0
- package/build/cjs/integrations/tracing/koa.js.map +1 -0
- package/build/cjs/integrations/tracing/langchain/index.js +116 -0
- package/build/cjs/integrations/tracing/langchain/index.js.map +1 -0
- package/build/cjs/integrations/tracing/langchain/instrumentation.js +220 -0
- package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/langgraph/index.js +93 -0
- package/build/cjs/integrations/tracing/langgraph/index.js.map +1 -0
- package/build/cjs/integrations/tracing/langgraph/instrumentation.js +60 -0
- package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/lrumemoizer.js +37 -0
- package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -0
- package/build/cjs/integrations/tracing/mongo.js +93 -0
- package/build/cjs/integrations/tracing/mongo.js.map +1 -0
- package/build/cjs/integrations/tracing/mongoose.js +46 -0
- package/build/cjs/integrations/tracing/mongoose.js.map +1 -0
- package/build/cjs/integrations/tracing/mysql.js +38 -0
- package/build/cjs/integrations/tracing/mysql.js.map +1 -0
- package/build/cjs/integrations/tracing/mysql2.js +46 -0
- package/build/cjs/integrations/tracing/mysql2.js.map +1 -0
- package/build/cjs/integrations/tracing/openai/index.js +78 -0
- package/build/cjs/integrations/tracing/openai/index.js.map +1 -0
- package/build/cjs/integrations/tracing/openai/instrumentation.js +104 -0
- package/build/cjs/integrations/tracing/openai/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/postgres.js +48 -0
- package/build/cjs/integrations/tracing/postgres.js.map +1 -0
- package/build/cjs/integrations/tracing/postgresjs.js +378 -0
- package/build/cjs/integrations/tracing/postgresjs.js.map +1 -0
- package/build/cjs/integrations/tracing/prisma.js +203 -0
- package/build/cjs/integrations/tracing/prisma.js.map +1 -0
- package/build/cjs/integrations/tracing/redis.js +121 -0
- package/build/cjs/integrations/tracing/redis.js.map +1 -0
- package/build/cjs/integrations/tracing/tedious.js +67 -0
- package/build/cjs/integrations/tracing/tedious.js.map +1 -0
- package/build/cjs/integrations/tracing/vercelai/constants.js +6 -0
- package/build/cjs/integrations/tracing/vercelai/constants.js.map +1 -0
- package/build/cjs/integrations/tracing/vercelai/index.js +82 -0
- package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -0
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js +274 -0
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -0
- package/build/cjs/preload.js +21 -0
- package/build/cjs/preload.js.map +1 -0
- package/build/cjs/sdk/index.js +78 -0
- package/build/cjs/sdk/index.js.map +1 -0
- package/build/cjs/sdk/initOtel.js +126 -0
- package/build/cjs/sdk/initOtel.js.map +1 -0
- package/build/cjs/utils/redisCache.js +122 -0
- package/build/cjs/utils/redisCache.js.map +1 -0
- package/build/esm/debug-build.js +9 -0
- package/build/esm/debug-build.js.map +1 -0
- package/build/esm/index.js +44 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/init.js +10 -0
- package/build/esm/init.js.map +1 -0
- package/build/esm/integrations/featureFlagShims/growthbook.js +10 -0
- package/build/esm/integrations/featureFlagShims/growthbook.js.map +1 -0
- package/build/esm/integrations/featureFlagShims/launchDarkly.js +40 -0
- package/build/esm/integrations/featureFlagShims/launchDarkly.js.map +1 -0
- package/build/esm/integrations/featureFlagShims/openFeature.js +52 -0
- package/build/esm/integrations/featureFlagShims/openFeature.js.map +1 -0
- package/build/esm/integrations/featureFlagShims/statsig.js +21 -0
- package/build/esm/integrations/featureFlagShims/statsig.js.map +1 -0
- package/build/esm/integrations/featureFlagShims/unleash.js +21 -0
- package/build/esm/integrations/featureFlagShims/unleash.js.map +1 -0
- package/build/esm/integrations/fs.js +140 -0
- package/build/esm/integrations/fs.js.map +1 -0
- package/build/esm/integrations/http.js +219 -0
- package/build/esm/integrations/http.js.map +1 -0
- package/build/esm/integrations/node-fetch.js +105 -0
- package/build/esm/integrations/node-fetch.js.map +1 -0
- package/build/esm/integrations/tracing/amqplib.js +44 -0
- package/build/esm/integrations/tracing/amqplib.js.map +1 -0
- package/build/esm/integrations/tracing/anthropic-ai/index.js +76 -0
- package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -0
- package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +93 -0
- package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/connect.js +106 -0
- package/build/esm/integrations/tracing/connect.js.map +1 -0
- package/build/esm/integrations/tracing/dataloader.js +69 -0
- package/build/esm/integrations/tracing/dataloader.js.map +1 -0
- package/build/esm/integrations/tracing/express.js +161 -0
- package/build/esm/integrations/tracing/express.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/index.js +265 -0
- package/build/esm/integrations/tracing/fastify/index.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/v3/constants.js +21 -0
- package/build/esm/integrations/tracing/fastify/v3/constants.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js +37 -0
- package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +302 -0
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/v3/utils.js +131 -0
- package/build/esm/integrations/tracing/fastify/v3/utils.js.map +1 -0
- package/build/esm/integrations/tracing/firebase/firebase.js +47 -0
- package/build/esm/integrations/tracing/firebase/firebase.js.map +1 -0
- package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +42 -0
- package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +294 -0
- package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -0
- package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +262 -0
- package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +1 -0
- package/build/esm/integrations/tracing/genericPool.js +56 -0
- package/build/esm/integrations/tracing/genericPool.js.map +1 -0
- package/build/esm/integrations/tracing/google-genai/index.js +75 -0
- package/build/esm/integrations/tracing/google-genai/index.js.map +1 -0
- package/build/esm/integrations/tracing/google-genai/instrumentation.js +86 -0
- package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/graphql.js +124 -0
- package/build/esm/integrations/tracing/graphql.js.map +1 -0
- package/build/esm/integrations/tracing/hapi/index.js +130 -0
- package/build/esm/integrations/tracing/hapi/index.js.map +1 -0
- package/build/esm/integrations/tracing/hono/constants.js +12 -0
- package/build/esm/integrations/tracing/hono/constants.js.map +1 -0
- package/build/esm/integrations/tracing/hono/index.js +133 -0
- package/build/esm/integrations/tracing/hono/index.js.map +1 -0
- package/build/esm/integrations/tracing/hono/instrumentation.js +234 -0
- package/build/esm/integrations/tracing/hono/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/index.js +107 -0
- package/build/esm/integrations/tracing/index.js.map +1 -0
- package/build/esm/integrations/tracing/kafka.js +45 -0
- package/build/esm/integrations/tracing/kafka.js.map +1 -0
- package/build/esm/integrations/tracing/knex.js +54 -0
- package/build/esm/integrations/tracing/knex.js.map +1 -0
- package/build/esm/integrations/tracing/koa.js +134 -0
- package/build/esm/integrations/tracing/koa.js.map +1 -0
- package/build/esm/integrations/tracing/langchain/index.js +113 -0
- package/build/esm/integrations/tracing/langchain/index.js.map +1 -0
- package/build/esm/integrations/tracing/langchain/instrumentation.js +218 -0
- package/build/esm/integrations/tracing/langchain/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/langgraph/index.js +90 -0
- package/build/esm/integrations/tracing/langgraph/index.js.map +1 -0
- package/build/esm/integrations/tracing/langgraph/instrumentation.js +58 -0
- package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/lrumemoizer.js +34 -0
- package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -0
- package/build/esm/integrations/tracing/mongo.js +89 -0
- package/build/esm/integrations/tracing/mongo.js.map +1 -0
- package/build/esm/integrations/tracing/mongoose.js +43 -0
- package/build/esm/integrations/tracing/mongoose.js.map +1 -0
- package/build/esm/integrations/tracing/mysql.js +35 -0
- package/build/esm/integrations/tracing/mysql.js.map +1 -0
- package/build/esm/integrations/tracing/mysql2.js +43 -0
- package/build/esm/integrations/tracing/mysql2.js.map +1 -0
- package/build/esm/integrations/tracing/openai/index.js +75 -0
- package/build/esm/integrations/tracing/openai/index.js.map +1 -0
- package/build/esm/integrations/tracing/openai/instrumentation.js +102 -0
- package/build/esm/integrations/tracing/openai/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/postgres.js +45 -0
- package/build/esm/integrations/tracing/postgres.js.map +1 -0
- package/build/esm/integrations/tracing/postgresjs.js +374 -0
- package/build/esm/integrations/tracing/postgresjs.js.map +1 -0
- package/build/esm/integrations/tracing/prisma.js +200 -0
- package/build/esm/integrations/tracing/prisma.js.map +1 -0
- package/build/esm/integrations/tracing/redis.js +117 -0
- package/build/esm/integrations/tracing/redis.js.map +1 -0
- package/build/esm/integrations/tracing/tedious.js +64 -0
- package/build/esm/integrations/tracing/tedious.js.map +1 -0
- package/build/esm/integrations/tracing/vercelai/constants.js +4 -0
- package/build/esm/integrations/tracing/vercelai/constants.js.map +1 -0
- package/build/esm/integrations/tracing/vercelai/index.js +79 -0
- package/build/esm/integrations/tracing/vercelai/index.js.map +1 -0
- package/build/esm/integrations/tracing/vercelai/instrumentation.js +269 -0
- package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -0
- package/build/esm/package.json +1 -0
- package/build/esm/preload.js +21 -0
- package/build/esm/preload.js.map +1 -0
- package/build/esm/sdk/index.js +73 -0
- package/build/esm/sdk/index.js.map +1 -0
- package/build/esm/sdk/initOtel.js +121 -0
- package/build/esm/sdk/initOtel.js.map +1 -0
- package/build/esm/utils/redisCache.js +114 -0
- package/build/esm/utils/redisCache.js.map +1 -0
- package/build/import-hook.mjs +5 -0
- package/build/loader-hook.mjs +1 -0
- package/build/types/debug-build.d.ts +7 -0
- package/build/types/debug-build.d.ts.map +1 -0
- package/build/types/index.d.ts +42 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/init.d.ts +2 -0
- package/build/types/init.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/growthbook.d.ts +6 -0
- package/build/types/integrations/featureFlagShims/growthbook.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/index.d.ts +6 -0
- package/build/types/integrations/featureFlagShims/index.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/launchDarkly.d.ts +10 -0
- package/build/types/integrations/featureFlagShims/launchDarkly.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/openFeature.d.ts +23 -0
- package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/statsig.d.ts +6 -0
- package/build/types/integrations/featureFlagShims/statsig.d.ts.map +1 -0
- package/build/types/integrations/featureFlagShims/unleash.d.ts +6 -0
- package/build/types/integrations/featureFlagShims/unleash.d.ts.map +1 -0
- package/build/types/integrations/fs.d.ts +24 -0
- package/build/types/integrations/fs.d.ts.map +1 -0
- package/build/types/integrations/http.d.ts +136 -0
- package/build/types/integrations/http.d.ts.map +1 -0
- package/build/types/integrations/node-fetch.d.ts +36 -0
- package/build/types/integrations/node-fetch.d.ts.map +1 -0
- package/build/types/integrations/tracing/amqplib.d.ts +20 -0
- package/build/types/integrations/tracing/amqplib.d.ts.map +1 -0
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts +59 -0
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +19 -0
- package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/connect.d.ts +46 -0
- package/build/types/integrations/tracing/connect.d.ts.map +1 -0
- package/build/types/integrations/tracing/dataloader.d.ts +20 -0
- package/build/types/integrations/tracing/dataloader.d.ts.map +1 -0
- package/build/types/integrations/tracing/express.d.ts +72 -0
- package/build/types/integrations/tracing/express.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/index.d.ts +119 -0
- package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/types.d.ts +33 -0
- package/build/types/integrations/tracing/fastify/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/constants.d.ts +3 -0
- package/build/types/integrations/tracing/fastify/v3/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +15 -0
- package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts +16 -0
- package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts +7 -0
- package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/types.d.ts +21 -0
- package/build/types/integrations/tracing/fastify/v3/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/v3/utils.d.ts +28 -0
- package/build/types/integrations/tracing/fastify/v3/utils.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/firebase.d.ts +6 -0
- package/build/types/integrations/tracing/firebase/firebase.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/index.d.ts +2 -0
- package/build/types/integrations/tracing/firebase/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +19 -0
- package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/otel/index.d.ts +3 -0
- package/build/types/integrations/tracing/firebase/otel/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +25 -0
- package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +23 -0
- package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +1 -0
- package/build/types/integrations/tracing/firebase/otel/types.d.ts +120 -0
- package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/genericPool.d.ts +20 -0
- package/build/types/integrations/tracing/genericPool.d.ts.map +1 -0
- package/build/types/integrations/tracing/google-genai/index.d.ts +59 -0
- package/build/types/integrations/tracing/google-genai/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +20 -0
- package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/graphql.d.ts +48 -0
- package/build/types/integrations/tracing/graphql.d.ts.map +1 -0
- package/build/types/integrations/tracing/hapi/index.d.ts +50 -0
- package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/hapi/types.d.ts +166 -0
- package/build/types/integrations/tracing/hapi/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/constants.d.ts +11 -0
- package/build/types/integrations/tracing/hono/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/index.d.ts +52 -0
- package/build/types/integrations/tracing/hono/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/instrumentation.d.ts +55 -0
- package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/types.d.ts +36 -0
- package/build/types/integrations/tracing/hono/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/index.d.ts +12 -0
- package/build/types/integrations/tracing/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/kafka.d.ts +19 -0
- package/build/types/integrations/tracing/kafka.d.ts.map +1 -0
- package/build/types/integrations/tracing/knex.d.ts +20 -0
- package/build/types/integrations/tracing/knex.d.ts.map +1 -0
- package/build/types/integrations/tracing/koa.d.ts +70 -0
- package/build/types/integrations/tracing/koa.d.ts.map +1 -0
- package/build/types/integrations/tracing/langchain/index.d.ts +97 -0
- package/build/types/integrations/tracing/langchain/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/langchain/instrumentation.d.ts +29 -0
- package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/langgraph/index.d.ts +74 -0
- package/build/types/integrations/tracing/langgraph/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/langgraph/instrumentation.d.ts +19 -0
- package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/lrumemoizer.d.ts +19 -0
- package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -0
- package/build/types/integrations/tracing/mongo.d.ts +24 -0
- package/build/types/integrations/tracing/mongo.d.ts.map +1 -0
- package/build/types/integrations/tracing/mongoose.d.ts +20 -0
- package/build/types/integrations/tracing/mongoose.d.ts.map +1 -0
- package/build/types/integrations/tracing/mysql.d.ts +20 -0
- package/build/types/integrations/tracing/mysql.d.ts.map +1 -0
- package/build/types/integrations/tracing/mysql2.d.ts +20 -0
- package/build/types/integrations/tracing/mysql2.d.ts.map +1 -0
- package/build/types/integrations/tracing/openai/index.d.ts +59 -0
- package/build/types/integrations/tracing/openai/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/openai/instrumentation.d.ts +26 -0
- package/build/types/integrations/tracing/openai/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/postgres.d.ts +24 -0
- package/build/types/integrations/tracing/postgres.d.ts.map +1 -0
- package/build/types/integrations/tracing/postgresjs.d.ts +101 -0
- package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -0
- package/build/types/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts +38 -0
- package/build/types/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts.map +1 -0
- package/build/types/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts +31 -0
- package/build/types/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts.map +1 -0
- package/build/types/integrations/tracing/prisma.d.ts +50 -0
- package/build/types/integrations/tracing/prisma.d.ts.map +1 -0
- package/build/types/integrations/tracing/redis.d.ts +41 -0
- package/build/types/integrations/tracing/redis.d.ts.map +1 -0
- package/build/types/integrations/tracing/tedious.d.ts +20 -0
- package/build/types/integrations/tracing/tedious.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/constants.d.ts +2 -0
- package/build/types/integrations/tracing/vercelai/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/index.d.ts +43 -0
- package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +56 -0
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/types.d.ts +59 -0
- package/build/types/integrations/tracing/vercelai/types.d.ts.map +1 -0
- package/build/types/preload.d.ts +2 -0
- package/build/types/preload.d.ts.map +1 -0
- package/build/types/sdk/index.d.ts +18 -0
- package/build/types/sdk/index.d.ts.map +1 -0
- package/build/types/sdk/initOtel.d.ts +28 -0
- package/build/types/sdk/initOtel.d.ts.map +1 -0
- package/build/types/types.d.ts +89 -0
- package/build/types/types.d.ts.map +1 -0
- package/build/types/utils/redisCache.d.ts +16 -0
- package/build/types/utils/redisCache.d.ts.map +1 -0
- package/build/types-ts3.8/debug-build.d.ts +7 -0
- package/build/types-ts3.8/index.d.ts +42 -0
- package/build/types-ts3.8/init.d.ts +2 -0
- package/build/types-ts3.8/integrations/featureFlagShims/growthbook.d.ts +6 -0
- package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +6 -0
- package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +10 -0
- package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +23 -0
- package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +6 -0
- package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +6 -0
- package/build/types-ts3.8/integrations/fs.d.ts +24 -0
- package/build/types-ts3.8/integrations/http.d.ts +139 -0
- package/build/types-ts3.8/integrations/node-fetch.d.ts +36 -0
- package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +59 -0
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/connect.d.ts +46 -0
- package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/express.d.ts +72 -0
- package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +119 -0
- package/build/types-ts3.8/integrations/tracing/fastify/types.d.ts +33 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/constants.d.ts +3 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/instrumentation.d.ts +16 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/internal-types.d.ts +7 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/types.d.ts +21 -0
- package/build/types-ts3.8/integrations/tracing/fastify/v3/utils.d.ts +28 -0
- package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +6 -0
- package/build/types-ts3.8/integrations/tracing/firebase/index.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/firebase/otel/index.d.ts +3 -0
- package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +25 -0
- package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +23 -0
- package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +120 -0
- package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +59 -0
- package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/graphql.d.ts +48 -0
- package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +50 -0
- package/build/types-ts3.8/integrations/tracing/hapi/types.d.ts +166 -0
- package/build/types-ts3.8/integrations/tracing/hono/constants.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +52 -0
- package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +55 -0
- package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +36 -0
- package/build/types-ts3.8/integrations/tracing/index.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing/kafka.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/knex.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/koa.d.ts +70 -0
- package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +97 -0
- package/build/types-ts3.8/integrations/tracing/langchain/instrumentation.d.ts +29 -0
- package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +74 -0
- package/build/types-ts3.8/integrations/tracing/langgraph/instrumentation.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/mongo.d.ts +24 -0
- package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/mysql.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +59 -0
- package/build/types-ts3.8/integrations/tracing/openai/instrumentation.d.ts +26 -0
- package/build/types-ts3.8/integrations/tracing/postgres.d.ts +24 -0
- package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +101 -0
- package/build/types-ts3.8/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts +44 -0
- package/build/types-ts3.8/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts +34 -0
- package/build/types-ts3.8/integrations/tracing/prisma.d.ts +50 -0
- package/build/types-ts3.8/integrations/tracing/redis.d.ts +41 -0
- package/build/types-ts3.8/integrations/tracing/tedious.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +43 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +56 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +59 -0
- package/build/types-ts3.8/preload.d.ts +2 -0
- package/build/types-ts3.8/sdk/index.d.ts +18 -0
- package/build/types-ts3.8/sdk/initOtel.d.ts +31 -0
- package/build/types-ts3.8/types.d.ts +89 -0
- package/build/types-ts3.8/utils/redisCache.d.ts +16 -0
- package/changes.json +10 -0
- package/package.json +150 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Functional Software, Inc. dba Sentry
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @depup/sentry__node
|
|
2
|
+
|
|
3
|
+
> Dependency-bumped version of [@sentry/node](https://www.npmjs.com/package/@sentry/node)
|
|
4
|
+
|
|
5
|
+
Generated by [DepUp](https://github.com/depup/npm) -- all production
|
|
6
|
+
dependencies bumped to latest versions.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @depup/sentry__node
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
| Field | Value |
|
|
15
|
+
|-------|-------|
|
|
16
|
+
| Original | [@sentry/node](https://www.npmjs.com/package/@sentry/node) @ 10.44.0 |
|
|
17
|
+
| Processed | 2026-03-17 |
|
|
18
|
+
| Smoke test | passed |
|
|
19
|
+
| Deps updated | 1 |
|
|
20
|
+
|
|
21
|
+
## Dependency Changes
|
|
22
|
+
|
|
23
|
+
| Dependency | From | To |
|
|
24
|
+
|------------|------|-----|
|
|
25
|
+
| @prisma/instrumentation | 7.4.2 | ^7.5.0 |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/@sentry/node
|
|
30
|
+
|
|
31
|
+
License inherited from the original package.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
5
|
+
*
|
|
6
|
+
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
7
|
+
*/
|
|
8
|
+
const DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
9
|
+
|
|
10
|
+
exports.DEBUG_BUILD = DEBUG_BUILD;
|
|
11
|
+
//# sourceMappingURL=debug-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-build.js","sources":["../../src/debug-build.ts"],"sourcesContent":["declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAA,IAAc,OAAA,gBAAA,KAAA,WAAA,IAAA,gBAAA;;;;"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const http = require('./integrations/http.js');
|
|
4
|
+
const nodeFetch = require('./integrations/node-fetch.js');
|
|
5
|
+
const fs = require('./integrations/fs.js');
|
|
6
|
+
const express = require('./integrations/tracing/express.js');
|
|
7
|
+
const index$1 = require('./integrations/tracing/fastify/index.js');
|
|
8
|
+
const graphql = require('./integrations/tracing/graphql.js');
|
|
9
|
+
const kafka = require('./integrations/tracing/kafka.js');
|
|
10
|
+
const lrumemoizer = require('./integrations/tracing/lrumemoizer.js');
|
|
11
|
+
const mongo = require('./integrations/tracing/mongo.js');
|
|
12
|
+
const mongoose = require('./integrations/tracing/mongoose.js');
|
|
13
|
+
const mysql = require('./integrations/tracing/mysql.js');
|
|
14
|
+
const mysql2 = require('./integrations/tracing/mysql2.js');
|
|
15
|
+
const redis = require('./integrations/tracing/redis.js');
|
|
16
|
+
const postgres = require('./integrations/tracing/postgres.js');
|
|
17
|
+
const postgresjs = require('./integrations/tracing/postgresjs.js');
|
|
18
|
+
const prisma = require('./integrations/tracing/prisma.js');
|
|
19
|
+
const index$5 = require('./integrations/tracing/hapi/index.js');
|
|
20
|
+
const index$6 = require('./integrations/tracing/hono/index.js');
|
|
21
|
+
const koa = require('./integrations/tracing/koa.js');
|
|
22
|
+
const connect = require('./integrations/tracing/connect.js');
|
|
23
|
+
const knex = require('./integrations/tracing/knex.js');
|
|
24
|
+
const tedious = require('./integrations/tracing/tedious.js');
|
|
25
|
+
const genericPool = require('./integrations/tracing/genericPool.js');
|
|
26
|
+
const dataloader = require('./integrations/tracing/dataloader.js');
|
|
27
|
+
const amqplib = require('./integrations/tracing/amqplib.js');
|
|
28
|
+
const index$a = require('./integrations/tracing/vercelai/index.js');
|
|
29
|
+
const index$9 = require('./integrations/tracing/openai/index.js');
|
|
30
|
+
const index = require('./integrations/tracing/anthropic-ai/index.js');
|
|
31
|
+
const index$4 = require('./integrations/tracing/google-genai/index.js');
|
|
32
|
+
const index$7 = require('./integrations/tracing/langchain/index.js');
|
|
33
|
+
const index$8 = require('./integrations/tracing/langgraph/index.js');
|
|
34
|
+
const launchDarkly = require('./integrations/featureFlagShims/launchDarkly.js');
|
|
35
|
+
const openFeature = require('./integrations/featureFlagShims/openFeature.js');
|
|
36
|
+
const statsig = require('./integrations/featureFlagShims/statsig.js');
|
|
37
|
+
const unleash = require('./integrations/featureFlagShims/unleash.js');
|
|
38
|
+
const growthbook = require('./integrations/featureFlagShims/growthbook.js');
|
|
39
|
+
const firebase = require('./integrations/tracing/firebase/firebase.js');
|
|
40
|
+
const index$3 = require('./sdk/index.js');
|
|
41
|
+
const initOtel = require('./sdk/initOtel.js');
|
|
42
|
+
const index$2 = require('./integrations/tracing/index.js');
|
|
43
|
+
const opentelemetry = require('@sentry/opentelemetry');
|
|
44
|
+
const core = require('@sentry/core');
|
|
45
|
+
const nodeCore = require('@sentry/node-core');
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.httpIntegration = http.httpIntegration;
|
|
50
|
+
exports.nativeNodeFetchIntegration = nodeFetch.nativeNodeFetchIntegration;
|
|
51
|
+
exports.fsIntegration = fs.fsIntegration;
|
|
52
|
+
exports.expressErrorHandler = express.expressErrorHandler;
|
|
53
|
+
exports.expressIntegration = express.expressIntegration;
|
|
54
|
+
exports.setupExpressErrorHandler = express.setupExpressErrorHandler;
|
|
55
|
+
exports.fastifyIntegration = index$1.fastifyIntegration;
|
|
56
|
+
exports.setupFastifyErrorHandler = index$1.setupFastifyErrorHandler;
|
|
57
|
+
exports.graphqlIntegration = graphql.graphqlIntegration;
|
|
58
|
+
exports.kafkaIntegration = kafka.kafkaIntegration;
|
|
59
|
+
exports.lruMemoizerIntegration = lrumemoizer.lruMemoizerIntegration;
|
|
60
|
+
exports.mongoIntegration = mongo.mongoIntegration;
|
|
61
|
+
exports.mongooseIntegration = mongoose.mongooseIntegration;
|
|
62
|
+
exports.mysqlIntegration = mysql.mysqlIntegration;
|
|
63
|
+
exports.mysql2Integration = mysql2.mysql2Integration;
|
|
64
|
+
exports.redisIntegration = redis.redisIntegration;
|
|
65
|
+
exports.postgresIntegration = postgres.postgresIntegration;
|
|
66
|
+
exports.postgresJsIntegration = postgresjs.postgresJsIntegration;
|
|
67
|
+
exports.prismaIntegration = prisma.prismaIntegration;
|
|
68
|
+
exports.hapiIntegration = index$5.hapiIntegration;
|
|
69
|
+
exports.setupHapiErrorHandler = index$5.setupHapiErrorHandler;
|
|
70
|
+
exports.honoIntegration = index$6.honoIntegration;
|
|
71
|
+
exports.setupHonoErrorHandler = index$6.setupHonoErrorHandler;
|
|
72
|
+
exports.koaIntegration = koa.koaIntegration;
|
|
73
|
+
exports.setupKoaErrorHandler = koa.setupKoaErrorHandler;
|
|
74
|
+
exports.connectIntegration = connect.connectIntegration;
|
|
75
|
+
exports.setupConnectErrorHandler = connect.setupConnectErrorHandler;
|
|
76
|
+
exports.knexIntegration = knex.knexIntegration;
|
|
77
|
+
exports.tediousIntegration = tedious.tediousIntegration;
|
|
78
|
+
exports.genericPoolIntegration = genericPool.genericPoolIntegration;
|
|
79
|
+
exports.dataloaderIntegration = dataloader.dataloaderIntegration;
|
|
80
|
+
exports.amqplibIntegration = amqplib.amqplibIntegration;
|
|
81
|
+
exports.vercelAIIntegration = index$a.vercelAIIntegration;
|
|
82
|
+
exports.openAIIntegration = index$9.openAIIntegration;
|
|
83
|
+
exports.anthropicAIIntegration = index.anthropicAIIntegration;
|
|
84
|
+
exports.googleGenAIIntegration = index$4.googleGenAIIntegration;
|
|
85
|
+
exports.langChainIntegration = index$7.langChainIntegration;
|
|
86
|
+
exports.langGraphIntegration = index$8.langGraphIntegration;
|
|
87
|
+
exports.buildLaunchDarklyFlagUsedHandler = launchDarkly.buildLaunchDarklyFlagUsedHandlerShim;
|
|
88
|
+
exports.launchDarklyIntegration = launchDarkly.launchDarklyIntegrationShim;
|
|
89
|
+
exports.OpenFeatureIntegrationHook = openFeature.OpenFeatureIntegrationHookShim;
|
|
90
|
+
exports.openFeatureIntegration = openFeature.openFeatureIntegrationShim;
|
|
91
|
+
exports.statsigIntegration = statsig.statsigIntegrationShim;
|
|
92
|
+
exports.unleashIntegration = unleash.unleashIntegrationShim;
|
|
93
|
+
exports.growthbookIntegration = growthbook.growthbookIntegrationShim;
|
|
94
|
+
exports.firebaseIntegration = firebase.firebaseIntegration;
|
|
95
|
+
exports.getDefaultIntegrations = index$3.getDefaultIntegrations;
|
|
96
|
+
exports.getDefaultIntegrationsWithoutPerformance = index$3.getDefaultIntegrationsWithoutPerformance;
|
|
97
|
+
exports.init = index$3.init;
|
|
98
|
+
exports.initWithoutDefaultIntegrations = index$3.initWithoutDefaultIntegrations;
|
|
99
|
+
exports.initOpenTelemetry = initOtel.initOpenTelemetry;
|
|
100
|
+
exports.preloadOpenTelemetry = initOtel.preloadOpenTelemetry;
|
|
101
|
+
exports.getAutoPerformanceIntegrations = index$2.getAutoPerformanceIntegrations;
|
|
102
|
+
exports.setNodeAsyncContextStrategy = opentelemetry.setOpenTelemetryContextAsyncContextStrategy;
|
|
103
|
+
exports.SDK_VERSION = core.SDK_VERSION;
|
|
104
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = core.SEMANTIC_ATTRIBUTE_SENTRY_OP;
|
|
105
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
106
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = core.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
|
|
107
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
108
|
+
exports.Scope = core.Scope;
|
|
109
|
+
exports.addBreadcrumb = core.addBreadcrumb;
|
|
110
|
+
exports.addEventProcessor = core.addEventProcessor;
|
|
111
|
+
exports.addIntegration = core.addIntegration;
|
|
112
|
+
exports.captureCheckIn = core.captureCheckIn;
|
|
113
|
+
exports.captureConsoleIntegration = core.captureConsoleIntegration;
|
|
114
|
+
exports.captureEvent = core.captureEvent;
|
|
115
|
+
exports.captureException = core.captureException;
|
|
116
|
+
exports.captureFeedback = core.captureFeedback;
|
|
117
|
+
exports.captureMessage = core.captureMessage;
|
|
118
|
+
exports.captureSession = core.captureSession;
|
|
119
|
+
exports.close = core.close;
|
|
120
|
+
exports.consoleIntegration = core.consoleIntegration;
|
|
121
|
+
exports.consoleLoggingIntegration = core.consoleLoggingIntegration;
|
|
122
|
+
exports.continueTrace = core.continueTrace;
|
|
123
|
+
exports.createConsolaReporter = core.createConsolaReporter;
|
|
124
|
+
exports.createLangChainCallbackHandler = core.createLangChainCallbackHandler;
|
|
125
|
+
exports.createTransport = core.createTransport;
|
|
126
|
+
exports.dedupeIntegration = core.dedupeIntegration;
|
|
127
|
+
exports.endSession = core.endSession;
|
|
128
|
+
exports.eventFiltersIntegration = core.eventFiltersIntegration;
|
|
129
|
+
exports.extraErrorDataIntegration = core.extraErrorDataIntegration;
|
|
130
|
+
exports.featureFlagsIntegration = core.featureFlagsIntegration;
|
|
131
|
+
exports.flush = core.flush;
|
|
132
|
+
exports.functionToStringIntegration = core.functionToStringIntegration;
|
|
133
|
+
exports.getActiveSpan = core.getActiveSpan;
|
|
134
|
+
exports.getClient = core.getClient;
|
|
135
|
+
exports.getCurrentScope = core.getCurrentScope;
|
|
136
|
+
exports.getGlobalScope = core.getGlobalScope;
|
|
137
|
+
exports.getIsolationScope = core.getIsolationScope;
|
|
138
|
+
exports.getRootSpan = core.getRootSpan;
|
|
139
|
+
exports.getSpanDescendants = core.getSpanDescendants;
|
|
140
|
+
exports.getSpanStatusFromHttpCode = core.getSpanStatusFromHttpCode;
|
|
141
|
+
exports.getTraceData = core.getTraceData;
|
|
142
|
+
exports.getTraceMetaTags = core.getTraceMetaTags;
|
|
143
|
+
exports.httpHeadersToSpanAttributes = core.httpHeadersToSpanAttributes;
|
|
144
|
+
exports.inboundFiltersIntegration = core.inboundFiltersIntegration;
|
|
145
|
+
exports.instrumentAnthropicAiClient = core.instrumentAnthropicAiClient;
|
|
146
|
+
exports.instrumentGoogleGenAIClient = core.instrumentGoogleGenAIClient;
|
|
147
|
+
exports.instrumentLangGraph = core.instrumentLangGraph;
|
|
148
|
+
exports.instrumentOpenAiClient = core.instrumentOpenAiClient;
|
|
149
|
+
exports.instrumentStateGraphCompile = core.instrumentStateGraphCompile;
|
|
150
|
+
exports.instrumentSupabaseClient = core.instrumentSupabaseClient;
|
|
151
|
+
exports.isEnabled = core.isEnabled;
|
|
152
|
+
exports.isInitialized = core.isInitialized;
|
|
153
|
+
exports.lastEventId = core.lastEventId;
|
|
154
|
+
exports.linkedErrorsIntegration = core.linkedErrorsIntegration;
|
|
155
|
+
exports.parameterize = core.parameterize;
|
|
156
|
+
exports.profiler = core.profiler;
|
|
157
|
+
exports.requestDataIntegration = core.requestDataIntegration;
|
|
158
|
+
exports.rewriteFramesIntegration = core.rewriteFramesIntegration;
|
|
159
|
+
exports.setContext = core.setContext;
|
|
160
|
+
exports.setConversationId = core.setConversationId;
|
|
161
|
+
exports.setCurrentClient = core.setCurrentClient;
|
|
162
|
+
exports.setExtra = core.setExtra;
|
|
163
|
+
exports.setExtras = core.setExtras;
|
|
164
|
+
exports.setHttpStatus = core.setHttpStatus;
|
|
165
|
+
exports.setMeasurement = core.setMeasurement;
|
|
166
|
+
exports.setTag = core.setTag;
|
|
167
|
+
exports.setTags = core.setTags;
|
|
168
|
+
exports.setUser = core.setUser;
|
|
169
|
+
exports.spanToBaggageHeader = core.spanToBaggageHeader;
|
|
170
|
+
exports.spanToJSON = core.spanToJSON;
|
|
171
|
+
exports.spanToTraceHeader = core.spanToTraceHeader;
|
|
172
|
+
exports.startInactiveSpan = core.startInactiveSpan;
|
|
173
|
+
exports.startNewTrace = core.startNewTrace;
|
|
174
|
+
exports.startSession = core.startSession;
|
|
175
|
+
exports.startSpan = core.startSpan;
|
|
176
|
+
exports.startSpanManual = core.startSpanManual;
|
|
177
|
+
exports.supabaseIntegration = core.supabaseIntegration;
|
|
178
|
+
exports.suppressTracing = core.suppressTracing;
|
|
179
|
+
exports.trpcMiddleware = core.trpcMiddleware;
|
|
180
|
+
exports.updateSpanName = core.updateSpanName;
|
|
181
|
+
exports.winterCGHeadersToDict = core.winterCGHeadersToDict;
|
|
182
|
+
exports.withActiveSpan = core.withActiveSpan;
|
|
183
|
+
exports.withIsolationScope = core.withIsolationScope;
|
|
184
|
+
exports.withMonitor = core.withMonitor;
|
|
185
|
+
exports.withScope = core.withScope;
|
|
186
|
+
exports.wrapMcpServerWithSentry = core.wrapMcpServerWithSentry;
|
|
187
|
+
exports.zodErrorsIntegration = core.zodErrorsIntegration;
|
|
188
|
+
exports.NODE_VERSION = nodeCore.NODE_VERSION;
|
|
189
|
+
exports.NodeClient = nodeCore.NodeClient;
|
|
190
|
+
exports.SentryContextManager = nodeCore.SentryContextManager;
|
|
191
|
+
exports.anrIntegration = nodeCore.anrIntegration;
|
|
192
|
+
exports.childProcessIntegration = nodeCore.childProcessIntegration;
|
|
193
|
+
exports.contextLinesIntegration = nodeCore.contextLinesIntegration;
|
|
194
|
+
exports.createGetModuleFromFilename = nodeCore.createGetModuleFromFilename;
|
|
195
|
+
exports.createSentryWinstonTransport = nodeCore.createSentryWinstonTransport;
|
|
196
|
+
exports.cron = nodeCore.cron;
|
|
197
|
+
exports.defaultStackParser = nodeCore.defaultStackParser;
|
|
198
|
+
exports.disableAnrDetectionForCallback = nodeCore.disableAnrDetectionForCallback;
|
|
199
|
+
exports.generateInstrumentOnce = nodeCore.generateInstrumentOnce;
|
|
200
|
+
exports.getSentryRelease = nodeCore.getSentryRelease;
|
|
201
|
+
exports.httpServerIntegration = nodeCore.httpServerIntegration;
|
|
202
|
+
exports.httpServerSpansIntegration = nodeCore.httpServerSpansIntegration;
|
|
203
|
+
exports.localVariablesIntegration = nodeCore.localVariablesIntegration;
|
|
204
|
+
exports.logger = nodeCore.logger;
|
|
205
|
+
exports.makeNodeTransport = nodeCore.makeNodeTransport;
|
|
206
|
+
exports.metrics = nodeCore.metrics;
|
|
207
|
+
exports.modulesIntegration = nodeCore.modulesIntegration;
|
|
208
|
+
exports.nodeContextIntegration = nodeCore.nodeContextIntegration;
|
|
209
|
+
exports.onUncaughtExceptionIntegration = nodeCore.onUncaughtExceptionIntegration;
|
|
210
|
+
exports.onUnhandledRejectionIntegration = nodeCore.onUnhandledRejectionIntegration;
|
|
211
|
+
exports.pinoIntegration = nodeCore.pinoIntegration;
|
|
212
|
+
exports.processSessionIntegration = nodeCore.processSessionIntegration;
|
|
213
|
+
exports.spotlightIntegration = nodeCore.spotlightIntegration;
|
|
214
|
+
exports.systemErrorIntegration = nodeCore.systemErrorIntegration;
|
|
215
|
+
exports.validateOpenTelemetrySetup = nodeCore.validateOpenTelemetrySetup;
|
|
216
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const index = require('./sdk/index.js');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The @sentry/node/init export can be used with the node --import and --require args to initialize the SDK entirely via
|
|
5
|
+
* environment variables.
|
|
6
|
+
*
|
|
7
|
+
* > SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 SENTRY_TRACES_SAMPLE_RATE=1.0 node --import=@sentry/node/init app.mjs
|
|
8
|
+
*/
|
|
9
|
+
index.init();
|
|
10
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sources":["../../src/init.ts"],"sourcesContent":["import { init } from './sdk';\n\n/**\n * The @sentry/node/init export can be used with the node --import and --require args to initialize the SDK entirely via\n * environment variables.\n *\n * > SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 SENTRY_TRACES_SAMPLE_RATE=1.0 node --import=@sentry/node/init app.mjs\n */\ninit();\n"],"names":["init"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACAA,UAAI,EAAE;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Re-export the core GrowthBook integration for Node.js usage.
|
|
7
|
+
* The core integration is runtime-agnostic and works in both browser and Node environments.
|
|
8
|
+
*/
|
|
9
|
+
const growthbookIntegrationShim = core.growthbookIntegration;
|
|
10
|
+
|
|
11
|
+
exports.growthbookIntegrationShim = growthbookIntegrationShim;
|
|
12
|
+
//# sourceMappingURL=growthbook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"growthbook.js","sources":["../../../../src/integrations/featureFlagShims/growthbook.ts"],"sourcesContent":["import { growthbookIntegration as coreGrowthbookIntegration } from '@sentry/core';\n\n/**\n * Re-export the core GrowthBook integration for Node.js usage.\n * The core integration is runtime-agnostic and works in both browser and Node environments.\n */\nexport const growthbookIntegrationShim = coreGrowthbookIntegration;\n"],"names":["coreGrowthbookIntegration"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,MAAM,yBAAA,GAA4BA;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is a shim for the LaunchDarkly integration.
|
|
7
|
+
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
|
|
8
|
+
*/
|
|
9
|
+
const launchDarklyIntegrationShim = core.defineIntegration((_options) => {
|
|
10
|
+
if (!core.isBrowser()) {
|
|
11
|
+
core.consoleSandbox(() => {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.warn('The launchDarklyIntegration() can only be used in the browser.');
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
name: 'LaunchDarkly',
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This is a shim for the LaunchDarkly flag used handler.
|
|
24
|
+
*/
|
|
25
|
+
function buildLaunchDarklyFlagUsedHandlerShim() {
|
|
26
|
+
if (!core.isBrowser()) {
|
|
27
|
+
core.consoleSandbox(() => {
|
|
28
|
+
// eslint-disable-next-line no-console
|
|
29
|
+
console.warn('The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.');
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
name: 'sentry-flag-auditor',
|
|
35
|
+
type: 'flag-used',
|
|
36
|
+
synchronous: true,
|
|
37
|
+
method: () => null,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.buildLaunchDarklyFlagUsedHandlerShim = buildLaunchDarklyFlagUsedHandlerShim;
|
|
42
|
+
exports.launchDarklyIntegrationShim = launchDarklyIntegrationShim;
|
|
43
|
+
//# sourceMappingURL=launchDarkly.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launchDarkly.js","sources":["../../../../src/integrations/featureFlagShims/launchDarkly.ts"],"sourcesContent":["import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core';\n\n/**\n * This is a shim for the LaunchDarkly integration.\n * We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.\n */\nexport const launchDarklyIntegrationShim = defineIntegration((_options?: unknown) => {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The launchDarklyIntegration() can only be used in the browser.');\n });\n }\n\n return {\n name: 'LaunchDarkly',\n };\n});\n\n/**\n * This is a shim for the LaunchDarkly flag used handler.\n */\nexport function buildLaunchDarklyFlagUsedHandlerShim(): unknown {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.');\n });\n }\n\n return {\n name: 'sentry-flag-auditor',\n type: 'flag-used',\n synchronous: true,\n method: () => null,\n };\n}\n"],"names":["defineIntegration","isBrowser","consoleSandbox"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,MAAM,8BAA8BA,sBAAiB,CAAC,CAAC,QAAQ,KAAe;AACrF,EAAE,IAAI,CAACC,cAAS,EAAE,EAAE;AACpB,IAAIC,mBAAc,CAAC,MAAM;AACzB;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,gEAAgE,CAAC;AACpF,IAAI,CAAC,CAAC;AACN,EAAE;;AAEF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,cAAc;AACxB,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACO,SAAS,oCAAoC,GAAY;AAChE,EAAE,IAAI,CAACD,cAAS,EAAE,EAAE;AACpB,IAAIC,mBAAc,CAAC,MAAM;AACzB;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,yEAAyE,CAAC;AAC7F,IAAI,CAAC,CAAC;AACN,EAAE;;AAEF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,qBAAqB;AAC/B,IAAI,IAAI,EAAE,WAAW;AACrB,IAAI,WAAW,EAAE,IAAI;AACrB,IAAI,MAAM,EAAE,MAAM,IAAI;AACtB,GAAG;AACH;;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is a shim for the OpenFeature integration.
|
|
7
|
+
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
|
|
8
|
+
*/
|
|
9
|
+
const openFeatureIntegrationShim = core.defineIntegration((_options) => {
|
|
10
|
+
if (!core.isBrowser()) {
|
|
11
|
+
core.consoleSandbox(() => {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.warn('The openFeatureIntegration() can only be used in the browser.');
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
name: 'OpenFeature',
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This is a shim for the OpenFeature integration hook.
|
|
24
|
+
*/
|
|
25
|
+
class OpenFeatureIntegrationHookShim {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
if (!core.isBrowser()) {
|
|
31
|
+
core.consoleSandbox(() => {
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
console.warn('The OpenFeatureIntegrationHook can only be used in the browser.');
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
after() {
|
|
42
|
+
// No-op
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
error() {
|
|
49
|
+
// No-op
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
exports.OpenFeatureIntegrationHookShim = OpenFeatureIntegrationHookShim;
|
|
54
|
+
exports.openFeatureIntegrationShim = openFeatureIntegrationShim;
|
|
55
|
+
//# sourceMappingURL=openFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openFeature.js","sources":["../../../../src/integrations/featureFlagShims/openFeature.ts"],"sourcesContent":["import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core';\n\n/**\n * This is a shim for the OpenFeature integration.\n * We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.\n */\nexport const openFeatureIntegrationShim = defineIntegration((_options?: unknown) => {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The openFeatureIntegration() can only be used in the browser.');\n });\n }\n\n return {\n name: 'OpenFeature',\n };\n});\n\n/**\n * This is a shim for the OpenFeature integration hook.\n */\nexport class OpenFeatureIntegrationHookShim {\n /**\n *\n */\n public constructor() {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The OpenFeatureIntegrationHook can only be used in the browser.');\n });\n }\n }\n\n /**\n *\n */\n public after(): void {\n // No-op\n }\n\n /**\n *\n */\n public error(): void {\n // No-op\n }\n}\n"],"names":["defineIntegration","isBrowser","consoleSandbox"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,MAAM,6BAA6BA,sBAAiB,CAAC,CAAC,QAAQ,KAAe;AACpF,EAAE,IAAI,CAACC,cAAS,EAAE,EAAE;AACpB,IAAIC,mBAAc,CAAC,MAAM;AACzB;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,+DAA+D,CAAC;AACnF,IAAI,CAAC,CAAC;AACN,EAAE;;AAEF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,aAAa;AACvB,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACO,MAAM,8BAAA,CAA+B;AAC5C;AACA;AACA;AACA,GAAS,WAAW,GAAG;AACvB,IAAI,IAAI,CAACD,cAAS,EAAE,EAAE;AACtB,MAAMC,mBAAc,CAAC,MAAM;AAC3B;AACA,QAAQ,OAAO,CAAC,IAAI,CAAC,iEAAiE,CAAC;AACvF,MAAM,CAAC,CAAC;AACR,IAAI;AACJ,EAAE;;AAEF;AACA;AACA;AACA,GAAS,KAAK,GAAS;AACvB;AACA,EAAE;;AAEF;AACA;AACA;AACA,GAAS,KAAK,GAAS;AACvB;AACA,EAAE;AACF;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is a shim for the Statsig integration.
|
|
7
|
+
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
|
|
8
|
+
*/
|
|
9
|
+
const statsigIntegrationShim = core.defineIntegration((_options) => {
|
|
10
|
+
if (!core.isBrowser()) {
|
|
11
|
+
core.consoleSandbox(() => {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.warn('The statsigIntegration() can only be used in the browser.');
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
name: 'Statsig',
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
exports.statsigIntegrationShim = statsigIntegrationShim;
|
|
23
|
+
//# sourceMappingURL=statsig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsig.js","sources":["../../../../src/integrations/featureFlagShims/statsig.ts"],"sourcesContent":["import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core';\n\n/**\n * This is a shim for the Statsig integration.\n * We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.\n */\nexport const statsigIntegrationShim = defineIntegration((_options?: unknown) => {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The statsigIntegration() can only be used in the browser.');\n });\n }\n\n return {\n name: 'Statsig',\n };\n});\n"],"names":["defineIntegration","isBrowser","consoleSandbox"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,MAAM,yBAAyBA,sBAAiB,CAAC,CAAC,QAAQ,KAAe;AAChF,EAAE,IAAI,CAACC,cAAS,EAAE,EAAE;AACpB,IAAIC,mBAAc,CAAC,MAAM;AACzB;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,2DAA2D,CAAC;AAC/E,IAAI,CAAC,CAAC;AACN,EAAE;;AAEF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,SAAS;AACnB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is a shim for the Unleash integration.
|
|
7
|
+
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
|
|
8
|
+
*/
|
|
9
|
+
const unleashIntegrationShim = core.defineIntegration((_options) => {
|
|
10
|
+
if (!core.isBrowser()) {
|
|
11
|
+
core.consoleSandbox(() => {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.warn('The unleashIntegration() can only be used in the browser.');
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
name: 'Unleash',
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
exports.unleashIntegrationShim = unleashIntegrationShim;
|
|
23
|
+
//# sourceMappingURL=unleash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unleash.js","sources":["../../../../src/integrations/featureFlagShims/unleash.ts"],"sourcesContent":["import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core';\n\n/**\n * This is a shim for the Unleash integration.\n * We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.\n */\nexport const unleashIntegrationShim = defineIntegration((_options?: unknown) => {\n if (!isBrowser()) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('The unleashIntegration() can only be used in the browser.');\n });\n }\n\n return {\n name: 'Unleash',\n };\n});\n"],"names":["defineIntegration","isBrowser","consoleSandbox"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,MAAM,yBAAyBA,sBAAiB,CAAC,CAAC,QAAQ,KAAe;AAChF,EAAE,IAAI,CAACC,cAAS,EAAE,EAAE;AACpB,IAAIC,mBAAc,CAAC,MAAM;AACzB;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,2DAA2D,CAAC;AAC/E,IAAI,CAAC,CAAC;AACN,EAAE;;AAEF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,SAAS;AACnB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const instrumentationFs = require('@opentelemetry/instrumentation-fs');
|
|
4
|
+
const core = require('@sentry/core');
|
|
5
|
+
const nodeCore = require('@sentry/node-core');
|
|
6
|
+
|
|
7
|
+
const INTEGRATION_NAME = 'FileSystem';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This integration will create spans for `fs` API operations, like reading and writing files.
|
|
11
|
+
*
|
|
12
|
+
* **WARNING:** This integration may add significant overhead to your application. Especially in scenarios with a lot of
|
|
13
|
+
* file I/O, like for example when running a framework dev server, including this integration can massively slow down
|
|
14
|
+
* your application.
|
|
15
|
+
*
|
|
16
|
+
* @param options Configuration for this integration.
|
|
17
|
+
*/
|
|
18
|
+
const fsIntegration = core.defineIntegration(
|
|
19
|
+
(
|
|
20
|
+
options
|
|
21
|
+
|
|
22
|
+
= {},
|
|
23
|
+
) => {
|
|
24
|
+
return {
|
|
25
|
+
name: INTEGRATION_NAME,
|
|
26
|
+
setupOnce() {
|
|
27
|
+
nodeCore.generateInstrumentOnce(
|
|
28
|
+
INTEGRATION_NAME,
|
|
29
|
+
() =>
|
|
30
|
+
new instrumentationFs.FsInstrumentation({
|
|
31
|
+
requireParentSpan: true,
|
|
32
|
+
endHook(functionName, { args, span, error }) {
|
|
33
|
+
span.updateName(`fs.${functionName}`);
|
|
34
|
+
|
|
35
|
+
span.setAttributes({
|
|
36
|
+
[core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'file',
|
|
37
|
+
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.file.fs',
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
if (options.recordErrorMessagesAsSpanAttributes) {
|
|
41
|
+
if (typeof args[0] === 'string' && FS_OPERATIONS_WITH_PATH_ARG.includes(functionName)) {
|
|
42
|
+
span.setAttribute('path_argument', args[0]);
|
|
43
|
+
} else if (
|
|
44
|
+
typeof args[0] === 'string' &&
|
|
45
|
+
typeof args[1] === 'string' &&
|
|
46
|
+
FS_OPERATIONS_WITH_TARGET_PATH.includes(functionName)
|
|
47
|
+
) {
|
|
48
|
+
span.setAttribute('target_argument', args[0]);
|
|
49
|
+
span.setAttribute('path_argument', args[1]);
|
|
50
|
+
} else if (typeof args[0] === 'string' && FS_OPERATIONS_WITH_PREFIX.includes(functionName)) {
|
|
51
|
+
span.setAttribute('prefix_argument', args[0]);
|
|
52
|
+
} else if (
|
|
53
|
+
typeof args[0] === 'string' &&
|
|
54
|
+
typeof args[1] === 'string' &&
|
|
55
|
+
FS_OPERATIONS_WITH_EXISTING_PATH_NEW_PATH.includes(functionName)
|
|
56
|
+
) {
|
|
57
|
+
span.setAttribute('existing_path_argument', args[0]);
|
|
58
|
+
span.setAttribute('new_path_argument', args[1]);
|
|
59
|
+
} else if (
|
|
60
|
+
typeof args[0] === 'string' &&
|
|
61
|
+
typeof args[1] === 'string' &&
|
|
62
|
+
FS_OPERATIONS_WITH_SRC_DEST.includes(functionName)
|
|
63
|
+
) {
|
|
64
|
+
span.setAttribute('src_argument', args[0]);
|
|
65
|
+
span.setAttribute('dest_argument', args[1]);
|
|
66
|
+
} else if (
|
|
67
|
+
typeof args[0] === 'string' &&
|
|
68
|
+
typeof args[1] === 'string' &&
|
|
69
|
+
FS_OPERATIONS_WITH_OLD_PATH_NEW_PATH.includes(functionName)
|
|
70
|
+
) {
|
|
71
|
+
span.setAttribute('old_path_argument', args[0]);
|
|
72
|
+
span.setAttribute('new_path_argument', args[1]);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (error && options.recordErrorMessagesAsSpanAttributes) {
|
|
77
|
+
span.setAttribute('fs_error', error.message);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
)();
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
const FS_OPERATIONS_WITH_OLD_PATH_NEW_PATH = ['rename', 'renameSync'];
|
|
88
|
+
const FS_OPERATIONS_WITH_SRC_DEST = ['copyFile', 'cp', 'copyFileSync', 'cpSync'];
|
|
89
|
+
const FS_OPERATIONS_WITH_EXISTING_PATH_NEW_PATH = ['link', 'linkSync'];
|
|
90
|
+
const FS_OPERATIONS_WITH_PREFIX = ['mkdtemp', 'mkdtempSync'];
|
|
91
|
+
const FS_OPERATIONS_WITH_TARGET_PATH = ['symlink', 'symlinkSync'];
|
|
92
|
+
const FS_OPERATIONS_WITH_PATH_ARG = [
|
|
93
|
+
'access',
|
|
94
|
+
'appendFile',
|
|
95
|
+
'chmod',
|
|
96
|
+
'chown',
|
|
97
|
+
'exists',
|
|
98
|
+
'mkdir',
|
|
99
|
+
'lchown',
|
|
100
|
+
'lstat',
|
|
101
|
+
'lutimes',
|
|
102
|
+
'open',
|
|
103
|
+
'opendir',
|
|
104
|
+
'readdir',
|
|
105
|
+
'readFile',
|
|
106
|
+
'readlink',
|
|
107
|
+
'realpath',
|
|
108
|
+
'realpath.native',
|
|
109
|
+
'rm',
|
|
110
|
+
'rmdir',
|
|
111
|
+
'stat',
|
|
112
|
+
'truncate',
|
|
113
|
+
'unlink',
|
|
114
|
+
'utimes',
|
|
115
|
+
'writeFile',
|
|
116
|
+
'accessSync',
|
|
117
|
+
'appendFileSync',
|
|
118
|
+
'chmodSync',
|
|
119
|
+
'chownSync',
|
|
120
|
+
'existsSync',
|
|
121
|
+
'lchownSync',
|
|
122
|
+
'lstatSync',
|
|
123
|
+
'lutimesSync',
|
|
124
|
+
'opendirSync',
|
|
125
|
+
'mkdirSync',
|
|
126
|
+
'openSync',
|
|
127
|
+
'readdirSync',
|
|
128
|
+
'readFileSync',
|
|
129
|
+
'readlinkSync',
|
|
130
|
+
'realpathSync',
|
|
131
|
+
'realpathSync.native',
|
|
132
|
+
'rmdirSync',
|
|
133
|
+
'rmSync',
|
|
134
|
+
'statSync',
|
|
135
|
+
'truncateSync',
|
|
136
|
+
'unlinkSync',
|
|
137
|
+
'utimesSync',
|
|
138
|
+
'writeFileSync',
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
exports.fsIntegration = fsIntegration;
|
|
142
|
+
//# sourceMappingURL=fs.js.map
|