@sentry/server-utils 11.1.0 → 11.2.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.
Files changed (197) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  2. package/build/cjs/ai/core/apiPromise.js +54 -0
  3. package/build/cjs/ai/core/apiPromise.js.map +1 -0
  4. package/build/cjs/index.js +8 -0
  5. package/build/cjs/index.js.map +1 -1
  6. package/build/cjs/index.no-diagnostic-channels.js +5 -0
  7. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  8. package/build/cjs/integrations/anthropic.js +11 -1
  9. package/build/cjs/integrations/anthropic.js.map +1 -1
  10. package/build/cjs/integrations/express/instrumentation.js +12 -1
  11. package/build/cjs/integrations/express/instrumentation.js.map +1 -1
  12. package/build/cjs/integrations/hono/applyPatches.js +38 -0
  13. package/build/cjs/integrations/hono/applyPatches.js.map +1 -0
  14. package/build/cjs/integrations/hono/constants.js +6 -0
  15. package/build/cjs/integrations/hono/constants.js.map +1 -0
  16. package/build/cjs/integrations/hono/createHonoMiddleware.js +44 -0
  17. package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -0
  18. package/build/cjs/integrations/hono/defaultShouldHandleError.js +12 -0
  19. package/build/cjs/integrations/hono/defaultShouldHandleError.js.map +1 -0
  20. package/build/cjs/integrations/hono/hono-context.js +14 -0
  21. package/build/cjs/integrations/hono/hono-context.js.map +1 -0
  22. package/build/cjs/integrations/hono/honoIntegration.js +126 -0
  23. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -0
  24. package/build/cjs/integrations/hono/isMiddleware.js +14 -0
  25. package/build/cjs/integrations/hono/isMiddleware.js.map +1 -0
  26. package/build/cjs/integrations/hono/middlewareHandlers.js +79 -0
  27. package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -0
  28. package/build/cjs/integrations/hono/patchAppRequest.js +82 -0
  29. package/build/cjs/integrations/hono/patchAppRequest.js.map +1 -0
  30. package/build/cjs/integrations/hono/patchAppUse.js +70 -0
  31. package/build/cjs/integrations/hono/patchAppUse.js.map +1 -0
  32. package/build/cjs/integrations/hono/patchRoute.js +81 -0
  33. package/build/cjs/integrations/hono/patchRoute.js.map +1 -0
  34. package/build/cjs/integrations/hono/resolveRouteName.js +31 -0
  35. package/build/cjs/integrations/hono/resolveRouteName.js.map +1 -0
  36. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +52 -0
  37. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +1 -0
  38. package/build/cjs/integrations/index.js +2 -1
  39. package/build/cjs/integrations/index.js.map +1 -1
  40. package/build/cjs/integrations/openai-compatible.js +11 -2
  41. package/build/cjs/integrations/openai-compatible.js.map +1 -1
  42. package/build/cjs/integrations/openai.js +11 -2
  43. package/build/cjs/integrations/openai.js.map +1 -1
  44. package/build/cjs/orchestrion/bundler/bun.js.map +1 -1
  45. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +1 -1
  46. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  47. package/build/cjs/orchestrion/bundler/rollup.js +23 -0
  48. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  49. package/build/cjs/orchestrion/channels.js +2 -0
  50. package/build/cjs/orchestrion/channels.js.map +1 -1
  51. package/build/cjs/orchestrion/config/anthropic-ai.js +3 -3
  52. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  53. package/build/cjs/orchestrion/config/channel-integration-definitions.js +1 -0
  54. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  55. package/build/cjs/orchestrion/config/hono.js +32 -0
  56. package/build/cjs/orchestrion/config/hono.js.map +1 -0
  57. package/build/cjs/orchestrion/config/index.js +5 -0
  58. package/build/cjs/orchestrion/config/index.js.map +1 -1
  59. package/build/cjs/orchestrion/config/openai-compatible.js +2 -2
  60. package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
  61. package/build/cjs/orchestrion/config/openai.js +5 -7
  62. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  63. package/build/cjs/orchestrion/config/remix-v3.js +23 -0
  64. package/build/cjs/orchestrion/config/remix-v3.js.map +1 -0
  65. package/build/cjs/utils/sql.js +12 -9
  66. package/build/cjs/utils/sql.js.map +1 -1
  67. package/build/esm/ai/core/apiPromise.js +52 -0
  68. package/build/esm/ai/core/apiPromise.js.map +1 -0
  69. package/build/esm/index.js +3 -0
  70. package/build/esm/index.js.map +1 -1
  71. package/build/esm/index.no-diagnostic-channels.js +2 -0
  72. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  73. package/build/esm/integrations/anthropic.js +11 -1
  74. package/build/esm/integrations/anthropic.js.map +1 -1
  75. package/build/esm/integrations/express/instrumentation.js +12 -1
  76. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  77. package/build/esm/integrations/hono/applyPatches.js +34 -0
  78. package/build/esm/integrations/hono/applyPatches.js.map +1 -0
  79. package/build/esm/integrations/hono/constants.js +4 -0
  80. package/build/esm/integrations/hono/constants.js.map +1 -0
  81. package/build/esm/integrations/hono/createHonoMiddleware.js +41 -0
  82. package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -0
  83. package/build/esm/integrations/hono/defaultShouldHandleError.js +10 -0
  84. package/build/esm/integrations/hono/defaultShouldHandleError.js.map +1 -0
  85. package/build/esm/integrations/hono/hono-context.js +12 -0
  86. package/build/esm/integrations/hono/hono-context.js.map +1 -0
  87. package/build/esm/integrations/hono/honoIntegration.js +123 -0
  88. package/build/esm/integrations/hono/honoIntegration.js.map +1 -0
  89. package/build/esm/integrations/hono/isMiddleware.js +12 -0
  90. package/build/esm/integrations/hono/isMiddleware.js.map +1 -0
  91. package/build/esm/integrations/hono/middlewareHandlers.js +75 -0
  92. package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -0
  93. package/build/esm/integrations/hono/patchAppRequest.js +78 -0
  94. package/build/esm/integrations/hono/patchAppRequest.js.map +1 -0
  95. package/build/esm/integrations/hono/patchAppUse.js +67 -0
  96. package/build/esm/integrations/hono/patchAppUse.js.map +1 -0
  97. package/build/esm/integrations/hono/patchRoute.js +78 -0
  98. package/build/esm/integrations/hono/patchRoute.js.map +1 -0
  99. package/build/esm/integrations/hono/resolveRouteName.js +29 -0
  100. package/build/esm/integrations/hono/resolveRouteName.js.map +1 -0
  101. package/build/esm/integrations/hono/wrapMiddlewareSpan.js +50 -0
  102. package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -0
  103. package/build/esm/integrations/index.js +2 -1
  104. package/build/esm/integrations/index.js.map +1 -1
  105. package/build/esm/integrations/openai-compatible.js +11 -2
  106. package/build/esm/integrations/openai-compatible.js.map +1 -1
  107. package/build/esm/integrations/openai.js +11 -2
  108. package/build/esm/integrations/openai.js.map +1 -1
  109. package/build/esm/orchestrion/bundler/bun.js.map +1 -1
  110. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +1 -1
  111. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  112. package/build/esm/orchestrion/bundler/rollup.js +22 -1
  113. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  114. package/build/esm/orchestrion/channels.js +2 -0
  115. package/build/esm/orchestrion/channels.js.map +1 -1
  116. package/build/esm/orchestrion/config/anthropic-ai.js +3 -3
  117. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  118. package/build/esm/orchestrion/config/channel-integration-definitions.js +1 -0
  119. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  120. package/build/esm/orchestrion/config/hono.js +28 -0
  121. package/build/esm/orchestrion/config/hono.js.map +1 -0
  122. package/build/esm/orchestrion/config/index.js +5 -0
  123. package/build/esm/orchestrion/config/index.js.map +1 -1
  124. package/build/esm/orchestrion/config/openai-compatible.js +2 -2
  125. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  126. package/build/esm/orchestrion/config/openai.js +5 -7
  127. package/build/esm/orchestrion/config/openai.js.map +1 -1
  128. package/build/esm/orchestrion/config/remix-v3.js +20 -0
  129. package/build/esm/orchestrion/config/remix-v3.js.map +1 -0
  130. package/build/esm/package.json +1 -1
  131. package/build/esm/utils/sql.js +12 -9
  132. package/build/esm/utils/sql.js.map +1 -1
  133. package/build/types/ai/core/apiPromise.d.ts +2 -0
  134. package/build/types/ai/core/apiPromise.d.ts.map +1 -0
  135. package/build/types/exports.d.ts +4 -0
  136. package/build/types/exports.d.ts.map +1 -1
  137. package/build/types/index.d.ts +2 -0
  138. package/build/types/index.d.ts.map +1 -1
  139. package/build/types/integrations/anthropic.d.ts.map +1 -1
  140. package/build/types/integrations/express/instrumentation.d.ts.map +1 -1
  141. package/build/types/integrations/hono/applyPatches.d.ts +28 -0
  142. package/build/types/integrations/hono/applyPatches.d.ts.map +1 -0
  143. package/build/types/integrations/hono/constants.d.ts +2 -0
  144. package/build/types/integrations/hono/constants.d.ts.map +1 -0
  145. package/build/types/integrations/hono/createHonoMiddleware.d.ts +33 -0
  146. package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -0
  147. package/build/types/integrations/hono/defaultShouldHandleError.d.ts +12 -0
  148. package/build/types/integrations/hono/defaultShouldHandleError.d.ts.map +1 -0
  149. package/build/types/integrations/hono/hono-context.d.ts +6 -0
  150. package/build/types/integrations/hono/hono-context.d.ts.map +1 -0
  151. package/build/types/integrations/hono/honoIntegration.d.ts +29 -0
  152. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -0
  153. package/build/types/integrations/hono/honoTypes.d.ts +57 -0
  154. package/build/types/integrations/hono/honoTypes.d.ts.map +1 -0
  155. package/build/types/integrations/hono/index.d.ts +8 -0
  156. package/build/types/integrations/hono/index.d.ts.map +1 -0
  157. package/build/types/integrations/hono/isMiddleware.d.ts +13 -0
  158. package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -0
  159. package/build/types/integrations/hono/middlewareHandlers.d.ts +20 -0
  160. package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -0
  161. package/build/types/integrations/hono/patchAppRequest.d.ts +26 -0
  162. package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -0
  163. package/build/types/integrations/hono/patchAppUse.d.ts +16 -0
  164. package/build/types/integrations/hono/patchAppUse.d.ts.map +1 -0
  165. package/build/types/integrations/hono/patchRoute.d.ts +35 -0
  166. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -0
  167. package/build/types/integrations/hono/resolveRouteName.d.ts +10 -0
  168. package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -0
  169. package/build/types/integrations/hono/types.d.ts +25 -0
  170. package/build/types/integrations/hono/types.d.ts.map +1 -0
  171. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts +9 -0
  172. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -0
  173. package/build/types/integrations/index.d.ts.map +1 -1
  174. package/build/types/integrations/openai-compatible.d.ts.map +1 -1
  175. package/build/types/integrations/openai.d.ts.map +1 -1
  176. package/build/types/orchestrion/bundler/bun.d.ts.map +1 -1
  177. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  178. package/build/types/orchestrion/bundler/rollup.d.ts +21 -0
  179. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  180. package/build/types/orchestrion/channels.d.ts +2 -0
  181. package/build/types/orchestrion/channels.d.ts.map +1 -1
  182. package/build/types/orchestrion/config/anthropic-ai.d.ts +2 -14
  183. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  184. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
  185. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  186. package/build/types/orchestrion/config/hono.d.ts +8 -0
  187. package/build/types/orchestrion/config/hono.d.ts.map +1 -0
  188. package/build/types/orchestrion/config/index.d.ts +1 -0
  189. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  190. package/build/types/orchestrion/config/mongodb.d.ts +2 -2
  191. package/build/types/orchestrion/config/openai-compatible.d.ts +2 -2
  192. package/build/types/orchestrion/config/openai.d.ts +1 -1
  193. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  194. package/build/types/orchestrion/config/remix-v3.d.ts +6 -0
  195. package/build/types/orchestrion/config/remix-v3.d.ts.map +1 -0
  196. package/build/types/utils/sql.d.ts.map +1 -1
  197. package/package.json +3 -3
