autotel-adapters 2.1.0 → 3.0.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 (58) hide show
  1. package/README.md +21 -0
  2. package/dist/cloudflare.cjs +3 -9
  3. package/dist/cloudflare.d.cts +1 -1
  4. package/dist/cloudflare.d.ts +1 -1
  5. package/dist/cloudflare.js +3 -9
  6. package/dist/core.cjs +4 -2
  7. package/dist/core.d.cts +1 -1
  8. package/dist/core.d.ts +1 -1
  9. package/dist/core.js +4 -2
  10. package/dist/elysia.cjs +4 -2
  11. package/dist/elysia.d.cts +3 -1
  12. package/dist/elysia.d.ts +3 -1
  13. package/dist/elysia.js +4 -2
  14. package/dist/express.cjs +16 -4
  15. package/dist/express.d.cts +1 -1
  16. package/dist/express.d.ts +1 -1
  17. package/dist/express.js +16 -4
  18. package/dist/fastify.cjs +6 -4
  19. package/dist/fastify.d.cts +1 -1
  20. package/dist/fastify.d.ts +1 -1
  21. package/dist/fastify.js +6 -4
  22. package/dist/hono.cjs +17 -3
  23. package/dist/hono.d.cts +1 -1
  24. package/dist/hono.d.ts +1 -1
  25. package/dist/hono.js +17 -3
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.cts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/{integration-CQMpu5E4.d.ts → integration-B6OoKr7O.d.ts} +23 -3
  31. package/dist/{integration-D9g_qI5y.d.cts → integration-CwqWnPKn.d.cts} +23 -3
  32. package/dist/{integration-jKj-jgtX.js → integration-D_ABolGu.js} +64 -16
  33. package/dist/{integration-rv0DU916.cjs → integration-Danzss1R.cjs} +74 -14
  34. package/dist/nestjs.cjs +13 -15
  35. package/dist/nestjs.d.cts +9 -1
  36. package/dist/nestjs.d.ts +9 -1
  37. package/dist/nestjs.js +13 -15
  38. package/dist/next.cjs +3 -9
  39. package/dist/next.d.cts +1 -1
  40. package/dist/next.d.ts +1 -1
  41. package/dist/next.js +3 -9
  42. package/dist/nitro.cjs +9 -3
  43. package/dist/nitro.d.cts +9 -2
  44. package/dist/nitro.d.ts +9 -2
  45. package/dist/nitro.js +9 -3
  46. package/dist/sveltekit.cjs +4 -2
  47. package/dist/sveltekit.d.cts +1 -1
  48. package/dist/sveltekit.d.ts +1 -1
  49. package/dist/sveltekit.js +4 -2
  50. package/dist/tanstack.cjs +2 -1
  51. package/dist/tanstack.d.cts +2 -0
  52. package/dist/tanstack.d.ts +2 -0
  53. package/dist/tanstack.js +2 -1
  54. package/dist/toolkit/index.cjs +1 -1
  55. package/dist/toolkit/index.d.cts +1 -1
  56. package/dist/toolkit/index.d.ts +1 -1
  57. package/dist/toolkit/index.js +1 -1
  58. package/package.json +7 -7
