autotel-adapters 2.0.8 → 2.0.10

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 (55) hide show
  1. package/dist/cloudflare.cjs +8 -8
  2. package/dist/cloudflare.d.cts +1 -1
  3. package/dist/cloudflare.d.ts +1 -1
  4. package/dist/cloudflare.js +8 -8
  5. package/dist/core.cjs +3 -3
  6. package/dist/core.d.cts +1 -1
  7. package/dist/core.d.ts +1 -1
  8. package/dist/core.js +4 -4
  9. package/dist/elysia.cjs +2 -2
  10. package/dist/elysia.d.cts +1 -1
  11. package/dist/elysia.d.ts +1 -1
  12. package/dist/elysia.js +2 -2
  13. package/dist/express.cjs +5 -5
  14. package/dist/express.d.cts +1 -1
  15. package/dist/express.d.ts +1 -1
  16. package/dist/express.js +5 -5
  17. package/dist/fastify.cjs +5 -5
  18. package/dist/fastify.d.cts +1 -1
  19. package/dist/fastify.d.ts +1 -1
  20. package/dist/fastify.js +5 -5
  21. package/dist/hono.cjs +1 -1
  22. package/dist/hono.d.cts +1 -1
  23. package/dist/hono.d.ts +1 -1
  24. package/dist/hono.js +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.cts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/{integration-BAs5uTiD.d.ts → integration-CQMpu5E4.d.ts} +1 -1
  30. package/dist/{integration-DvibHRzI.js → integration-CfkaoVmE.js} +8 -7
  31. package/dist/{integration-D_rlU8Nx.d.cts → integration-D9g_qI5y.d.cts} +1 -1
  32. package/dist/{integration-Cc8bXel_.cjs → integration-pKawIXb6.cjs} +7 -6
  33. package/dist/nestjs.cjs +6 -6
  34. package/dist/nestjs.d.cts +1 -1
  35. package/dist/nestjs.d.ts +1 -1
  36. package/dist/nestjs.js +6 -6
  37. package/dist/next.cjs +8 -8
  38. package/dist/next.d.cts +1 -1
  39. package/dist/next.d.ts +1 -1
  40. package/dist/next.js +8 -8
  41. package/dist/nitro.cjs +3 -3
  42. package/dist/nitro.d.cts +1 -1
  43. package/dist/nitro.d.ts +1 -1
  44. package/dist/nitro.js +3 -3
  45. package/dist/sveltekit.cjs +1 -1
  46. package/dist/sveltekit.d.cts +1 -1
  47. package/dist/sveltekit.d.ts +1 -1
  48. package/dist/sveltekit.js +1 -1
  49. package/dist/tanstack.cjs +2 -2
  50. package/dist/tanstack.js +2 -2
  51. package/dist/toolkit/index.cjs +1 -1
  52. package/dist/toolkit/index.d.cts +1 -1
  53. package/dist/toolkit/index.d.ts +1 -1
  54. package/dist/toolkit/index.js +1 -1
  55. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_core = require('./core.cjs');
4
4
  let autotel = require("autotel");
5
5
 
@@ -15,13 +15,13 @@ function enrichFromRequest(request) {
15
15
  }
16
16
  const requestId = require_core.getHeader(request.headers, "x-request-id") ?? require_core.getHeader(request.headers, "cf-ray");
17
17
  return {
18
- ...request.method ? { "http.request.method": request.method } : {},
19
- ...request.url ? { "url.full": request.url } : {},
20
- ...route ? { "http.route": route } : {},
21
- ...requestId ? { "http.request.id": requestId } : {},
22
- ...request.cf?.country ? { "cloudflare.country": request.cf.country } : {},
23
- ...request.cf?.colo ? { "cloudflare.colo": request.cf.colo } : {},
24
- ...request.cf?.city ? { "cloudflare.city": request.cf.city } : {}
18
+ "http.request.method": request.method,
19
+ "url.full": request.url,
20
+ "http.route": route,
21
+ "http.request.id": requestId,
22
+ "cloudflare.country": request.cf?.country,
23
+ "cloudflare.colo": request.cf?.colo,
24
+ "cloudflare.city": request.cf?.city
25
25
  };