@@ -0,0 +1,26 @@
1
+ import type { Env, Hono } from './honoTypes';
2
+ /** Whether the instance `app.request` Proxy is currently opening an internal-request span. */
3
+ export declare function isInternalRequestSpanActive(): boolean;
4
+ /**
5
+ * Derive the span-name path from an `app.request()` argument, mirroring Hono's own handling so the
6
+ * name matches the path actually dispatched, with the query/hash stripped so they can't leak into
7
+ * span names or inflate cardinality.
8
+ *
9
+ * Hono treats an absolute `http(s)://` input as a full URL and everything else as a path under
10
+ * `http://localhost` (see `hono-base`'s `request`). We prepend that same fixed host rather than
11
+ * resolving the string as a URL reference: resolution rewrites protocol-relative inputs
12
+ * (`//example.com/foo` → host `example.com`, dropping the segment Hono keeps in the path) and throws
13
+ * on inputs Hono accepts (`//`, `http:`). This runs before the underlying dispatch, so it must never
14
+ * throw — the `catch` is a final guard against any remaining malformed input.
15
+ */
16
+ export declare function extractPathname(input: unknown): string;
17
+ /**
18
+ * Patches `app.request()` on a Hono instance so that each internal dispatch
19
+ * is traced as an `http.server` span — child of whatever span is active at
20
+ * the call site.
21
+ *
22
+ * `.request()` is a class field (arrow function), so this must run per-instance.
23
+ * Idempotent: safe to call multiple times on the same instance.
24
+ */
25
+ export declare function patchAppRequest<E extends Env>(app: Hono<E>): void;
26
+ //# sourceMappingURL=patchAppRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAe7C,8FAA8F;AAC9F,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBtD;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAoDjE"}
@@ -0,0 +1,16 @@
1
+ import type { Env, Hono } from './honoTypes';
2
+ /**
3
+ * Patches `app.use` (instance own property) on a Hono instance to instrument middleware at registration time.
4
+ *
5
+ * Must be per-instance because `use` is a class field, not a prototype method.
6
+ * Idempotent.
7
+ */
8
+ export declare function patchAppUse<E extends Env>(app: Hono<E>): void;
9
+ /**
10
+ * Patches HTTP method class fields to instrument inline middleware at registration time.
11
+ *
12
+ * For `app.get('/path', mw1, mw2, handler)`, all handlers except the last are middleware and get wrapped with spans.
13
+ * The final handler (the route handler) is already covered by the root http.server transaction.
14
+ */
15
+ export declare function patchHttpMethodHandlers<E extends Env>(app: Hono<E>): void;
16
+ //# sourceMappingURL=patchAppUse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchAppUse.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppUse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAqB,MAAM,aAAa,CAAC;AAWhE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAqB7D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAiBzE"}
@@ -0,0 +1,35 @@
1
+ import type { Hono, HonoRoute } from './honoTypes';
2
+ export type { HonoRoute };
3
+ type HonoAny = Hono<any>;
4
+ export type RouteHookHandle = {
5
+ activate: () => void;
6
+ getPendingSubApps: () => Set<HonoAny>;
7
+ };
8
+ type HonoBaseProto = {
9
+ route?: (path: string, app: HonoAny) => HonoAny;
10
+ __sentryRouteHook__?: RouteHookHandle;
11
+ };
12
+ /**
13
+ * Installs a hook on `HonoBase.prototype.route` to intercept sub-app mounting.
14
+ *
15
+ * `honoBaseProto` is `HonoBase.prototype`, where `route` is defined — one level above the concrete
16
+ * subclass. Callers derive it from a live app instance (`Object.getPrototypeOf(Object.getPrototypeOf(app))`)
17
+ * or from the `Hono` class (`Object.getPrototypeOf(Hono.prototype)`), so the instrumentation never
18
+ * imports `hono` itself.
19
+ *
20
+ * Returns a handle with `activate()` and `getPendingSubApps()`.
21
+ * Idempotent: subsequent calls return the same handle
22
+ */
23
+ export declare function installRouteHookOnPrototype(honoBaseProto: HonoBaseProto): RouteHookHandle;
24
+ /**
25
+ * Identifies middleware handlers in a sub-app's flat routes array and wraps them in spans.
26
+ *
27
+ * Heuristics (since Hono has no "isMiddleware" flag):
28
+ * 1. Position: `app.get('/path', mw, handler)` produces entries with the same method+path.
29
+ * All but the LAST are middleware (they call `next()`).
30
+ * 2. Arity (# of params) for method 'ALL': `.use()` handlers always have 2+ params (context, next),
31
+ * while `.all()` route handlers typically have 1 (`context` only).
32
+ * See: https://github.com/honojs/hono/blob/18fe604c8cefc2628240651b1af219692e1918c1/src/hono-base.ts#L156-L168
33
+ */
34
+ export declare function wrapSubAppMiddleware(routes: HonoRoute[]): void;
35
+ //# sourceMappingURL=patchRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKnD,YAAY,EAAE,SAAS,EAAE,CAAC;AAG1B,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC,CAAC;AAiCF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAqCzF;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAmB9D"}
@@ -0,0 +1,10 @@
1
+ import type { Context } from './honoTypes';
2
+ /**
3
+ * Resolves the route path of the matched handler for the transaction name.
4
+ *
5
+ * Picking the handler (not just `routePath`) avoids two failure modes: a catch-all middleware
6
+ * registered after the handlers (`routePath(c, -1)` would return just `/*`), and a middleware that
7
+ * short-circuits before the handler runs (`routePath(c)` would return the middleware's path).
8
+ */
9
+ export declare function resolveRouteName(context: Context): string;
10
+ //# sourceMappingURL=resolveRouteName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRouteName.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/resolveRouteName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,MAAM,aAAa,CAAC;AAsBtD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAoBzD"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Middleware-specific options shared across all Hono runtime adapters.
3
+ * These options are distinct from the SDK initialization options (DSN, sample rates, etc.).
4
+ */
5
+ export interface SentryHonoMiddlewareOptions {
6
+ /**
7
+ * Determines whether a given Hono error thrown in the response should be captured and sent to Sentry.
8
+ *
9
+ * When not provided, the default behavior applies: 3xx and 4xx HTTP errors are
10
+ * considered expected and are not captured. All other errors are captured.
11
+ *
12
+ * @example
13
+ * // Capture everything, including 4xx errors:
14
+ * shouldHandleError: () => true
15
+ *
16
+ * @example
17
+ * // Capture only 5xx errors and suppress everything else:
18
+ * shouldHandleError: (err) => {
19
+ * const status = (err as { status?: number })?.status;
20
+ * return typeof status === 'number' ? status >= 500 : true;
21
+ * }
22
+ */
23
+ shouldHandleError?: (error: unknown) => boolean;
24
+ }
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CACjD"}
@@ -0,0 +1,9 @@
1
+ import { type MiddlewareHandler } from './honoTypes';
2
+ /**
3
+ * Wraps a Hono middleware handler so that its execution is traced as a Sentry span.
4
+ * Explicitly parents each span under the root (transaction) span so that all middleware
5
+ * spans are siblings — even when OTel instrumentation introduces nested active contexts
6
+ * (onion order: A → B → handler → B → A would otherwise nest B under A).
7
+ */
8
+ export declare function wrapMiddlewareWithSpan(handler: MiddlewareHandler): MiddlewareHandler;
9
+ //# sourceMappingURL=wrapMiddlewareSpan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CA8CpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAmCtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAmCtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai-compatible.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAA2C,MAAM,cAAc,CAAC;AAYzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAYD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,wBAAwB,EAClF,QAAQ,EAAE,CAAC,GACV,CAAC,OAAO,CAAC,EAAE,aAAa,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAAE,CA8B3E"}
1
+ {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai-compatible.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAA2C,MAAM,cAAc,CAAC;AAazF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAWD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,wBAAwB,EAClF,QAAQ,EAAE,CAAC,GACV,CAAC,OAAO,CAAC,EAAE,aAAa,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAAE,CAuC3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AAmIA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AA8IA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/bun.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,KAAK,aAAa,GAAG,GAAG,CAAC;AAQzB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,aAAa,CAsElF"}
1
+ {"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/bun.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,KAAK,aAAa,GAAG,GAAG,CAAC;AAQzB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,aAAa,CAuElF"}
@@ -1 +1 @@
1
- {"version":3,"file":"moduleInjectedTransform.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/moduleInjectedTransform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA4BnD;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,oIACqF,CAAC;AA6CpI;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wBAAwB,CAKtC,eAAe,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAoDjC"}
1
+ {"version":3,"file":"moduleInjectedTransform.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/moduleInjectedTransform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA4BnD;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,oIACqF,CAAC;AAoDpI;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wBAAwB,CAKtC,eAAe,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAoDjC"}
@@ -1,6 +1,27 @@
1
1
  import type { Plugin } from 'rollup';
2
2
  export type { Plugin as RollupPlugin } from 'rollup';
3
3
  import type { PluginOptions } from './options';
4
+ /**
5
+ * Structural subset of `@rollup/plugin-commonjs` options, so this package needs no dependency on
6
+ * the plugin for its types.
7
+ */
8
+ export interface CommonJSInteropOptions {
9
+ requireReturnsDefault: (id: string) => boolean | 'auto' | 'preferred' | 'namespace';
10
+ ignoreTryCatch: (id: string) => boolean;
11
+ }
12
+ /**
13
+ * `@rollup/plugin-commonjs` options for builds that bundle CommonJS packages while their
14
+ * dependencies stay external. Builtin `require()`s unwrap to the module (a namespace breaks
15
+ * direct calls) and convert inside `try` blocks (a bare `require` throws in ESM output).
16
+ * Externals keep `'auto'`, which {@link sentryCommonJSInteropPlugin} fixes for Node >= 23.
17
+ */
18
+ export declare function commonJSInteropOptions(): CommonJSInteropOptions;
19
+ /**
20
+ * Fixes `@rollup/plugin-commonjs`' `'auto'` interop for Node >= 23 by patching the broken
21
+ * namespace check in its helpers module. The patch applies only while the exact broken
22
+ * expression exists, so it retires itself once the plugin is fixed upstream.
23
+ */
24
+ export declare function sentryCommonJSInteropPlugin(): Plugin;
4
25
  /**
5
26
  * Rollup plugin that runs the orchestrion code transform on the bundled output.
6
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,MAAM,EAGP,MAAM,QAAQ,CAAC;AAEhB,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CA2D3E"}
1
+ {"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,MAAM,EAGP,MAAM,QAAQ,CAAC;AAEhB,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;IACpF,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CACzC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,sBAAsB,CAK/D;AAUD;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAUpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CA2D3E"}
@@ -68,6 +68,8 @@ export declare const CHANNELS: {
68
68
  readonly HAPI_EXT: 'orchestrion:@hapi/hapi:ext';
69
69
  readonly HAPI_START: 'orchestrion:@hapi/hapi:start';
70
70
  readonly HAPI_INITIALIZE: 'orchestrion:@hapi/hapi:initialize';
71
+ readonly HONO_CONTEXT: 'orchestrion:hono:context';
72
+ readonly HONO_REQUEST: 'orchestrion:hono:request';
71
73
  readonly IOREDIS_COMMAND: 'orchestrion:ioredis:command';
72
74
  readonly IOREDIS_CONNECT: 'orchestrion:ioredis:connect';
73
75
  readonly KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch';
@@ -1 +1 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAsCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -1,16 +1,4 @@
1
- export declare const anthropicAiConfig: ({
2
- channelName: string;
3
- module: {
4
- name: string;
5
- versionRange: string;
6
- filePath: string;
7
- };
8
- functionQuery: {
9
- className: string;
10
- methodName: string;
11
- kind: 'Auto';
12
- };
13
- } | {
1
+ export declare const anthropicAiConfig: {
14
2
  channelName: string;
15
3
  module: {
16
4
  name: string;
@@ -22,7 +10,7 @@ export declare const anthropicAiConfig: ({
22
10
  methodName: string;
23
11
  kind: 'Sync';
24
12
  };
25
- })[];
13
+ }[];
26
14
  export declare const anthropicAiModuleNames: string[];
27
15
  export declare const anthropicAiChannels: {
28
16
  readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
@@ -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;;;;;;;;;;QAiBzD,SAAS;QAAc,UAAU;QAAY,IAAI,EAAE,MAAM;;IAE3C,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;CAClE,CAAC"}
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;;GAmB3C,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;CAClE,CAAC"}
@@ -99,6 +99,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
99
99
  }, {
100
100
  readonly exportName: 'hapiIntegration';
101
101
  readonly modules: readonly ["@hapi/hapi"];
102
+ }, {
103
+ readonly exportName: 'honoIntegration';
104
+ readonly modules: readonly ["hono"];
102
105
  }, {
103
106
  readonly exportName: 'koaIntegration';
104
107
  readonly modules: readonly ["koa"];
@@ -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,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;;;yBAStB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
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,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;;;yBAStB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
@@ -0,0 +1,8 @@
1
+ import type { InstrumentationConfig } from '../apmTypes';
2
+ export declare const honoConfig: InstrumentationConfig[];
3
+ export declare const honoModuleNames: string[];
4
+ export declare const honoChannels: {
5
+ readonly HONO_CONTEXT: 'orchestrion:hono:context';
6
+ readonly HONO_REQUEST: 'orchestrion:hono:request';
7
+ };
8
+ //# sourceMappingURL=hono.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/hono.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAwBzD,eAAO,MAAM,UAAU,yBAA8D,CAAC;AAEtF,eAAO,MAAM,eAAe,UAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;aACvB,YAAY,EAAE,0BAA0B;aACxC,YAAY,EAAE,0BAA0B;CAChC,CAAC"}
@@ -83,4 +83,5 @@ export declare function getInstrumentedModuleNames(): string[];
83
83
  export declare function withoutInstrumentedExternals(external: readonly string[] | undefined, moduleNames?: string[]): string[] | undefined;
84
84
  export { nestjsChannels } from './nestjs';
85
85
  export { remixChannels } from './remix';
86
+ export { remixV3Channels } from './remix-v3';
86
87
  //# sourceMappingURL=index.d.ts.map
@@ -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;AA4CzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAsC1D,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"}
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;AA8CzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAwC1D,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;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
@@ -6,9 +6,9 @@ export declare const mongodbConfig: ({
6
6
  filePath: string;
7
7
  };
8
8
  functionQuery: {
9
+ functionName?: undefined;
9
10
  methodName: string;
10
11
  kind: "Async";
11
- functionName?: undefined;
12
12
  };
13
13
  } | {
14
14
  channelName: string;
@@ -18,9 +18,9 @@ export declare const mongodbConfig: ({
18
18
  filePath: string;
19
19
  };
20
20
  functionQuery: {
21
+ functionName?: undefined;
21
22
  methodName: string;
22
23
  kind: "Callback";
23
- functionName?: undefined;
24
24
  };
25
25
  } | {
26
26
  channelName: string;
@@ -3,8 +3,8 @@ import type { InstrumentationConfig } from '../apmTypes';
3
3
  * Many providers (Groq, Together, ...) ship a Stainless-generated SDK that mirrors the classic `openai`
4
4
  * file layout: `resources/chat/completions.{js,mjs}` (class `Completions`) and
5
5
  * `resources/embeddings.{js,mjs}` (class `Embeddings`), each with a `create(body, options)` that returns
6
- * a thenable `APIPromise` — so `kind: 'Auto'` resolves to `wrapPromise`, and a streaming call resolves to
7
- * the same OpenAI-style async-iterable `Stream` the openai integration already knows how to consume. These
6
+ * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.
7
+ * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These
8
8
  * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.
9
9
  *
10
10
  * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all
@@ -8,7 +8,7 @@ export declare const openaiConfig: {
8
8
  functionQuery: {
9
9
  className: string;
10
10
  methodName: string;
11
- kind: 'Auto';
11
+ kind: 'Sync';
12
12
  };
13
13
  }[];
14
14
  export declare const openaiModuleNames: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/openai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;QAOJ,SAAS;QAAiB,UAAU;QAAY,IAAI,EAAE,MAAM;;GAoB9C,CAAC;AAEpC,eAAO,MAAM,iBAAiB,UAA+B,CAAC;AAE9D,eAAO,MAAM,cAAc;aAGzB,WAAW,EAAE,yBAAyB;aACtC,iBAAiB,EAAE,+BAA+B;CAC1C,CAAC"}
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/openai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;QAKJ,SAAS;QAAiB,UAAU;QAAY,IAAI,EAAE,MAAM;;GAoB9C,CAAC;AAEpC,eAAO,MAAM,iBAAiB,UAA+B,CAAC;AAE9D,eAAO,MAAM,cAAc;aAGzB,WAAW,EAAE,yBAAyB;aACtC,iBAAiB,EAAE,+BAA+B;CAC1C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { InstrumentationConfig } from '../apmTypes';
2
+ export declare const remixV3Config: InstrumentationConfig[];
3
+ export declare const remixV3Channels: {
4
+ readonly REMIX_V3_CREATE_ROUTER: 'orchestrion:@remix-run/fetch-router:createRouter';
5
+ };
6
+ //# sourceMappingURL=remix-v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remix-v3.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/remix-v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAQzD,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAahD,CAAC;AAEF,eAAO,MAAM,eAAe;aAC1B,sBAAsB,EAAE,kDAAkD;CAClE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAmDhF;AAsED;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQxD;AAkJD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,UAAuB,GAAG,MAAM,CA0BvG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,CAAC,EAAE,UAAU,GACnB;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAGrE"}
1
+ {"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAmDhF;AAsED;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQxD;AAqJD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,UAAuB,GAAG,MAAM,CA0BvG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,CAAC,EAAE,UAAU,GACnB;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAGrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/server-utils",
3
- "version": "11.1.0",
3
+ "version": "11.2.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",
@@ -90,13 +90,13 @@
90
90
  "dependencies": {
91
91
  "@opentelemetry/api": "^1.9.1",
92
92
  "@sentry/conventions": "^0.24.0",
93
- "@sentry/core": "11.1.0"
93
+ "@sentry/core": "11.2.0"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@apm-js-collab/code-transformer-bundler-plugins": "^0.7.4",
97
97
  "@types/node": "^18.19.1",
98
98
  "meriyah": "^6.1.4",
99
- "vite": "^6.4.3"
99
+ "vite": "^8.3.1"
100
100
  },
101
101
  "scripts": {
102
102
  "build": "run-p build:transpile build:types",