package/dist/nestjs.js CHANGED
@@ -1,18 +1,21 @@
1
- import { i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-jKj-jgtX.js";
1
+ import { a as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-D_ABolGu.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { Observable, from, isObservable } from "rxjs";
5
5
 
6
6
  //#region src/nestjs.ts
7
+ function routeTemplate(request) {
8
+ return request.route?.path ?? request.routeOptions?.url;
9
+ }
7
10
  const { storage: nestLoggerStorage, useLogger: storageUseLogger } = createLoggerStorage("request context. Register AutotelInterceptor globally or on controllers.");
8
11
  function enrichFromRequest(request) {
9
12
  if (!request) return void 0;
10
13
  const url = request.originalUrl ?? request.url;
11
- const route = request.path ?? url;
12
14
  return {
13
15
  "http.request.method": request.method,
14
16
  "url.full": url,
15
- "http.route": route
17
+ "url.path": request.path,
18
+ "http.route": routeTemplate(request)
16
19
  };
17
20
  }
18
21
  const integration = defineFrameworkIntegration({
@@ -24,14 +27,11 @@ const integration = defineFrameworkIntegration({
24
27
  return {
25
28
  method: request.method ?? "GET",
26
29
  path,
30
+ route: routeTemplate(request),
27
31
  headers: request.headers
28
32
  };
29
33
  },
30
- attachLogger: () => {},
31
- spanName: (executionCtx) => {
32
- const handler = executionCtx.getHandler().name;
33
- return `nestjs.${executionCtx.getClass().name}.${handler}`;
34
- }
34
+ attachLogger: () => {}
35
35
  });
36
36
  function useLogger() {
37
37
  return storageUseLogger();
@@ -49,7 +49,7 @@ var AutotelInterceptor = class {
49
49
  integration.runTraced(executionCtx, this.options, async (handle) => {
50
50
  if (!handle.skipped) {
51
51
  const request = executionCtx.switchToHttp().getRequest();
52
- applyLoggerEnrichment(handle.logger, enrichFromRequest(request), this.options.enrichRequest?.(request));
52
+ applyLoggerEnrichment(handle.logger, enrichFromRequest(request), { "code.function.name": `${executionCtx.getClass().name}.${executionCtx.getHandler().name}` }, this.options.enrichRequest?.(request));
53
53
  }
54
54
  await handle.runWith(() => new Promise((resolve, reject) => {
55
55
  let settled = false;
@@ -57,12 +57,10 @@ var AutotelInterceptor = class {
57
57
  if (settled) return;
58
58
  settled = true;
59
59
  try {
60
- if (!handle.skipped && this.options.autoEmit !== false) {
61
- if (error !== void 0) await handle.finish({ error: error instanceof Error ? error : new Error(String(error)) });
62
- else {
63
- const response = executionCtx.switchToHttp().getResponse();
64
- await handle.finish({ status: response.statusCode });
65
- }
60
+ if (!handle.skipped) {
61
+ const outcome = error === void 0 ? { status: executionCtx.switchToHttp().getResponse().statusCode } : { error: error instanceof Error ? error : new Error(String(error)) };
62
+ if (this.options.autoEmit === false) handle.markOutcome(outcome);
63
+ else await handle.finish(outcome);
66
64
  }
67
65
  } catch (finishError) {
68
66
  reject(finishError);
package/dist/next.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require("./integration-rv0DU916.cjs");
2
+ const require_integration = require("./integration-Danzss1R.cjs");
3
3
  const require_toolkit_storage = require("./toolkit/storage.cjs");
4
4
  const require_core = require("./core.cjs");
5
5
  let autotel = require("autotel");
@@ -25,17 +25,11 @@ function isRealNextError(cause) {
25
25
  const { storage: nextLoggerStorage, useLogger: storageUseLogger } = require_toolkit_storage.createLoggerStorage("request context. Wrap handlers with withAutotel() first.");
26
26
  function enrichFromRequest(request) {
27
27
  if (!request) return void 0;
28
- let route = "/";
29
- if (request.url) try {
30
- route = new URL(request.url).pathname;
31
- } catch {
32
- route = request.url;
33
- }
34
28
  const requestId = require_core.getHeader(request.headers, "x-request-id");
35
29
  return {
36
30
  "http.request.method": request.method,
37
31
  "url.full": request.url,
38
- "http.route": route,
32
+ "url.path": resolvePath(request),
39
33
  ...requestId ? { "http.request.header.x-request-id": requestId } : {}
40
34
  };
41
35
  }
@@ -71,7 +65,7 @@ const integration = require_integration.defineFrameworkIntegration({
71
65
  });
72
66
  function resolveSpanName(request, options) {
73
67
  if (typeof options?.spanName === "function") return options.spanName(request);
74
- return options?.spanName ?? "next.request";
68
+ return options?.spanName;
75
69
  }
76
70
  function withAutotel(handler, options) {
77
71
  return async (...args) => {
package/dist/next.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CwqWnPKn.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/next.d.ts
package/dist/next.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-B6OoKr7O.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/next.d.ts
package/dist/next.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-jKj-jgtX.js";
1
+ import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-D_ABolGu.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createUseLogger, getHeader } from "./core.js";
4
4
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
@@ -24,17 +24,11 @@ function isRealNextError(cause) {
24
24
  const { storage: nextLoggerStorage, useLogger: storageUseLogger } = createLoggerStorage("request context. Wrap handlers with withAutotel() first.");
25
25
  function enrichFromRequest(request) {
26
26
  if (!request) return void 0;
27
- let route = "/";
28
- if (request.url) try {
29
- route = new URL(request.url).pathname;
30
- } catch {
31
- route = request.url;
32
- }
33
27
  const requestId = getHeader(request.headers, "x-request-id");
34
28
  return {
35
29
  "http.request.method": request.method,
36
30
  "url.full": request.url,
37
- "http.route": route,
31
+ "url.path": resolvePath(request),
38
32
  ...requestId ? { "http.request.header.x-request-id": requestId } : {}
39
33
  };
40
34
  }
@@ -70,7 +64,7 @@ const integration = defineFrameworkIntegration({
70
64
  });
71
65
  function resolveSpanName(request, options) {
72
66
  if (typeof options?.spanName === "function") return options.spanName(request);
73
- return options?.spanName ?? "next.request";
67
+ return options?.spanName;
74
68
  }
75
69
  function withAutotel(handler, options) {
76
70
  return async (...args) => {
package/dist/nitro.cjs CHANGED
@@ -1,15 +1,20 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require("./integration-rv0DU916.cjs");
2
+ const require_integration = require("./integration-Danzss1R.cjs");
3
3
  const require_toolkit_storage = require("./toolkit/storage.cjs");
4
4
  const require_core = require("./core.cjs");
5
5
  let autotel = require("autotel");
6
6
 
7
7
  //#region src/nitro.ts
8
+ function matchedRoute(event) {
9
+ const matched = event.context?.matchedRoute;
10
+ return matched?.route ?? matched?.path;
11
+ }
8
12
  function enrichFromEvent(event) {
9
13
  if (!event) return void 0;
10
14
  return {
11
15
  "http.request.method": event.method,
12
- "http.route": event.path,
16
+ "url.path": event.path,
17
+ "http.route": matchedRoute(event),
13
18
  ...typeof event.context?.requestId === "string" ? { "http.request.id": event.context.requestId } : {}
14
19
  };
15
20
  }
@@ -35,13 +40,14 @@ const integration = require_integration.defineFrameworkIntegration({
35
40
  extractRequest: (event) => ({
36
41
  method: event.method ?? "GET",
37
42
  path: event.path ?? "/",
43
+ route: matchedRoute(event),
38
44
  requestId: typeof event.context?.requestId === "string" ? event.context.requestId : void 0
39
45
  }),
40
46
  attachLogger: () => {}
41
47
  });
42
48
  function resolveSpanName(event, options) {
43
49
  if (typeof options?.spanName === "function") return options.spanName(event);
44
- return options?.spanName ?? `nitro.${event.method ?? "request"}`;
50
+ return options?.spanName;
45
51
  }
46
52
  function withAutotelEventHandler(handler, options) {
47
53
  return async (event) => integration.runTraced(event, require_integration.buildTracedOptions(options, resolveSpanName(event, options)), async (handle) => require_integration.runWithIntegratedHandle(handle, options, async () => {
package/dist/nitro.d.cts CHANGED
@@ -1,11 +1,18 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CwqWnPKn.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/nitro.d.ts
5
5
  export interface NitroEventLike {
6
6
  method?: string;
7
7
  path?: string;
8
- context?: Record<string, unknown>;
8
+ context?: {
9
+ /** h3 v1 sets `path`, h3 v2 sets `route`. */
10
+ matchedRoute?: {
11
+ path?: string;
12
+ route?: string;
13
+ };
14
+ [key: string]: unknown;
15
+ };
9
16
  }
10
17
  export interface NitroWithAutotelOptions extends Omit<FrameworkHandlerOptions, 'spanName'> {
11
18
  spanName?: string | ((event: NitroEventLike) => string);
package/dist/nitro.d.ts CHANGED
@@ -1,11 +1,18 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-B6OoKr7O.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/nitro.d.ts
5
5
  export interface NitroEventLike {
6
6
  method?: string;
7
7
  path?: string;
8
- context?: Record<string, unknown>;
8
+ context?: {
9
+ /** h3 v1 sets `path`, h3 v2 sets `route`. */
10
+ matchedRoute?: {
11
+ path?: string;
12
+ route?: string;
13
+ };
14
+ [key: string]: unknown;
15
+ };
9
16
  }
10
17
  export interface NitroWithAutotelOptions extends Omit<FrameworkHandlerOptions, 'spanName'> {
11
18
  spanName?: string | ((event: NitroEventLike) => string);
package/dist/nitro.js CHANGED
@@ -1,14 +1,19 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-jKj-jgtX.js";
1
+ import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-D_ABolGu.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createUseLogger } from "./core.js";
4
4
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
5
5
 
6
6
  //#region src/nitro.ts
7
+ function matchedRoute(event) {
8
+ const matched = event.context?.matchedRoute;
9
+ return matched?.route ?? matched?.path;
10
+ }
7
11
  function enrichFromEvent(event) {
8
12
  if (!event) return void 0;
9
13
  return {
10
14
  "http.request.method": event.method,
11
- "http.route": event.path,
15
+ "url.path": event.path,
16
+ "http.route": matchedRoute(event),
12
17
  ...typeof event.context?.requestId === "string" ? { "http.request.id": event.context.requestId } : {}
13
18
  };
14
19
  }
@@ -34,13 +39,14 @@ const integration = defineFrameworkIntegration({
34
39
  extractRequest: (event) => ({
35
40
  method: event.method ?? "GET",
36
41
  path: event.path ?? "/",
42
+ route: matchedRoute(event),
37
43
  requestId: typeof event.context?.requestId === "string" ? event.context.requestId : void 0
38
44
  }),
39
45
  attachLogger: () => {}
40
46
  });
41
47
  function resolveSpanName(event, options) {
42
48
  if (typeof options?.spanName === "function") return options.spanName(event);
43
- return options?.spanName ?? `nitro.${event.method ?? "request"}`;
49
+ return options?.spanName;
44
50
  }
45
51
  function withAutotelEventHandler(handler, options) {
46
52
  return async (event) => integration.runTraced(event, buildTracedOptions(options, resolveSpanName(event, options)), async (handle) => runWithIntegratedHandle(handle, options, async () => {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require("./integration-rv0DU916.cjs");
2
+ const require_integration = require("./integration-Danzss1R.cjs");
3
3
  const require_toolkit_storage = require("./toolkit/storage.cjs");
4
4
  let autotel = require("autotel");
5
5
 
@@ -10,7 +10,8 @@ function enrichFromEvent(event) {
10
10
  return {
11
11
  "http.request.method": event.request.method,
12
12
  "url.full": event.url.toString(),
13
- "http.route": event.route?.id ?? event.url.pathname,
13
+ "url.path": event.url.pathname,
14
+ "http.route": event.route?.id ?? void 0,
14
15
  ...event.request.headers.get("x-request-id") ? { "http.request.id": event.request.headers.get("x-request-id") } : {}
15
16
  };
16
17
  }
@@ -20,6 +21,7 @@ const integration = require_integration.defineFrameworkIntegration({
20
21
  extractRequest: (event) => ({
21
22
  method: event.request.method,
22
23
  path: event.url.pathname,
24
+ route: event.route?.id ?? void 0,
23
25
  headers: event.request.headers,
24
26
  requestId: event.request.headers.get("x-request-id") ?? void 0
25
27
  }),
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CwqWnPKn.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/sveltekit.d.ts
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-B6OoKr7O.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/sveltekit.d.ts
package/dist/sveltekit.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-jKj-jgtX.js";
1
+ import { a as defineFrameworkIntegration, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-D_ABolGu.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
 
@@ -9,7 +9,8 @@ function enrichFromEvent(event) {
9
9
  return {
10
10
  "http.request.method": event.request.method,
11
11
  "url.full": event.url.toString(),
12
- "http.route": event.route?.id ?? event.url.pathname,
12
+ "url.path": event.url.pathname,
13
+ "http.route": event.route?.id ?? void 0,
13
14
  ...event.request.headers.get("x-request-id") ? { "http.request.id": event.request.headers.get("x-request-id") } : {}
14
15
  };
15
16
  }
@@ -19,6 +20,7 @@ const integration = defineFrameworkIntegration({
19
20
  extractRequest: (event) => ({
20
21
  method: event.request.method,
21
22
  path: event.url.pathname,
23
+ route: event.route?.id ?? void 0,
22
24
  headers: event.request.headers,
23
25
  requestId: event.request.headers.get("x-request-id") ?? void 0
24
26
  }),
package/dist/tanstack.cjs CHANGED
@@ -6,7 +6,8 @@ const useLogger = require_core.createUseLogger({
6
6
  adapterName: "tanstack",
7
7
  enrich: (ctx) => ({
8
8
  "http.request.method": ctx.method,
9
- "http.route": ctx.pathname
9
+ "url.path": ctx.pathname,
10
+ "http.route": ctx.route
10
11
  })
11
12
  });
12
13
 
@@ -2,5 +2,7 @@
2
2
  export declare const useLogger: (context?: {
3
3
  pathname?: string;
4
4
  method?: string;
5
+ /** Matched route template (TanStack's `routeId`, e.g. `/posts/$postId`). */
6
+ route?: string;
5
7
  } | undefined, requestLoggerOptions?: import("autotel").RequestLoggerOptions) => import("autotel").RequestLogger;
6
8
  //#endregion
@@ -2,5 +2,7 @@
2
2
  export declare const useLogger: (context?: {
3
3
  pathname?: string;
4
4
  method?: string;
5
+ /** Matched route template (TanStack's `routeId`, e.g. `/posts/$postId`). */
6
+ route?: string;
5
7
  } | undefined, requestLoggerOptions?: import("autotel").RequestLoggerOptions) => import("autotel").RequestLogger;
6
8
  //#endregion
package/dist/tanstack.js CHANGED
@@ -5,7 +5,8 @@ const useLogger = createUseLogger({
5
5
  adapterName: "tanstack",
6
6
  enrich: (ctx) => ({
7
7
  "http.request.method": ctx.method,
8
- "http.route": ctx.pathname
8
+ "url.path": ctx.pathname,
9
+ "http.route": ctx.route
9
10
  })
10
11
  });
11
12
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require("../integration-rv0DU916.cjs");
2
+ const require_integration = require("../integration-Danzss1R.cjs");
3
3
  const require_toolkit_storage = require("./storage.cjs");
4
4
  let autotel_edge = require("autotel-edge");
5
5
 
@@ -1,4 +1,4 @@
1
- import { C as matchesRoutePattern, S as getServiceForPath, T as shouldInstrumentPath, _ as RouteAdapterOptions, a as FrameworkRequestHandle, b as TailSamplingContext, c as buildTracedOptions, d as runWithIntegratedHandle, f as toRouteAdapterOptions, g as MiddlewareLoggerResult, h as MiddlewareLoggerOptions, i as FrameworkIntegrationSpec, l as completeIntegratedRequest, m as ForkLifecycle, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions, p as BaseAdapterOptions, r as FrameworkIntegrationHelpers, s as applyLoggerEnrichment, t as ExtractedRequest, u as defineFrameworkIntegration, v as RouteFilterOptions, w as mergeRequestLoggerOptions, x as createMiddlewareLogger, y as RouteServiceConfig } from "../integration-D9g_qI5y.cjs";
1
+ import { C as matchesRoutePattern, S as getServiceForPath, T as shouldInstrumentPath, _ as RouteAdapterOptions, a as FrameworkRequestHandle, b as TailSamplingContext, c as buildTracedOptions, d as runWithIntegratedHandle, f as toRouteAdapterOptions, g as MiddlewareLoggerResult, h as MiddlewareLoggerOptions, i as FrameworkIntegrationSpec, l as completeIntegratedRequest, m as ForkLifecycle, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions, p as BaseAdapterOptions, r as FrameworkIntegrationHelpers, s as applyLoggerEnrichment, t as ExtractedRequest, u as defineFrameworkIntegration, v as RouteFilterOptions, w as mergeRequestLoggerOptions, x as createMiddlewareLogger, y as RouteServiceConfig } from "../integration-CwqWnPKn.cjs";
2
2
  import { createLoggerStorage, createStorageForkLifecycle } from "./storage.cjs";
3
3
  import { ForkLifecycle as ForkLifecycle$1, RequestLogger } from "autotel";
4
4
  //#region src/toolkit/deferred-drain.d.ts
@@ -1,4 +1,4 @@
1
- import { C as matchesRoutePattern, S as getServiceForPath, T as shouldInstrumentPath, _ as RouteAdapterOptions, a as FrameworkRequestHandle, b as TailSamplingContext, c as buildTracedOptions, d as runWithIntegratedHandle, f as toRouteAdapterOptions, g as MiddlewareLoggerResult, h as MiddlewareLoggerOptions, i as FrameworkIntegrationSpec, l as completeIntegratedRequest, m as ForkLifecycle, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions, p as BaseAdapterOptions, r as FrameworkIntegrationHelpers, s as applyLoggerEnrichment, t as ExtractedRequest, u as defineFrameworkIntegration, v as RouteFilterOptions, w as mergeRequestLoggerOptions, x as createMiddlewareLogger, y as RouteServiceConfig } from "../integration-CQMpu5E4.js";
1
+ import { C as matchesRoutePattern, S as getServiceForPath, T as shouldInstrumentPath, _ as RouteAdapterOptions, a as FrameworkRequestHandle, b as TailSamplingContext, c as buildTracedOptions, d as runWithIntegratedHandle, f as toRouteAdapterOptions, g as MiddlewareLoggerResult, h as MiddlewareLoggerOptions, i as FrameworkIntegrationSpec, l as completeIntegratedRequest, m as ForkLifecycle, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions, p as BaseAdapterOptions, r as FrameworkIntegrationHelpers, s as applyLoggerEnrichment, t as ExtractedRequest, u as defineFrameworkIntegration, v as RouteFilterOptions, w as mergeRequestLoggerOptions, x as createMiddlewareLogger, y as RouteServiceConfig } from "../integration-B6OoKr7O.js";
2
2
  import { createLoggerStorage, createStorageForkLifecycle } from "./storage.js";
3
3
  import { ForkLifecycle as ForkLifecycle$1, RequestLogger } from "autotel";
4
4
  //#region src/toolkit/deferred-drain.d.ts
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, c as createMiddlewareLogger, d as mergeRequestLoggerOptions, f as shouldInstrumentPath, g as extendDeferredDrain, h as shouldDeferEmitForResponse, i as defineFrameworkIntegration, l as getServiceForPath, m as isStreamingResponse, n as buildTracedOptions, o as toRouteAdapterOptions, p as bindStreamingResponseLifecycle, r as completeIntegratedRequest, s as attachForkToLogger, t as applyLoggerEnrichment, u as matchesRoutePattern } from "../integration-jKj-jgtX.js";
1
+ import { _ as shouldDeferEmitForResponse, a as defineFrameworkIntegration, c as attachForkToLogger, f as matchesRoutePattern, g as isStreamingResponse, h as bindStreamingResponseLifecycle, l as createMiddlewareLogger, m as shouldInstrumentPath, n as buildTracedOptions, o as runWithIntegratedHandle, p as mergeRequestLoggerOptions, r as completeIntegratedRequest, s as toRouteAdapterOptions, t as applyLoggerEnrichment, u as getServiceForPath, v as extendDeferredDrain } from "../integration-D_ABolGu.js";
2
2
  import { createLoggerStorage, createStorageForkLifecycle } from "./storage.js";
3
3
 
4
4
  export { applyLoggerEnrichment, attachForkToLogger, bindStreamingResponseLifecycle, buildTracedOptions, completeIntegratedRequest, createLoggerStorage, createMiddlewareLogger, createStorageForkLifecycle, defineFrameworkIntegration, extendDeferredDrain, getServiceForPath, isStreamingResponse, matchesRoutePattern, mergeRequestLoggerOptions, runWithIntegratedHandle, shouldDeferEmitForResponse, shouldInstrumentPath, toRouteAdapterOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-adapters",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Framework adapters and composable DX helpers for autotel",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -91,15 +91,15 @@
91
91
  "NOTICE"
92
92
  ],
93
93
  "dependencies": {
94
- "autotel": "8.4.0",
94
+ "autotel": "8.5.0",
95
95
  "autotel-edge": "6.1.3"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "hono": ">=4.13.13",
99
- "@tanstack/react-start": "^1.168.61",
100
- "@tanstack/solid-start": "^1.168.58",
101
- "next": ">=16.4.0",
102
- "h3": "^2.0.2",
99
+ "@tanstack/react-start": "^1.169.3",
100
+ "@tanstack/solid-start": "^1.169.3",
101
+ "next": ">=16.4.2",
102
+ "h3": "^2.0.5",
103
103
  "nitropack": "^2.13.4",
104
104
  "rxjs": ">=7.8.2"
105
105
  },
@@ -133,7 +133,7 @@
133
133
  "rxjs": "^7.8.2",
134
134
  "tsdown": "^0.23.1",
135
135
  "typescript": "^7.0.2",
136
- "vitest": "^5.0.4"
136
+ "vitest": "^5.0.5"
137
137
  },
138
138
  "repository": {
139
139
  "type": "git",