autotel-adapters 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/cloudflare.cjs +1 -1
- package/dist/cloudflare.js +1 -1
- package/dist/core.cjs +13 -2
- package/dist/core.js +13 -2
- package/dist/elysia.cjs +1 -1
- package/dist/elysia.js +1 -1
- package/dist/express.cjs +1 -1
- package/dist/express.js +1 -1
- package/dist/fastify.cjs +1 -1
- package/dist/fastify.js +1 -1
- package/dist/hono.cjs +1 -1
- package/dist/hono.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{integration-D_ABolGu.js → integration-DB9Hccx-.js} +41 -18
- package/dist/{integration-Danzss1R.cjs → integration-iP3dwlqn.cjs} +45 -16
- package/dist/nestjs.cjs +1 -1
- package/dist/nestjs.js +1 -1
- package/dist/next.cjs +1 -1
- package/dist/next.js +1 -1
- package/dist/nitro.cjs +1 -1
- package/dist/nitro.js +1 -1
- package/dist/sveltekit.cjs +1 -1
- package/dist/sveltekit.js +1 -1
- package/dist/toolkit/index.cjs +1 -1
- package/dist/toolkit/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,23 @@ Use `defineFrameworkIntegration()` from `autotel-adapters/toolkit` to wire a new
|
|
|
27
27
|
|
|
28
28
|
Toolkit options include route `include` / `exclude`, per-route `service`, serverless `waitUntil`, streaming `finishResponse`, and request-level `keep` callbacks.
|
|
29
29
|
|
|
30
|
+
### Keeping a request through tail sampling
|
|
31
|
+
|
|
32
|
+
Every adapter accepts `keep`. It runs when the request finishes, with the status, duration, method, path and the request logger's context. Set `shouldKeep` and the adapter calls `forceKeep()` for that request's trace:
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
app.use(
|
|
36
|
+
'*',
|
|
37
|
+
autotelMiddleware({
|
|
38
|
+
keep: (ctx) => {
|
|
39
|
+
if (ctx.status === 402 || ctx.durationMs > 2000) ctx.shouldKeep = true;
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For a streamed response, `keep` runs when the handler returns, before the body finishes.
|
|
46
|
+
|
|
30
47
|
The request handle also exposes `markOutcome({ status, error })`, which records the status code and error on the span without emitting the snapshot, and `finishResponse(response, { error })` for an error the framework caught on the way to the response.
|
|
31
48
|
|
|
32
49
|
## Span names and attributes
|
package/dist/cloudflare.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.cjs");
|
|
3
3
|
const require_core = require("./core.cjs");
|
|
4
4
|
let autotel = require("autotel");
|
|
5
5
|
|
package/dist/cloudflare.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.js";
|
|
2
2
|
import { createUseLogger, getHeader } from "./core.js";
|
|
3
3
|
import { createDrainPipeline, createStructuredError, parseError } from "autotel";
|
|
4
4
|
|
package/dist/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.cjs");
|
|
3
3
|
let autotel = require("autotel");
|
|
4
4
|
let autotel_edge = require("autotel-edge");
|
|
5
5
|
|
|
@@ -30,6 +30,7 @@ function createRequestRunner(storage) {
|
|
|
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
32
|
return autotel.trace.run(spanName, async (ctx) => {
|
|
33
|
+
const startedAt = Date.now();
|
|
33
34
|
const log = (0, autotel.getRequestLogger)(ctx, loggerOptions);
|
|
34
35
|
enrich(log);
|
|
35
36
|
try {
|
|
@@ -39,7 +40,17 @@ function createRequestRunner(storage) {
|
|
|
39
40
|
throw error;
|
|
40
41
|
} finally {
|
|
41
42
|
const finalized = options?.finalize?.();
|
|
42
|
-
|
|
43
|
+
const status = finalized?.["http.response.status_code"];
|
|
44
|
+
require_integration.markServerError(ctx, status);
|
|
45
|
+
const context = log.getContext();
|
|
46
|
+
await require_integration.applyKeep(options?.keep, ctx, {
|
|
47
|
+
status,
|
|
48
|
+
durationMs: Date.now() - startedAt,
|
|
49
|
+
path: options?.path ?? "",
|
|
50
|
+
method: String(context["http.request.method"] ?? ""),
|
|
51
|
+
context,
|
|
52
|
+
shouldKeep: false
|
|
53
|
+
});
|
|
43
54
|
if (options?.autoEmit !== false) log.emitNow(finalized);
|
|
44
55
|
}
|
|
45
56
|
});
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as markServerError, h as shouldInstrumentPath, l as applyKeep, m as mergeRequestLoggerOptions, s as toRouteAdapterOptions } from "./integration-DB9Hccx-.js";
|
|
2
2
|
import { getRequestLogger, trace } from "autotel";
|
|
3
3
|
|
|
4
4
|
//#region src/core.ts
|
|
@@ -28,6 +28,7 @@ function createRequestRunner(storage) {
|
|
|
28
28
|
if (options?.path && !shouldInstrumentPath(options.path, options)) return Promise.resolve(handler());
|
|
29
29
|
const loggerOptions = mergeRequestLoggerOptions(options?.requestLoggerOptions, options?.waitUntil);
|
|
30
30
|
return trace.run(spanName, async (ctx) => {
|
|
31
|
+
const startedAt = Date.now();
|
|
31
32
|
const log = getRequestLogger(ctx, loggerOptions);
|
|
32
33
|
enrich(log);
|
|
33
34
|
try {
|
|
@@ -37,7 +38,17 @@ function createRequestRunner(storage) {
|
|
|
37
38
|
throw error;
|
|
38
39
|
} finally {
|
|
39
40
|
const finalized = options?.finalize?.();
|
|
40
|
-
|
|
41
|
+
const status = finalized?.["http.response.status_code"];
|
|
42
|
+
markServerError(ctx, status);
|
|
43
|
+
const context = log.getContext();
|
|
44
|
+
await applyKeep(options?.keep, ctx, {
|
|
45
|
+
status,
|
|
46
|
+
durationMs: Date.now() - startedAt,
|
|
47
|
+
path: options?.path ?? "",
|
|
48
|
+
method: String(context["http.request.method"] ?? ""),
|
|
49
|
+
context,
|
|
50
|
+
shouldKeep: false
|
|
51
|
+
});
|
|
41
52
|
if (options?.autoEmit !== false) log.emitNow(finalized);
|
|
42
53
|
}
|
|
43
54
|
});
|
package/dist/elysia.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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/elysia.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.js";
|
|
2
2
|
import { createLoggerStorage } from "./toolkit/storage.js";
|
|
3
3
|
import { getHeader } from "./core.js";
|
|
4
4
|
import { createDrainPipeline, createStructuredError, parseError } from "autotel";
|
package/dist/express.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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");
|
package/dist/express.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as defaultSpanName, s as toRouteAdapterOptions } from "./integration-
|
|
1
|
+
import { i as defaultSpanName, s as toRouteAdapterOptions } from "./integration-DB9Hccx-.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";
|
package/dist/fastify.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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");
|
package/dist/fastify.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as defaultSpanName, s as toRouteAdapterOptions } from "./integration-
|
|
1
|
+
import { i as defaultSpanName, s as toRouteAdapterOptions } from "./integration-DB9Hccx-.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";
|
package/dist/hono.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.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-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as toRouteAdapterOptions } from "./integration-
|
|
1
|
+
import { s as toRouteAdapterOptions } from "./integration-DB9Hccx-.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createStorageForkLifecycle } from "./toolkit/storage.js";
|
|
2
|
-
import { SpanStatusCode, createNoopRequestLogger, getRequestLogger, recordStructuredError, trace } from "autotel";
|
|
2
|
+
import { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, SpanStatusCode, createNoopRequestLogger, forceKeep, getRequestLogger, recordStructuredError, trace } from "autotel";
|
|
3
3
|
import { getServiceForPath, matchesRoutePattern, shouldInstrumentPath } from "autotel-edge";
|
|
4
4
|
|
|
5
5
|
//#region src/toolkit/deferred-drain.ts
|
|
@@ -146,20 +146,45 @@ function recordOutcome(logger, span, { status, error }, emitted) {
|
|
|
146
146
|
markServerError(span, status);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Run the `keep` callback and, when it sets `shouldKeep`, keep the trace.
|
|
151
|
+
* The attributes go on the request span itself for an adapter that finishes
|
|
152
|
+
* outside the active context; `forceKeep()` stops the tracing wrapper
|
|
153
|
+
* overwriting them when the finish runs inside it.
|
|
154
|
+
*/
|
|
155
|
+
async function applyKeep(keep, span, tailCtx) {
|
|
156
|
+
if (!keep) return;
|
|
157
|
+
try {
|
|
158
|
+
await keep(tailCtx);
|
|
159
|
+
} catch (err) {
|
|
160
|
+
console.error("[autotel-adapters] keep failed:", err);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (!tailCtx.shouldKeep) return;
|
|
164
|
+
span?.setAttributes({
|
|
165
|
+
[AUTOTEL_SAMPLING_TAIL_EVALUATED]: true,
|
|
166
|
+
[AUTOTEL_SAMPLING_TAIL_KEEP]: true
|
|
167
|
+
});
|
|
168
|
+
forceKeep();
|
|
169
|
+
}
|
|
170
|
+
function tailContext(logger, options, startedAt, status) {
|
|
171
|
+
const context = logger.getContext();
|
|
172
|
+
return {
|
|
173
|
+
status: status ?? context["http.response.status_code"],
|
|
174
|
+
durationMs: Date.now() - startedAt,
|
|
157
175
|
path: options.path,
|
|
158
176
|
method: options.method,
|
|
159
|
-
context
|
|
177
|
+
context,
|
|
160
178
|
shouldKeep: false
|
|
161
179
|
};
|
|
162
|
-
|
|
180
|
+
}
|
|
181
|
+
async function performFinish(logger, options, startedAt, span, emitted, opts) {
|
|
182
|
+
const { status, overrides } = opts ?? {};
|
|
183
|
+
recordOutcome(logger, span, opts ?? {}, emitted);
|
|
184
|
+
const tailCtx = tailContext(logger, options, startedAt, status);
|
|
185
|
+
const { durationMs } = tailCtx;
|
|
186
|
+
logger.set({ duration_ms: durationMs });
|
|
187
|
+
if (!opts?.keepDecided) await applyKeep(options.keep, span, tailCtx);
|
|
163
188
|
if (options.onFinish) try {
|
|
164
189
|
await options.onFinish({
|
|
165
190
|
logger,
|
|
@@ -171,11 +196,7 @@ async function performFinish(logger, options, startedAt, span, emitted, opts) {
|
|
|
171
196
|
} catch (err) {
|
|
172
197
|
console.error("[autotel-adapters] onFinish failed:", err);
|
|
173
198
|
}
|
|
174
|
-
|
|
175
|
-
...overrides ?? {},
|
|
176
|
-
"autotel.sampling.tail.keep": true
|
|
177
|
-
};
|
|
178
|
-
return logger.emitNow(Object.keys(mergedOverrides).length > 0 ? mergedOverrides : void 0);
|
|
199
|
+
return logger.emitNow(overrides);
|
|
179
200
|
}
|
|
180
201
|
/**
|
|
181
202
|
* Create a request logger handle for use inside an active autotel trace span.
|
|
@@ -213,11 +234,13 @@ function createMiddlewareLogger(logger, options, span) {
|
|
|
213
234
|
status,
|
|
214
235
|
error: opts?.error
|
|
215
236
|
}, emitted);
|
|
237
|
+
await applyKeep(options.keep, span, tailContext(logger, options, startedAt, status));
|
|
216
238
|
return bindStreamingResponseLifecycle(response, async (meta) => {
|
|
217
239
|
await performFinish(logger, options, startedAt, span, emitted, {
|
|
218
240
|
status: meta.status ?? status,
|
|
219
241
|
error: meta.error,
|
|
220
|
-
overrides: opts?.overrides
|
|
242
|
+
overrides: opts?.overrides,
|
|
243
|
+
keepDecided: true
|
|
221
244
|
});
|
|
222
245
|
});
|
|
223
246
|
}
|
|
@@ -387,4 +410,4 @@ function defineFrameworkIntegration(spec) {
|
|
|
387
410
|
}
|
|
388
411
|
|
|
389
412
|
//#endregion
|
|
390
|
-
export {
|
|
413
|
+
export { isStreamingResponse as _, defineFrameworkIntegration as a, attachForkToLogger as c, getServiceForPath as d, markServerError as f, bindStreamingResponseLifecycle as g, shouldInstrumentPath as h, defaultSpanName as i, applyKeep as l, mergeRequestLoggerOptions as m, buildTracedOptions as n, runWithIntegratedHandle as o, matchesRoutePattern as p, completeIntegratedRequest as r, toRouteAdapterOptions as s, applyLoggerEnrichment as t, createMiddlewareLogger as u, shouldDeferEmitForResponse as v, extendDeferredDrain as y };
|
|
@@ -146,20 +146,45 @@ function recordOutcome(logger, span, { status, error }, emitted) {
|
|
|
146
146
|
markServerError(span, status);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Run the `keep` callback and, when it sets `shouldKeep`, keep the trace.
|
|
151
|
+
* The attributes go on the request span itself for an adapter that finishes
|
|
152
|
+
* outside the active context; `forceKeep()` stops the tracing wrapper
|
|
153
|
+
* overwriting them when the finish runs inside it.
|
|
154
|
+
*/
|
|
155
|
+
async function applyKeep(keep, span, tailCtx) {
|
|
156
|
+
if (!keep) return;
|
|
157
|
+
try {
|
|
158
|
+
await keep(tailCtx);
|
|
159
|
+
} catch (err) {
|
|
160
|
+
console.error("[autotel-adapters] keep failed:", err);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (!tailCtx.shouldKeep) return;
|
|
164
|
+
span?.setAttributes({
|
|
165
|
+
[autotel.AUTOTEL_SAMPLING_TAIL_EVALUATED]: true,
|
|
166
|
+
[autotel.AUTOTEL_SAMPLING_TAIL_KEEP]: true
|
|
167
|
+
});
|
|
168
|
+
(0, autotel.forceKeep)();
|
|
169
|
+
}
|
|
170
|
+
function tailContext(logger, options, startedAt, status) {
|
|
171
|
+
const context = logger.getContext();
|
|
172
|
+
return {
|
|
173
|
+
status: status ?? context["http.response.status_code"],
|
|
174
|
+
durationMs: Date.now() - startedAt,
|
|
157
175
|
path: options.path,
|
|
158
176
|
method: options.method,
|
|
159
|
-
context
|
|
177
|
+
context,
|
|
160
178
|
shouldKeep: false
|
|
161
179
|
};
|
|
162
|
-
|
|
180
|
+
}
|
|
181
|
+
async function performFinish(logger, options, startedAt, span, emitted, opts) {
|
|
182
|
+
const { status, overrides } = opts ?? {};
|
|
183
|
+
recordOutcome(logger, span, opts ?? {}, emitted);
|
|
184
|
+
const tailCtx = tailContext(logger, options, startedAt, status);
|
|
185
|
+
const { durationMs } = tailCtx;
|
|
186
|
+
logger.set({ duration_ms: durationMs });
|
|
187
|
+
if (!opts?.keepDecided) await applyKeep(options.keep, span, tailCtx);
|
|
163
188
|
if (options.onFinish) try {
|
|
164
189
|
await options.onFinish({
|
|
165
190
|
logger,
|
|
@@ -171,11 +196,7 @@ async function performFinish(logger, options, startedAt, span, emitted, opts) {
|
|
|
171
196
|
} catch (err) {
|
|
172
197
|
console.error("[autotel-adapters] onFinish failed:", err);
|
|
173
198
|
}
|
|
174
|
-
|
|
175
|
-
...overrides ?? {},
|
|
176
|
-
"autotel.sampling.tail.keep": true
|
|
177
|
-
};
|
|
178
|
-
return logger.emitNow(Object.keys(mergedOverrides).length > 0 ? mergedOverrides : void 0);
|
|
199
|
+
return logger.emitNow(overrides);
|
|
179
200
|
}
|
|
180
201
|
/**
|
|
181
202
|
* Create a request logger handle for use inside an active autotel trace span.
|
|
@@ -213,11 +234,13 @@ function createMiddlewareLogger(logger, options, span) {
|
|
|
213
234
|
status,
|
|
214
235
|
error: opts?.error
|
|
215
236
|
}, emitted);
|
|
237
|
+
await applyKeep(options.keep, span, tailContext(logger, options, startedAt, status));
|
|
216
238
|
return bindStreamingResponseLifecycle(response, async (meta) => {
|
|
217
239
|
await performFinish(logger, options, startedAt, span, emitted, {
|
|
218
240
|
status: meta.status ?? status,
|
|
219
241
|
error: meta.error,
|
|
220
|
-
overrides: opts?.overrides
|
|
242
|
+
overrides: opts?.overrides,
|
|
243
|
+
keepDecided: true
|
|
221
244
|
});
|
|
222
245
|
});
|
|
223
246
|
}
|
|
@@ -387,6 +410,12 @@ function defineFrameworkIntegration(spec) {
|
|
|
387
410
|
}
|
|
388
411
|
|
|
389
412
|
//#endregion
|
|
413
|
+
Object.defineProperty(exports, "applyKeep", {
|
|
414
|
+
enumerable: true,
|
|
415
|
+
get: function () {
|
|
416
|
+
return applyKeep;
|
|
417
|
+
}
|
|
418
|
+
});
|
|
390
419
|
Object.defineProperty(exports, "applyLoggerEnrichment", {
|
|
391
420
|
enumerable: true,
|
|
392
421
|
get: function () {
|
package/dist/nestjs.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.cjs");
|
|
3
3
|
const require_toolkit_storage = require("./toolkit/storage.cjs");
|
|
4
4
|
let autotel = require("autotel");
|
|
5
5
|
let rxjs = require("rxjs");
|
package/dist/nestjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.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";
|
package/dist/next.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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/next.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.js";
|
|
2
2
|
import { createLoggerStorage } from "./toolkit/storage.js";
|
|
3
3
|
import { createUseLogger, getHeader } from "./core.js";
|
|
4
4
|
import { createDrainPipeline, createStructuredError, getRequestLogger, parseError, trace } from "autotel";
|
package/dist/nitro.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.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/nitro.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, n as buildTracedOptions, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.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/sveltekit.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("./integration-
|
|
2
|
+
const require_integration = require("./integration-iP3dwlqn.cjs");
|
|
3
3
|
const require_toolkit_storage = require("./toolkit/storage.cjs");
|
|
4
4
|
let autotel = require("autotel");
|
|
5
5
|
|
package/dist/sveltekit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineFrameworkIntegration, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-
|
|
1
|
+
import { a as defineFrameworkIntegration, o as runWithIntegratedHandle, t as applyLoggerEnrichment } from "./integration-DB9Hccx-.js";
|
|
2
2
|
import { createLoggerStorage } from "./toolkit/storage.js";
|
|
3
3
|
import { createDrainPipeline, createStructuredError, parseError } from "autotel";
|
|
4
4
|
|
package/dist/toolkit/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_integration = require("../integration-
|
|
2
|
+
const require_integration = require("../integration-iP3dwlqn.cjs");
|
|
3
3
|
const require_toolkit_storage = require("./storage.cjs");
|
|
4
4
|
let autotel_edge = require("autotel-edge");
|
|
5
5
|
|
package/dist/toolkit/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as isStreamingResponse, a as defineFrameworkIntegration, c as attachForkToLogger, d as getServiceForPath, g as bindStreamingResponseLifecycle, h as shouldInstrumentPath, m as mergeRequestLoggerOptions, n as buildTracedOptions, o as runWithIntegratedHandle, p as matchesRoutePattern, r as completeIntegratedRequest, s as toRouteAdapterOptions, t as applyLoggerEnrichment, u as createMiddlewareLogger, v as shouldDeferEmitForResponse, y as extendDeferredDrain } from "../integration-DB9Hccx-.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 };
|