@sentry/server-utils 11.8.0 → 11.9.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/build/THIRD-PARTY-LICENSES.txt +70 -70
- package/build/cjs/ai/anthropic-ai/constants.js +2 -0
- package/build/cjs/ai/anthropic-ai/constants.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/index.js +6 -1
- package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +93 -0
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -0
- package/build/cjs/ai/langchain/index.js +75 -50
- package/build/cjs/ai/langchain/index.js.map +1 -1
- package/build/cjs/index.js +8 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/anthropic.js +6 -2
- package/build/cjs/integrations/anthropic.js.map +1 -1
- package/build/cjs/integrations/graphql/constants.js +1 -1
- package/build/cjs/integrations/graphql/constants.js.map +1 -1
- package/build/cjs/integrations/hono/connInfo.js +37 -0
- package/build/cjs/integrations/hono/connInfo.js.map +1 -0
- package/build/cjs/integrations/hono/createHonoMiddleware.js +2 -2
- package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/cjs/integrations/hono/honoIntegration.js +3 -24
- package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
- package/build/cjs/integrations/hono/middlewareHandlers.js +31 -19
- package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/cjs/integrations/index.js +29 -21
- package/build/cjs/integrations/index.js.map +1 -1
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +1 -1
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +1 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/nitro/captureStorageEvents.js +132 -0
- package/build/cjs/integrations/nitro/captureStorageEvents.js.map +1 -0
- package/build/cjs/integrations/nitro/captureTracingEvents.js +202 -0
- package/build/cjs/integrations/nitro/captureTracingEvents.js.map +1 -0
- package/build/cjs/integrations/nitro/index.js +27 -0
- package/build/cjs/integrations/nitro/index.js.map +1 -0
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js +40 -0
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js.map +1 -0
- package/build/cjs/integrations/redis/redis-dc-subscriber.js +1 -1
- package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +2 -2
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/bundler/externalRequire.js +82 -0
- package/build/cjs/orchestrion/bundler/externalRequire.js.map +1 -0
- package/build/cjs/orchestrion/bundler/vite.js +17 -3
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +7 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +2 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +2 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/nitro.js +10 -0
- package/build/cjs/orchestrion/config/nitro.js.map +1 -0
- package/build/esm/ai/anthropic-ai/constants.js +2 -1
- package/build/esm/ai/anthropic-ai/constants.js.map +1 -1
- package/build/esm/ai/anthropic-ai/index.js +7 -2
- package/build/esm/ai/anthropic-ai/index.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +90 -0
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -0
- package/build/esm/ai/langchain/index.js +77 -52
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/anthropic.js +6 -2
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/graphql/constants.js +1 -1
- package/build/esm/integrations/graphql/constants.js.map +1 -1
- package/build/esm/integrations/hono/connInfo.js +35 -0
- package/build/esm/integrations/hono/connInfo.js.map +1 -0
- package/build/esm/integrations/hono/createHonoMiddleware.js +2 -2
- package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js +4 -25
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/hono/middlewareHandlers.js +33 -21
- package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/esm/integrations/index.js +9 -1
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +1 -1
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/nitro/captureStorageEvents.js +130 -0
- package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -0
- package/build/esm/integrations/nitro/captureTracingEvents.js +200 -0
- package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -0
- package/build/esm/integrations/nitro/index.js +25 -0
- package/build/esm/integrations/nitro/index.js.map +1 -0
- package/build/esm/integrations/nitro/setServerTimingHeaders.js +38 -0
- package/build/esm/integrations/nitro/setServerTimingHeaders.js.map +1 -0
- package/build/esm/integrations/redis/redis-dc-subscriber.js +1 -1
- package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +2 -2
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/externalRequire.js +80 -0
- package/build/esm/orchestrion/bundler/externalRequire.js.map +1 -0
- package/build/esm/orchestrion/bundler/vite.js +17 -3
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +7 -1
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +2 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +2 -0
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/nitro.js +8 -0
- package/build/esm/orchestrion/config/nitro.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/types/ai/anthropic-ai/constants.d.ts +1 -0
- package/build/types/ai/anthropic-ai/constants.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/tool-runner.d.ts +6 -0
- package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -0
- package/build/types/ai/langchain/index.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/anthropic.d.ts.map +1 -1
- package/build/types/integrations/graphql/constants.d.ts +1 -1
- package/build/types/integrations/graphql/constants.d.ts.map +1 -1
- package/build/types/integrations/hono/connInfo.d.ts +12 -0
- package/build/types/integrations/hono/connInfo.d.ts.map +1 -0
- package/build/types/integrations/hono/createHonoMiddleware.d.ts +5 -7
- package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
- package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
- package/build/types/integrations/hono/honoTypes.d.ts +0 -9
- package/build/types/integrations/hono/honoTypes.d.ts.map +1 -1
- package/build/types/integrations/hono/middlewareHandlers.d.ts +3 -2
- package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts +5 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureStorageEvents.d.ts +5 -0
- package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -0
- package/build/types/integrations/nitro/captureTracingEvents.d.ts +5 -0
- package/build/types/integrations/nitro/captureTracingEvents.d.ts.map +1 -0
- package/build/types/integrations/nitro/index.d.ts +29 -0
- package/build/types/integrations/nitro/index.d.ts.map +1 -0
- package/build/types/integrations/nitro/nitroTypes.d.ts +72 -0
- package/build/types/integrations/nitro/nitroTypes.d.ts.map +1 -0
- package/build/types/integrations/nitro/setServerTimingHeaders.d.ts +10 -0
- package/build/types/integrations/nitro/setServerTimingHeaders.d.ts.map +1 -0
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/externalRequire.d.ts +15 -0
- package/build/types/orchestrion/bundler/externalRequire.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +1 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/nitro.d.ts +19 -0
- package/build/types/orchestrion/config/nitro.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/anthropic-ai/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,EAAG,cAAuB,CAAC;AAGrE,eAAO,MAAM,yBAAyB;;iBACf,SAAS,EAAE,MAAM;;;iBACjB,SAAS,EAAE,MAAM;iBAAE,SAAS;;;iBACzB,SAAS,EAAE,MAAM;;;iBACf,SAAS,EAAE,MAAM;;CACE,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/anthropic-ai/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,EAAG,cAAuB,CAAC;AAGrE,eAAO,MAAM,yBAAyB;;iBACf,SAAS,EAAE,MAAM;;;iBACjB,SAAS,EAAE,MAAM;iBAAE,SAAS;;;iBACzB,SAAS,EAAE,MAAM;;;iBACf,SAAS,EAAE,MAAM;;CACE,CAAC;AAEhD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/anthropic-ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/anthropic-ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;AA4B7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAA2C,MAAM,SAAS,CAAC;AAYhH;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,OAAO,EAAE,EACf,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,GACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyBzB;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAG7F;AA2DD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAgB9G;AAwMD;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,EAAE,iBAAiB,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,CAAC,CAEnH"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AnthropicAiOptions } from './types';
|
|
2
|
+
/** Wrap `beta.messages.toolRunner()` so the runners it returns trace their tool calls. */
|
|
3
|
+
export declare function instrumentToolRunnerMethod(messages: object, options: AnthropicAiOptions): void;
|
|
4
|
+
/** Give each tool call of a tool runner a `gen_ai.execute_tool` span. */
|
|
5
|
+
export declare function instrumentToolRunner(runner: unknown, options: AnthropicAiOptions): void;
|
|
6
|
+
//# sourceMappingURL=tool-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-runner.d.ts","sourceRoot":"","sources":["../../../../src/ai/anthropic-ai/tool-runner.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOlD,0FAA0F;AAC1F,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAM9F;AAED,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAiBvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/langchain/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/langchain/index.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EACV,wBAAwB,EAGxB,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAoBjB;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,gBAAqB,GAAG,wBAAwB,CA8XvG;AAED,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -58,5 +58,7 @@ export { expressIntegration } from './integrations/express';
|
|
|
58
58
|
export type { ExpressIntegrationOptions } from './integrations/express/types';
|
|
59
59
|
export { expressErrorHandler, setupExpressErrorHandler } from './integrations/express/error-handler';
|
|
60
60
|
export { firebaseIntegration } from './integrations/firebase';
|
|
61
|
+
export { nitroIntegration } from './integrations/nitro';
|
|
62
|
+
export type { NitroIntegrationOptions } from './integrations/nitro';
|
|
61
63
|
export { getTracingIntegrations, getErrorIntegrations } from './integrations';
|
|
62
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAKrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,SAAS,IAAI,2BAA2B,EACxC,cAAc,IAAI,yBAAyB,GAC5C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAElB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,sBAAsB,gCAA0B,CAAC;AAG9D,OAAO,EAAE,iBAA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,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAyNA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ORIGIN = "auto.graphql.
|
|
1
|
+
export declare const ORIGIN = "auto.graphql.graphql";
|
|
2
2
|
export declare const SPAN_NAME_PARSE = "graphql.parse";
|
|
3
3
|
export declare const SPAN_NAME_VALIDATE = "graphql.validate";
|
|
4
4
|
export declare const SPAN_NAME_EXECUTE = "graphql.execute";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAGnD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAGjD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Context } from './honoTypes';
|
|
2
|
+
export type HonoRuntime = 'node' | 'bun' | 'deno' | 'cloudflare';
|
|
3
|
+
/** The client side of the request's connection. */
|
|
4
|
+
export interface ConnInfo {
|
|
5
|
+
address?: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
transport?: string;
|
|
8
|
+
addressType?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Gives `undefined` when the runtime object is missing or a read throws. */
|
|
11
|
+
export declare function readConnInfo(context: Context, runtime: HonoRuntime): ConnInfo | undefined;
|
|
12
|
+
//# sourceMappingURL=connInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connInfo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/connInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,YAAY,CAAC;AAEjE,mDAAmD;AACnD,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA0CD,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAMzF"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HonoRuntime } from './connInfo';
|
|
2
|
+
import type { Context, MiddlewareHandler } from './honoTypes';
|
|
2
3
|
import type { SentryHonoMiddlewareOptions } from './types';
|
|
3
4
|
export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
|
|
4
5
|
export interface CreateHonoRequestMiddlewareOptions {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
* Optional — connection-info attributes are simply skipped when it is not provided.
|
|
8
|
-
*/
|
|
9
|
-
getConnInfo?: GetConnInfo;
|
|
6
|
+
/** Selects where the connection info is read from. */
|
|
7
|
+
runtime: HonoRuntime;
|
|
10
8
|
/** Static `shouldHandleError` callback (Node/Bun/Deno). */
|
|
11
9
|
shouldHandleError?: SentryHonoMiddlewareOptions['shouldHandleError'];
|
|
12
10
|
/**
|
|
@@ -29,5 +27,5 @@ export interface CreateHonoRequestMiddlewareOptions {
|
|
|
29
27
|
* `Context` constructor hook): the deduplicated middleware records its callback on the request scope, and the
|
|
30
28
|
* middleware that actually runs `responseHandler` uses it in preference to its own default.
|
|
31
29
|
*/
|
|
32
|
-
export declare function createHonoRequestMiddleware(options
|
|
30
|
+
export declare function createHonoRequestMiddleware(options: CreateHonoRequestMiddlewareOptions): MiddlewareHandler;
|
|
33
31
|
//# sourceMappingURL=createHonoMiddleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AASnE,MAAM,WAAW,kCAAkC;IACjD,sDAAsD;IACtD,OAAO,EAAE,WAAW,CAAC;IAErB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAErE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;CACnG;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,kCAAkC,GAAG,iBAAiB,CA4C1G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAS9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AA0ID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
|
|
@@ -45,13 +45,4 @@ export interface Hono<E extends Env = Env> {
|
|
|
45
45
|
routes: HonoRoute[];
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
}
|
|
48
|
-
export interface ConnInfoRemote {
|
|
49
|
-
address?: string;
|
|
50
|
-
port?: number;
|
|
51
|
-
transport?: string;
|
|
52
|
-
addressType?: string;
|
|
53
|
-
}
|
|
54
|
-
export type GetConnInfo = (context: any) => {
|
|
55
|
-
remote?: ConnInfoRemote;
|
|
56
|
-
};
|
|
57
48
|
//# sourceMappingURL=honoTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CA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CAAC;CACpB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { Context
|
|
1
|
+
import type { Context } from './honoTypes';
|
|
2
|
+
import { type HonoRuntime } from './connInfo';
|
|
2
3
|
import { type SentryHonoMiddlewareOptions } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Request handler for Hono framework
|
|
5
6
|
*/
|
|
6
|
-
export declare function requestHandler(context: Context,
|
|
7
|
+
export declare function requestHandler(context: Context, runtime: HonoRuntime): void;
|
|
7
8
|
/**
|
|
8
9
|
* Response handler for Hono framework
|
|
9
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,YAAY,CAAC;AAI5D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAW3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAY3E;AAgED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAKN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Integration } from '@sentry/core';
|
|
2
2
|
/** These are integrations that are tracing-only integrations. */
|
|
3
3
|
export declare function getTracingIntegrations(): Integration[];
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* These are default integrations that are registered regardless of whether tracing is enabled -
|
|
6
|
+
* either because they cover error capture in addition to tracing, or because they handle trace
|
|
7
|
+
* propagation (which must work in tracing-without-performance mode too).
|
|
8
|
+
*/
|
|
5
9
|
export declare function getErrorIntegrations(): Integration[];
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAqCtD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CASpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"AA2DA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureTracingEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureTracingEvents.ts"],"names":[],"mappings":"AA8BA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAQ3C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface NitroIntegrationOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Set `Server-Timing` response headers carrying the current `sentry-trace`/`baggage`, so the browser
|
|
4
|
+
* SDK can connect a pageload trace to the backend trace.
|
|
5
|
+
*
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
serverTiming?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Create cache spans for unstorage operations.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
storage?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Instruments a Nitro server via its `node:diagnostics_channel` tracing channels: HTTP server and
|
|
18
|
+
* middleware spans (h3/srvx), cache spans (unstorage) and `Server-Timing` trace-propagation headers.
|
|
19
|
+
* It subscribes to those channels, so it is inert unless a Nitro app (or a framework that enables the
|
|
20
|
+
* same tracing channels) is running.
|
|
21
|
+
*
|
|
22
|
+
* Registered regardless of whether tracing is enabled, because trace propagation must work in
|
|
23
|
+
* tracing-without-performance mode too; without tracing, the spans it starts are non-recording.
|
|
24
|
+
* Error capture is handled by the `@sentry/nitro` runtime plugin's Nitro `error` hook.
|
|
25
|
+
*/
|
|
26
|
+
export declare const nitroIntegration: (options?: NitroIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
27
|
+
name: "Nitro";
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAqBD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored subset of the `nitro`/`h3`/`srvx`/`unstorage` tracing types used by the Sentry Nitro
|
|
3
|
+
* instrumentation.
|
|
4
|
+
*
|
|
5
|
+
* The instrumentation lives in `@sentry/server-utils`, a dependency of every server SDK — including
|
|
6
|
+
* apps that do not use Nitro. We therefore declare no dependency on those packages at all: the
|
|
7
|
+
* instrumentation only ever subscribes to `node:diagnostics_channel` channels, so these minimal
|
|
8
|
+
* structural types stand in for the real `nitro/h3`, `h3/tracing`, `srvx/tracing` and
|
|
9
|
+
* `unstorage/tracing` types at the boundary.
|
|
10
|
+
*
|
|
11
|
+
* ATTENTION: keep these permissive — the payloads are produced by the frameworks, so these types
|
|
12
|
+
* must stay assignable from the real ones. Only the fields the instrumentation reads are declared.
|
|
13
|
+
*/
|
|
14
|
+
/** Minimal shape of an `h3` event, as read from the `h3.request` tracing channel. */
|
|
15
|
+
export interface NitroH3Event {
|
|
16
|
+
url: {
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
req: {
|
|
20
|
+
method?: string;
|
|
21
|
+
};
|
|
22
|
+
res?: {
|
|
23
|
+
headers: {
|
|
24
|
+
append: (name: string, value: string) => void;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
context?: {
|
|
28
|
+
matchedRoute?: {
|
|
29
|
+
route?: string;
|
|
30
|
+
};
|
|
31
|
+
params?: unknown;
|
|
32
|
+
/** Set by the Server-Timing instrumentation so trace headers are only appended once per request. */
|
|
33
|
+
_sentryServerTimingSet?: boolean;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** Payload of the `h3.request` tracing channel (`h3/tracing`'s `TracingRequestEvent`). */
|
|
37
|
+
export interface H3TracingRequestEvent {
|
|
38
|
+
type: 'middleware' | 'route';
|
|
39
|
+
event: NitroH3Event;
|
|
40
|
+
}
|
|
41
|
+
/** Payload of the `srvx.request`/`srvx.middleware` tracing channels (`srvx/tracing`'s `RequestEvent`). */
|
|
42
|
+
export interface SrvxRequestEvent {
|
|
43
|
+
server: {
|
|
44
|
+
url?: string;
|
|
45
|
+
options: {
|
|
46
|
+
port?: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
request: {
|
|
50
|
+
_url?: {
|
|
51
|
+
href: string;
|
|
52
|
+
pathname: string;
|
|
53
|
+
};
|
|
54
|
+
method: string;
|
|
55
|
+
headers: Headers;
|
|
56
|
+
};
|
|
57
|
+
middleware?: {
|
|
58
|
+
index: number;
|
|
59
|
+
handler: {
|
|
60
|
+
name?: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** Payload of the `unstorage.*` tracing channels (`unstorage/tracing`'s `TraceContext`). */
|
|
65
|
+
export interface UnstorageTraceContext {
|
|
66
|
+
keys?: string[];
|
|
67
|
+
base?: string;
|
|
68
|
+
driver?: {
|
|
69
|
+
name?: string;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=nitroTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nitroTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/nitroTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtB,GAAG,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE;YAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;SAAE,CAAA;KAAE,CAAC;IACrE,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAClC,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,oGAAoG;QACpG,sBAAsB,CAAC,EAAE,OAAO,CAAC;KAClC,CAAC;CACH;AAED,0FAA0F;AAC1F,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,0GAA0G;AAC1G,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IACrD,OAAO,EAAE;QACP,IAAI,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;QAC1C,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,CAAC;CACH;AAED,4FAA4F;AAC5F,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribes to the h3 request tracing channel to set Server-Timing trace headers on every response.
|
|
3
|
+
*
|
|
4
|
+
* This is deliberately independent of span sampling: `getTraceData()` returns valid trace
|
|
5
|
+
* propagation data even in tracing-without-performance mode, and the browser SDK reads these headers
|
|
6
|
+
* (via the Performance API) to connect a pageload to the backend trace regardless of whether the
|
|
7
|
+
* server records spans.
|
|
8
|
+
*/
|
|
9
|
+
export declare function captureServerTimingHeaders(): void;
|
|
10
|
+
//# sourceMappingURL=setServerTimingHeaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setServerTimingHeaders.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/setServerTimingHeaders.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAejD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AA+DrH,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzD;AA0FD,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,mBAAmB,GACnB,aAAa,GACb,OAAO,GACP,WAAW,GACX,QAAQ,GACR,uBAAuB,GACvB,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA+CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CA+ElB;AAkGD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAyEN;
|
|
1
|
+
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AA+DrH,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzD;AA0FD,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,mBAAmB,GACnB,aAAa,GACb,OAAO,GACP,WAAW,GACX,QAAQ,GACR,uBAAuB,GACvB,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA+CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CA+ElB;AAkGD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAyEN;AA0ID,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
type ResolveIdHandler = Extract<NonNullable<Plugin['resolveId']>, (...args: never[]) => unknown>;
|
|
3
|
+
type ResolveIdParameters = Parameters<ResolveIdHandler>;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a `resolveId` handler that bundles the external packages that bundled CommonJS `require()`s.
|
|
6
|
+
*
|
|
7
|
+
* Rolldown keeps these calls as `__require()`, which a second bundler over the server output can't follow:
|
|
8
|
+
* - https://vite.dev/guide/migration#require-calls-for-externalized-modules
|
|
9
|
+
* - https://rolldown.rs/in-depth/bundling-cjs#require-external-modules
|
|
10
|
+
*
|
|
11
|
+
* Only handles requires from packages bundled for orchestrion, and from packages bundled because of them.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createExternalRequireResolver(moduleNames: readonly string[]): (this: ThisParameterType<ResolveIdHandler>, ...args: ResolveIdParameters) => Promise<string | null>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=externalRequire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"externalRequire.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/externalRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,KAAK,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAAC;AACjG,KAAK,mBAAmB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAIxD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,SAAS,MAAM,EAAE,GAC7B,CAAC,IAAI,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA4CrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,MAAM,EAA8B,MAAM,MAAM,CAAC;AAE1E,YAAY,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,MAAM,EAA8B,MAAM,MAAM,CAAC;AAE1E,YAAY,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA4C/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAkH3E"}
|
|
@@ -31,6 +31,7 @@ export declare const CHANNELS: {
|
|
|
31
31
|
readonly AMQPLIB_CONNECT: 'orchestrion:amqplib:connect';
|
|
32
32
|
readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
|
|
33
33
|
readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
|
|
34
|
+
readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
|
|
34
35
|
readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
|
|
35
36
|
readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
|
|
36
37
|
readonly DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -15,5 +15,6 @@ export declare const anthropicAiModuleNames: string[];
|
|
|
15
15
|
export declare const anthropicAiChannels: {
|
|
16
16
|
readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
|
|
17
17
|
readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
|
|
18
|
+
readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
|
|
18
19
|
};
|
|
19
20
|
//# sourceMappingURL=anthropic-ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;QAKT,SAAS;QAAc,UAAU;QAAY,IAAI,EAAE,MAAM;;
|
|
1
|
+
{"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;QAKT,SAAS;QAAc,UAAU;QAAY,IAAI,EAAE,MAAM;;GAwB3C,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;aAC1E,qBAAqB,EAAE,2CAA2C;CAC1D,CAAC"}
|
|
@@ -126,6 +126,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
|
|
|
126
126
|
}, {
|
|
127
127
|
readonly exportName: 'dataloaderIntegration';
|
|
128
128
|
readonly modules: readonly ["dataloader"];
|
|
129
|
+
}, {
|
|
130
|
+
readonly exportName: 'nitroIntegration';
|
|
131
|
+
readonly modules: readonly ["h3"];
|
|
129
132
|
}];
|
|
130
133
|
/** Look up the subscriber export name for an instrumented package, if any. */
|
|
131
134
|
export declare function subscriberExportForModule(moduleName: string): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,iBAAiB;;;yBACjB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,iBAAiB;;;yBACjB,uBAAuB;;;yBACvB,qBAAqB;;;yBACrB,qBAAqB;;;yBAErB,sBAAsB;;;yBAUtB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;
|
|
1
|
+
{"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,iBAAiB;;;yBACjB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,iBAAiB;;;yBACjB,uBAAuB;;;yBACvB,qBAAqB;;;yBACrB,qBAAqB;;;yBAErB,sBAAsB;;;yBAUtB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;;yBACvB,kBAAkB;;EACoD,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAiDzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA2C1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '../apmTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so
|
|
4
|
+
* no channels are injected: transforming h3's entry file only registers `nitroIntegration` at
|
|
5
|
+
* evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On
|
|
6
|
+
* `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.
|
|
7
|
+
*
|
|
8
|
+
* Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers
|
|
9
|
+
* registration; the integration then subscribes to all of its channels (including unstorage's),
|
|
10
|
+
* independent of which module loaded it.
|
|
11
|
+
*
|
|
12
|
+
* The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease
|
|
13
|
+
* (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader
|
|
14
|
+
* and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching
|
|
15
|
+
* across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops
|
|
16
|
+
* prereleases of a higher patch tuple.)
|
|
17
|
+
*/
|
|
18
|
+
export declare const nitroConfig: InstrumentationConfig[];
|
|
19
|
+
//# sourceMappingURL=nitro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nitro.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,yBAEW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/server-utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.9.0",
|
|
4
4
|
"description": "Server Utilities for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils",
|
|
@@ -98,18 +98,18 @@
|
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@opentelemetry/api": "^1.9.1",
|
|
100
100
|
"@sentry/conventions": "^0.27.0",
|
|
101
|
-
"@sentry/core": "11.
|
|
101
|
+
"@sentry/core": "11.9.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.4",
|
|
105
105
|
"@neondatabase/serverless": "1.2.0",
|
|
106
|
-
"@types/node": "^
|
|
106
|
+
"@types/node": "^20.19.0",
|
|
107
107
|
"meriyah": "^6.1.4",
|
|
108
108
|
"vite": "^8.3.1"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "run-p build:transpile build:types",
|
|
112
|
-
"build:dev": "
|
|
112
|
+
"build:dev": "pnpm run build",
|
|
113
113
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
114
114
|
"build:types": "tsc -p tsconfig.types.json",
|
|
115
115
|
"build:watch": "run-p build:transpile:watch",
|