26
26
  }
27
27
  const baseUseLogger = require_core.createUseLogger({
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/cloudflare.d.ts
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/cloudflare.d.ts
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-DvibHRzI.js";
1
+ import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.js";
2
2
  import { createUseLogger, getHeader } from "./core.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
 
@@ -14,13 +14,13 @@ function enrichFromRequest(request) {
14
14
  }
15
15
  const requestId = getHeader(request.headers, "x-request-id") ?? getHeader(request.headers, "cf-ray");
16
16
  return {
17
- ...request.method ? { "http.request.method": request.method } : {},
18
- ...request.url ? { "url.full": request.url } : {},
19
- ...route ? { "http.route": route } : {},
20
- ...requestId ? { "http.request.id": requestId } : {},
21
- ...request.cf?.country ? { "cloudflare.country": request.cf.country } : {},
22
- ...request.cf?.colo ? { "cloudflare.colo": request.cf.colo } : {},
23
- ...request.cf?.city ? { "cloudflare.city": request.cf.city } : {}
17
+ "http.request.method": request.method,
18
+ "url.full": request.url,
19
+ "http.route": route,
20
+ "http.request.id": requestId,
21
+ "cloudflare.country": request.cf?.country,
22
+ "cloudflare.colo": request.cf?.colo,
23
+ "cloudflare.city": request.cf?.city
24
24
  };
25
25
  }
26
26
  const baseUseLogger = createUseLogger({
package/dist/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  let autotel = require("autotel");
4
4
  let autotel_edge = require("autotel-edge");
5
5
 
@@ -29,7 +29,7 @@ function createRequestRunner(storage) {
29
29
  return function runRequest(spanName, enrich, handler, options) {
30
30
  if (options?.path && !(0, autotel_edge.shouldInstrumentPath)(options.path, options)) return Promise.resolve(handler());
31
31
  const loggerOptions = require_integration.mergeRequestLoggerOptions(options?.requestLoggerOptions, options?.waitUntil);
32
- return (0, autotel.withTracing)({ name: spanName })((ctx) => async () => {
32
+ return autotel.trace.run(spanName, async (ctx) => {
33
33
  const log = (0, autotel.getRequestLogger)(ctx, loggerOptions);
34
34
  enrich(log);
35
35
  try {
@@ -40,7 +40,7 @@ function createRequestRunner(storage) {
40
40
  } finally {
41
41
  if (options?.autoEmit !== false) log.emitNow(options?.finalize?.());
42
42
  }
43
- })();
43
+ });
44
44
  };
45
45
  }
46
46
  function resolveEnv(envKeys) {
package/dist/core.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from "autotel";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  //#region src/core.d.ts
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-BAs5uTiD.js";
1
+ import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-CQMpu5E4.js";
2
2
  import { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from "autotel";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  //#region src/core.d.ts
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as mergeRequestLoggerOptions, f as shouldInstrumentPath, o as toRouteAdapterOptions } from "./integration-DvibHRzI.js";
2
- import { getRequestLogger, withTracing } from "autotel";
1
+ import { d as mergeRequestLoggerOptions, f as shouldInstrumentPath, o as toRouteAdapterOptions } from "./integration-CfkaoVmE.js";
2
+ import { getRequestLogger, trace } from "autotel";
3
3
 
4
4
  //#region src/core.ts
5
5
  function createUseLogger(options) {
@@ -27,7 +27,7 @@ function createRequestRunner(storage) {
27
27
  return function runRequest(spanName, enrich, handler, options) {
28
28
  if (options?.path && !shouldInstrumentPath(options.path, options)) return Promise.resolve(handler());
29
29
  const loggerOptions = mergeRequestLoggerOptions(options?.requestLoggerOptions, options?.waitUntil);
30
- return withTracing({ name: spanName })((ctx) => async () => {
30
+ return trace.run(spanName, async (ctx) => {
31
31
  const log = getRequestLogger(ctx, loggerOptions);
32
32
  enrich(log);
33
33
  try {
@@ -38,7 +38,7 @@ function createRequestRunner(storage) {
38
38
  } finally {
39
39
  if (options?.autoEmit !== false) log.emitNow(options?.finalize?.());
40
40
  }
41
- })();
41
+ });
42
42
  };
43
43
  }
44
44
  function resolveEnv(envKeys) {
package/dist/elysia.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.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");
@@ -13,7 +13,7 @@ function enrichFromContext(ctx) {
13
13
  "http.request.method": ctx.request.method,
14
14
  "url.full": ctx.request.url,
15
15
  "http.route": ctx.path,
16
- ...requestId ? { "http.request.id": requestId } : {}
16
+ "http.request.id": requestId
17
17
  };
18
18
  }
19
19
  const integration = require_integration.defineFrameworkIntegration({
package/dist/elysia.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/elysia.d.ts
package/dist/elysia.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/elysia.d.ts
package/dist/elysia.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-DvibHRzI.js";
1
+ import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { getHeader } from "./core.js";
4
4
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
@@ -12,7 +12,7 @@ function enrichFromContext(ctx) {
12
12
  "http.request.method": ctx.request.method,
13
13
  "url.full": ctx.request.url,
14
14
  "http.route": ctx.path,
15
- ...requestId ? { "http.request.id": requestId } : {}
15
+ "http.request.id": requestId
16
16
  };
17
17
  }
18
18
  const integration = defineFrameworkIntegration({
package/dist/express.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_core = require('./core.cjs');
4
4
  let autotel = require("autotel");
5
5
  let node_async_hooks = require("node:async_hooks");
@@ -18,10 +18,10 @@ function enrichFromRequest(request) {
18
18
  const route = request.route?.path ?? request.path ?? url;
19
19
  const requestId = headerValue(request.headers, "x-request-id");
20
20
  return {
21
- ...request.method ? { "http.request.method": request.method } : {},
22
- ...url ? { "url.full": url } : {},
23
- ...route ? { "http.route": route } : {},
24
- ...requestId ? { "http.request.id": requestId } : {}
21
+ "http.request.method": request.method,
22
+ "url.full": url,
23
+ "http.route": route,
24
+ "http.request.id": requestId
25
25
  };
26
26
  }
27
27
  const baseUseLogger = require_core.createUseLogger({
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { _ as RouteAdapterOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/express.d.ts
package/dist/express.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions } from "./integration-BAs5uTiD.js";
1
+ import { _ as RouteAdapterOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/express.d.ts
package/dist/express.js CHANGED
@@ -1,4 +1,4 @@
1
- import { o as toRouteAdapterOptions } from "./integration-DvibHRzI.js";
1
+ import { o as toRouteAdapterOptions } from "./integration-CfkaoVmE.js";
2
2
  import { createRequestRunner, createUseLogger } from "./core.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -17,10 +17,10 @@ function enrichFromRequest(request) {
17
17
  const route = request.route?.path ?? request.path ?? url;
18
18
  const requestId = headerValue(request.headers, "x-request-id");
19
19
  return {
20
- ...request.method ? { "http.request.method": request.method } : {},
21
- ...url ? { "url.full": url } : {},
22
- ...route ? { "http.route": route } : {},
23
- ...requestId ? { "http.request.id": requestId } : {}
20
+ "http.request.method": request.method,
21
+ "url.full": url,
22
+ "http.route": route,
23
+ "http.request.id": requestId
24
24
  };
25
25
  }
26
26
  const baseUseLogger = createUseLogger({
package/dist/fastify.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_core = require('./core.cjs');
4
4
  let autotel = require("autotel");
5
5
  let node_async_hooks = require("node:async_hooks");
@@ -17,10 +17,10 @@ function enrichFromRequest(request) {
17
17
  const route = request.routeOptions?.url ?? request.routerPath ?? request.url;
18
18
  const requestId = request.id ?? headerValue(request.headers, "x-request-id");
19
19
  return {
20
- ...request.method ? { "http.request.method": request.method } : {},
21
- ...request.url ? { "url.full": request.url } : {},
22
- ...route ? { "http.route": route } : {},
23
- ...requestId ? { "http.request.id": requestId } : {}
20
+ "http.request.method": request.method,
21
+ "url.full": request.url,
22
+ "http.route": route,
23
+ "http.request.id": requestId
24
24
  };
25
25
  }
26
26
  const baseUseLogger = require_core.createUseLogger({
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { _ as RouteAdapterOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/fastify.d.ts
package/dist/fastify.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions } from "./integration-BAs5uTiD.js";
1
+ import { _ as RouteAdapterOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/fastify.d.ts
package/dist/fastify.js CHANGED
@@ -1,4 +1,4 @@
1
- import { o as toRouteAdapterOptions } from "./integration-DvibHRzI.js";
1
+ import { o as toRouteAdapterOptions } from "./integration-CfkaoVmE.js";
2
2
  import { createRequestRunner, createUseLogger } from "./core.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -16,10 +16,10 @@ function enrichFromRequest(request) {
16
16
  const route = request.routeOptions?.url ?? request.routerPath ?? request.url;
17
17
  const requestId = request.id ?? headerValue(request.headers, "x-request-id");
18
18
  return {
19
- ...request.method ? { "http.request.method": request.method } : {},
20
- ...request.url ? { "url.full": request.url } : {},
21
- ...route ? { "http.route": route } : {},
22
- ...requestId ? { "http.request.id": requestId } : {}
19
+ "http.request.method": request.method,
20
+ "url.full": request.url,
21
+ "http.route": route,
22
+ "http.request.id": requestId
23
23
  };
24
24
  }
25
25
  const baseUseLogger = createUseLogger({
package/dist/hono.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.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");
package/dist/hono.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { Context } from "hono";
package/dist/hono.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { Context } from "hono";
package/dist/hono.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-DvibHRzI.js";
1
+ import { i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createUseLogger } from "./core.js";
4
4
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_core = require('./core.cjs');
4
4
  const require_next = require('./next.cjs');
5
5
  const require_nitro = require('./nitro.cjs');
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import { AdapterUseLoggerOptions, BaseAdapterOptions, ConfigField, DrainPipelineOptions, HeadersLike, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, RequestRunnerOptions, StructuredError, StructuredErrorInput, createRequestRunner, createUseLogger, getHeader, resolveAdapterConfig, shouldProbeRuntime } from "./core.cjs";
3
3
  import { withAutotelFetch } from "./cloudflare.cjs";
4
4
  import { autotel, useLogger, withAutotelHandler } from "./elysia.cjs";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-BAs5uTiD.js";
1
+ import { _ as RouteAdapterOptions, f as toRouteAdapterOptions, n as FrameworkHandlerOptions, o as IntegratedCompletionOptions } from "./integration-CQMpu5E4.js";
2
2
  import { AdapterUseLoggerOptions, BaseAdapterOptions, ConfigField, DrainPipelineOptions, HeadersLike, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, RequestRunnerOptions, StructuredError, StructuredErrorInput, createRequestRunner, createUseLogger, getHeader, resolveAdapterConfig, shouldProbeRuntime } from "./core.js";
3
3
  import { withAutotelFetch } from "./cloudflare.js";
4
4
  import { autotel, useLogger, withAutotelHandler } from "./elysia.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { o as toRouteAdapterOptions } from "./integration-DvibHRzI.js";
1
+ import { o as toRouteAdapterOptions } from "./integration-CfkaoVmE.js";
2
2
  import { createRequestRunner, createUseLogger, getHeader, resolveAdapterConfig, shouldProbeRuntime } from "./core.js";
3
3
  import { withAutotel } from "./next.js";
4
4
  import { withAutotelEventHandler } from "./nitro.js";
@@ -65,7 +65,7 @@ interface ExtractedRequest {
65
65
  interface IntegratedCompletionOptions {
66
66
  autoEmit?: boolean;
67
67
  /** Return false for framework control-flow throws that are not failures. */
68
- isError?: (error: unknown) => boolean;
68
+ isError?: (cause: unknown) => boolean;
69
69
  }
70
70
  type TracedOptionInput = RouteAdapterOptions & {
71
71
  requestLoggerOptions?: RequestLoggerOptions;
@@ -1,5 +1,5 @@
1
1
  import { createStorageForkLifecycle } from "./toolkit/storage.js";
2
- import { createNoopRequestLogger, getRequestLogger, withTracing } from "autotel";
2
+ import { createNoopRequestLogger, getRequestLogger, trace } from "autotel";
3
3
  import { getServiceForPath, matchesRoutePattern, shouldInstrumentPath } from "autotel-edge";
4
4
 
5
5
  //#region src/toolkit/deferred-drain.ts
@@ -155,7 +155,7 @@ async function performFinish(logger, options, startedAt, opts) {
155
155
  }
156
156
  const mergedOverrides = {
157
157
  ...overrides ?? {},
158
- ...tailCtx.shouldKeep ? { "autotel.sampling.tail.keep": true } : {}
158
+ "autotel.sampling.tail.keep": true
159
159
  };
160
160
  return logger.emitNow(Object.keys(mergedOverrides).length > 0 ? mergedOverrides : void 0);
161
161
  }
@@ -276,7 +276,7 @@ function buildHandle(spec, ctx, traceCtx, options = {}) {
276
276
  log.set({
277
277
  "http.request.method": extracted.method,
278
278
  "http.route": extracted.path,
279
- ...extracted.requestId ? { "http.request.id": extracted.requestId } : {}
279
+ "http.request.id": extracted.requestId
280
280
  });
281
281
  if (spec.storage) attachForkToLogger(log, spec.forkLifecycle ?? createStorageForkLifecycle(spec.storage));
282
282
  spec.attachLogger(ctx, log);
@@ -324,12 +324,13 @@ function defineFrameworkIntegration(spec) {
324
324
  runTraced(ctx, options, handler, completion) {
325
325
  const extracted = spec.extractRequest(ctx);
326
326
  if (!shouldInstrumentPath(extracted.path, toRouteAdapterOptions(options))) return handler(buildSkippedHandle(spec, ctx, extracted, options));
327
- return withTracing({
328
- name: options?.spanName ?? resolveSpanName(spec, ctx, extracted),
327
+ const spanName = options?.spanName ?? resolveSpanName(spec, ctx, extracted);
328
+ return trace.run({
329
+ name: spanName,
329
330
  isError: completion?.isError
330
- })((traceCtx) => async () => {
331
+ }, (traceCtx) => {
331
332
  return handler(buildHandle(spec, ctx, traceCtx, options ?? {}));
332
- })();
333
+ });
333
334
  }
334
335
  };
335
336
  }
@@ -65,7 +65,7 @@ interface ExtractedRequest {
65
65
  interface IntegratedCompletionOptions {
66
66
  autoEmit?: boolean;
67
67
  /** Return false for framework control-flow throws that are not failures. */
68
- isError?: (error: unknown) => boolean;
68
+ isError?: (cause: unknown) => boolean;
69
69
  }
70
70
  type TracedOptionInput = RouteAdapterOptions & {
71
71
  requestLoggerOptions?: RequestLoggerOptions;
@@ -155,7 +155,7 @@ async function performFinish(logger, options, startedAt, opts) {
155
155
  }
156
156
  const mergedOverrides = {
157
157
  ...overrides ?? {},
158
- ...tailCtx.shouldKeep ? { "autotel.sampling.tail.keep": true } : {}
158
+ "autotel.sampling.tail.keep": true
159
159
  };
160
160
  return logger.emitNow(Object.keys(mergedOverrides).length > 0 ? mergedOverrides : void 0);
161
161
  }
@@ -276,7 +276,7 @@ function buildHandle(spec, ctx, traceCtx, options = {}) {
276
276
  log.set({
277
277
  "http.request.method": extracted.method,
278
278
  "http.route": extracted.path,
279
- ...extracted.requestId ? { "http.request.id": extracted.requestId } : {}
279
+ "http.request.id": extracted.requestId
280
280
  });
281
281
  if (spec.storage) attachForkToLogger(log, spec.forkLifecycle ?? require_toolkit_storage.createStorageForkLifecycle(spec.storage));
282
282
  spec.attachLogger(ctx, log);
@@ -324,12 +324,13 @@ function defineFrameworkIntegration(spec) {
324
324
  runTraced(ctx, options, handler, completion) {
325
325
  const extracted = spec.extractRequest(ctx);
326
326
  if (!(0, autotel_edge.shouldInstrumentPath)(extracted.path, toRouteAdapterOptions(options))) return handler(buildSkippedHandle(spec, ctx, extracted, options));
327
- return (0, autotel.withTracing)({
328
- name: options?.spanName ?? resolveSpanName(spec, ctx, extracted),
327
+ const spanName = options?.spanName ?? resolveSpanName(spec, ctx, extracted);
328
+ return autotel.trace.run({
329
+ name: spanName,
329
330
  isError: completion?.isError
330
- })((traceCtx) => async () => {
331
+ }, (traceCtx) => {
331
332
  return handler(buildHandle(spec, ctx, traceCtx, options ?? {}));
332
- })();
333
+ });
333
334
  }
334
335
  };
335
336
  }
package/dist/nestjs.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_toolkit_storage = require('./toolkit/storage.cjs');
4
4
  let autotel = require("autotel");
5
5
  let rxjs = require("rxjs");
@@ -11,9 +11,9 @@ function enrichFromRequest(request) {
11
11
  const url = request.originalUrl ?? request.url;
12
12
  const route = request.path ?? url;
13
13
  return {
14
- ...request.method ? { "http.request.method": request.method } : {},
15
- ...url ? { "url.full": url } : {},
16
- ...route ? { "http.route": route } : {}
14
+ "http.request.method": request.method,
15
+ "url.full": url,
16
+ "http.route": route
17
17
  };
18
18
  }
19
19
  const integration = require_integration.defineFrameworkIntegration({
@@ -98,8 +98,8 @@ var AutotelInterceptor = class {
98
98
  }));
99
99
  }).then(() => {
100
100
  if (!cancelled) subscriber.complete();
101
- }, (error) => {
102
- if (!cancelled) subscriber.error(error);
101
+ }, (cause) => {
102
+ if (!cancelled) subscriber.error(cause);
103
103
  });
104
104
  return () => {
105
105
  cancelled = true;
package/dist/nestjs.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { Observable } from "rxjs";
package/dist/nestjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  import { Observable } from "rxjs";
package/dist/nestjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-DvibHRzI.js";
1
+ import { i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.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";
@@ -10,9 +10,9 @@ function enrichFromRequest(request) {
10
10
  const url = request.originalUrl ?? request.url;
11
11
  const route = request.path ?? url;
12
12
  return {
13
- ...request.method ? { "http.request.method": request.method } : {},
14
- ...url ? { "url.full": url } : {},
15
- ...route ? { "http.route": route } : {}
13
+ "http.request.method": request.method,
14
+ "url.full": url,
15
+ "http.route": route
16
16
  };
17
17
  }
18
18
  const integration = defineFrameworkIntegration({
@@ -97,8 +97,8 @@ var AutotelInterceptor = class {
97
97
  }));
98
98
  }).then(() => {
99
99
  if (!cancelled) subscriber.complete();
100
- }, (error) => {
101
- if (!cancelled) subscriber.error(error);
100
+ }, (cause) => {
101
+ if (!cancelled) subscriber.error(cause);
102
102
  });
103
103
  return () => {
104
104
  cancelled = true;
package/dist/next.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.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");
@@ -11,16 +11,16 @@ let next_navigation_js = require("next/navigation.js");
11
11
  * into responses. Delegate classification to Next itself so new signal types
12
12
  * and signals wrapped in `cause` stay covered without duplicating its internals.
13
13
  */
14
- function findNextControlFlowSignal(error) {
14
+ function findNextControlFlowSignal(cause) {
15
15
  try {
16
- (0, next_navigation_js.unstable_rethrow)(error);
16
+ (0, next_navigation_js.unstable_rethrow)(cause);
17
17
  return null;
18
18
  } catch (signal) {
19
19
  return signal;
20
20
  }
21
21
  }
22
- function isRealNextError(error) {
23
- return findNextControlFlowSignal(error) === null;
22
+ function isRealNextError(cause) {
23
+ return findNextControlFlowSignal(cause) === null;
24
24
  }
25
25
  const { storage: nextLoggerStorage, useLogger: storageUseLogger } = require_toolkit_storage.createLoggerStorage("request context. Wrap handlers with withAutotel() first.");
26
26
  function enrichFromRequest(request) {
@@ -33,9 +33,9 @@ function enrichFromRequest(request) {
33
33
  }
34
34
  const requestId = require_core.getHeader(request.headers, "x-request-id");
35
35
  return {
36
- ...request.method ? { "http.request.method": request.method } : {},
37
- ...request.url ? { "url.full": request.url } : {},
38
- ...route ? { "http.route": route } : {},
36
+ "http.request.method": request.method,
37
+ "url.full": request.url,
38
+ "http.route": route,
39
39
  ...requestId ? { "http.request.header.x-request-id": requestId } : {}
40
40
  };
41
41
  }
package/dist/next.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.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-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.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-DvibHRzI.js";
1
+ import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.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";
@@ -10,16 +10,16 @@ import { unstable_rethrow } from "next/navigation.js";
10
10
  * into responses. Delegate classification to Next itself so new signal types
11
11
  * and signals wrapped in `cause` stay covered without duplicating its internals.
12
12
  */
13
- function findNextControlFlowSignal(error) {
13
+ function findNextControlFlowSignal(cause) {
14
14
  try {
15
- unstable_rethrow(error);
15
+ unstable_rethrow(cause);
16
16
  return null;
17
17
  } catch (signal) {
18
18
  return signal;
19
19
  }
20
20
  }
21
- function isRealNextError(error) {
22
- return findNextControlFlowSignal(error) === null;
21
+ function isRealNextError(cause) {
22
+ return findNextControlFlowSignal(cause) === null;
23
23
  }
24
24
  const { storage: nextLoggerStorage, useLogger: storageUseLogger } = createLoggerStorage("request context. Wrap handlers with withAutotel() first.");
25
25
  function enrichFromRequest(request) {
@@ -32,9 +32,9 @@ function enrichFromRequest(request) {
32
32
  }
33
33
  const requestId = getHeader(request.headers, "x-request-id");
34
34
  return {
35
- ...request.method ? { "http.request.method": request.method } : {},
36
- ...request.url ? { "url.full": request.url } : {},
37
- ...route ? { "http.route": route } : {},
35
+ "http.request.method": request.method,
36
+ "url.full": request.url,
37
+ "http.route": route,
38
38
  ...requestId ? { "http.request.header.x-request-id": requestId } : {}
39
39
  };
40
40
  }
package/dist/nitro.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.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");
@@ -8,8 +8,8 @@ let autotel = require("autotel");
8
8
  function enrichFromEvent(event) {
9
9
  if (!event) return void 0;
10
10
  return {
11
- ...event.method ? { "http.request.method": event.method } : {},
12
- ...event.path ? { "http.route": event.path } : {},
11
+ "http.request.method": event.method,
12
+ "http.route": event.path,
13
13
  ...typeof event.context?.requestId === "string" ? { "http.request.id": event.context.requestId } : {}
14
14
  };
15
15
  }
package/dist/nitro.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.cjs";
2
2
  import "./core.cjs";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/nitro.d.ts
package/dist/nitro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.js";
2
2
  import "./core.js";
3
3
  import { RequestLogger, RequestLoggerOptions, createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
  //#region src/nitro.d.ts
package/dist/nitro.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-DvibHRzI.js";
1
+ import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, n as buildTracedOptions, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createUseLogger } from "./core.js";
4
4
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
@@ -7,8 +7,8 @@ import { createDrainPipeline, createStructuredError, parseError } from "autotel"
7
7
  function enrichFromEvent(event) {
8
8
  if (!event) return void 0;
9
9
  return {
10
- ...event.method ? { "http.request.method": event.method } : {},
11
- ...event.path ? { "http.route": event.path } : {},
10
+ "http.request.method": event.method,
11
+ "http.route": event.path,
12
12
  ...typeof event.context?.requestId === "string" ? { "http.request.id": event.context.requestId } : {}
13
13
  };
14
14
  }
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('./integration-Cc8bXel_.cjs');
2
+ const require_integration = require('./integration-pKawIXb6.cjs');
3
3
  const require_toolkit_storage = require('./toolkit/storage.cjs');
4
4
  let autotel = require("autotel");
5
5
 
@@ -1,4 +1,4 @@
1
- import { n as FrameworkHandlerOptions } from "./integration-D_rlU8Nx.cjs";
1
+ import { n as FrameworkHandlerOptions } from "./integration-D9g_qI5y.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-BAs5uTiD.js";
1
+ import { n as FrameworkHandlerOptions } from "./integration-CQMpu5E4.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-DvibHRzI.js";
1
+ import { a as runWithIntegratedHandle, i as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-CfkaoVmE.js";
2
2
  import { createLoggerStorage } from "./toolkit/storage.js";
3
3
  import { createDrainPipeline, createStructuredError, parseError } from "autotel";
4
4
 
package/dist/tanstack.cjs CHANGED
@@ -5,8 +5,8 @@ const require_core = require('./core.cjs');
5
5
  const useLogger = require_core.createUseLogger({
6
6
  adapterName: "tanstack",
7
7
  enrich: (ctx) => ({
8
- ...ctx.method ? { "http.request.method": ctx.method } : {},
9
- ...ctx.pathname ? { "http.route": ctx.pathname } : {}
8
+ "http.request.method": ctx.method,
9
+ "http.route": ctx.pathname
10
10
  })
11
11
  });
12
12
 
package/dist/tanstack.js CHANGED
@@ -4,8 +4,8 @@ import { createUseLogger } from "./core.js";
4
4
  const useLogger = createUseLogger({
5
5
  adapterName: "tanstack",
6
6
  enrich: (ctx) => ({
7
- ...ctx.method ? { "http.request.method": ctx.method } : {},
8
- ...ctx.pathname ? { "http.route": ctx.pathname } : {}
7
+ "http.request.method": ctx.method,
8
+ "http.route": ctx.pathname
9
9
  })
10
10
  });
11
11
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_integration = require('../integration-Cc8bXel_.cjs');
2
+ const require_integration = require('../integration-pKawIXb6.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-D_rlU8Nx.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-D9g_qI5y.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-BAs5uTiD.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-CQMpu5E4.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-DvibHRzI.js";
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-CfkaoVmE.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.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "Framework adapters and composable DX helpers for autotel",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -84,8 +84,8 @@
84
84
  "README.md"
85
85
  ],
86
86
  "dependencies": {
87
- "autotel": "6.5.0",
88
- "autotel-edge": "4.0.2"
87
+ "autotel": "7.0.1",
88
+ "autotel-edge": "5.0.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "hono": ">=4.12.31",