autotel 7.10.1 → 8.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 (80) hide show
  1. package/README.md +38 -32
  2. package/dist/auto.cjs +1 -1
  3. package/dist/auto.js +1 -1
  4. package/dist/{canonical-log-line-processor-DDGzm-wi.d.ts → canonical-log-line-processor-BaFqHO5l.d.ts} +1 -2
  5. package/dist/{canonical-log-line-processor-DLeAQjgb.d.cts → canonical-log-line-processor-C-RdV5af.d.cts} +1 -2
  6. package/dist/{canonical-log-line-processor-BU03jJeA.cjs → canonical-log-line-processor-CBRe-VsO.cjs} +0 -1
  7. package/dist/{canonical-log-line-processor-BQ6NeZAk.js → canonical-log-line-processor-CntKMtpJ.js} +0 -1
  8. package/dist/config.d.cts +1 -1
  9. package/dist/config.d.ts +1 -1
  10. package/dist/correlation-id.cjs +1 -1
  11. package/dist/correlation-id.js +1 -1
  12. package/dist/decorators.cjs +1 -1
  13. package/dist/decorators.d.cts +1 -1
  14. package/dist/decorators.d.ts +1 -1
  15. package/dist/decorators.js +1 -1
  16. package/dist/event.cjs +1 -1
  17. package/dist/event.d.cts +1 -1
  18. package/dist/event.d.ts +1 -1
  19. package/dist/event.js +1 -1
  20. package/dist/{functional-DptEM9La.cjs → functional-BliCZgwO.cjs} +1 -1
  21. package/dist/{functional-C4gGiBou.js → functional-C-D0KQg6.js} +1 -1
  22. package/dist/{functional-j8Joyrwd.d.cts → functional-DDunG47Y.d.cts} +1 -1
  23. package/dist/{functional-CbcInXMJ.d.ts → functional-DU7NXyih.d.ts} +1 -1
  24. package/dist/functional.cjs +1 -1
  25. package/dist/functional.d.cts +1 -1
  26. package/dist/functional.d.ts +1 -1
  27. package/dist/functional.js +1 -1
  28. package/dist/http.cjs +1 -1
  29. package/dist/http.js +1 -1
  30. package/dist/index.cjs +3 -3
  31. package/dist/index.d.cts +4 -4
  32. package/dist/index.d.ts +4 -4
  33. package/dist/index.js +3 -3
  34. package/dist/{init-BvUtwZNx.js → init-CKHEf5g2.js} +95 -21
  35. package/dist/{init-CHanKvOq.d.cts → init-D5k8hBRg.d.cts} +22 -29
  36. package/dist/{init-Cx1-ejLn.cjs → init-DF4YrpSB.cjs} +95 -21
  37. package/dist/{init-Biyby8Br.d.ts → init-DMjyzzbM.d.ts} +22 -29
  38. package/dist/instrumentation.cjs +1 -1
  39. package/dist/instrumentation.js +1 -1
  40. package/dist/{logger-B2VPcBgZ.js → logger-8Ah2EkH1.js} +10 -18
  41. package/dist/{logger-DLjHQAus.cjs → logger-C_3xDBOz.cjs} +10 -18
  42. package/dist/{logger-C9UT1aZ_.d.cts → logger-b0qgWFy7.d.cts} +10 -18
  43. package/dist/{logger-C9UT1aZ_.d.ts → logger-b0qgWFy7.d.ts} +10 -18
  44. package/dist/logger.cjs +1 -1
  45. package/dist/logger.d.cts +1 -1
  46. package/dist/logger.d.ts +1 -1
  47. package/dist/logger.js +1 -1
  48. package/dist/messaging.cjs +2 -2
  49. package/dist/messaging.js +2 -2
  50. package/dist/metric.d.cts +1 -1
  51. package/dist/metric.d.ts +1 -1
  52. package/dist/processors.cjs +1 -1
  53. package/dist/processors.d.cts +1 -1
  54. package/dist/processors.d.ts +1 -1
  55. package/dist/processors.js +1 -1
  56. package/dist/register.cjs +1 -0
  57. package/dist/register.js +1 -0
  58. package/dist/{sampling-Dud4XU2m.d.cts → sampling-CLJmXMw0.d.cts} +1 -1
  59. package/dist/{sampling-B_8orhSB.d.ts → sampling-DBlX8Nv5.d.ts} +1 -1
  60. package/dist/sampling.cjs +1 -1
  61. package/dist/sampling.d.cts +1 -1
  62. package/dist/sampling.d.ts +1 -1
  63. package/dist/sampling.js +1 -1
  64. package/dist/semantic-helpers.cjs +1 -1
  65. package/dist/semantic-helpers.js +1 -1
  66. package/dist/tail-sampling-processor.cjs +1 -1
  67. package/dist/tail-sampling-processor.js +1 -1
  68. package/dist/testing.d.cts +1 -1
  69. package/dist/testing.d.ts +1 -1
  70. package/dist/webhook.cjs +1 -1
  71. package/dist/webhook.js +1 -1
  72. package/dist/workflow-distributed.cjs +1 -1
  73. package/dist/workflow-distributed.js +1 -1
  74. package/dist/workflow.cjs +1 -1
  75. package/dist/workflow.js +1 -1
  76. package/dist/yaml-config.cjs +1 -1
  77. package/dist/yaml-config.d.cts +2 -2
  78. package/dist/yaml-config.d.ts +2 -2
  79. package/dist/yaml-config.js +1 -1
  80. package/package.json +1 -1
@@ -255,8 +255,9 @@ function autotelLogger(options) {
255
255
  * **Zero-Config Option:** Don't provide a logger to `init()` and autotel uses
256
256
  * a built-in structured JSON logger with automatic trace context injection.
257
257
  *
258
- * **BYOL (Bring Your Own Logger):** Pass Pino or Bunyan to `init()` for
259
- * automatic instrumentation with trace context and OTLP log export.
258
+ * **BYOL (Bring Your Own Logger):** Use `autoInstrumentations: ['pino']`
259
+ * (or `'winston'`, `'bunyan'`) for trace context and OTLP log export. Don't
260
+ * pass the logger to `init()`; create it after `init()` runs so it is patched.
260
261
  *
261
262
  * ## Logger Signature
262
263
  *
@@ -315,29 +316,20 @@ function autotelLogger(options) {
315
316
  *
316
317
  * @example Using Pino (recommended for production, auto-instrumented)
317
318
  * ```typescript
318
- * import pino from 'pino'; // npm install pino
319
+ * // telemetry.ts - imported first (ESM: also `node --import autotel/register`)
319
320
  * import { init } from 'autotel';
321
+ * init({ service: 'my-app', autoInstrumentations: ['pino'], logs: true });
320
322
  *
321
- * const logger = pino({ level: 'info' });
322
- * init({ service: 'my-app', logger });
323
+ * // logger.ts - created after init(), so pino is patched as it loads
324
+ * import pino from 'pino';
325
+ * export const logger = pino({ level: 'info' });
323
326
  *
324
327
  * // Logs automatically include traceId/spanId and export via OTLP!
325
328
  * logger.info({ userId: '123' }, 'User created');
326
329
  * ```
327
330
  *
328
- * @example Using Bunyan (auto-instrumented, same signature as Pino)
329
- * ```typescript
330
- * import bunyan from 'bunyan'; // npm install bunyan @opentelemetry/instrumentation-bunyan
331
- * import { init } from 'autotel';
332
- * import { BunyanInstrumentation } from '@opentelemetry/instrumentation-bunyan';
333
- *
334
- * const logger = bunyan.createLogger({ name: 'my-app' });
335
- * init({
336
- * service: 'my-app',
337
- * logger,
338
- * instrumentations: [new BunyanInstrumentation()]
339
- * });
340
- * ```
331
+ * Bunyan and Winston work the same way: `autoInstrumentations: ['bunyan']`
332
+ * or `['winston']`, logger created after `init()`.
341
333
  *
342
334
  * @example Custom logger (MUST use Pino-compatible signature)
343
335
  * ```typescript
@@ -255,8 +255,9 @@ function autotelLogger(options) {
255
255
  * **Zero-Config Option:** Don't provide a logger to `init()` and autotel uses
256
256
  * a built-in structured JSON logger with automatic trace context injection.
257
257
  *
258
- * **BYOL (Bring Your Own Logger):** Pass Pino or Bunyan to `init()` for
259
- * automatic instrumentation with trace context and OTLP log export.
258
+ * **BYOL (Bring Your Own Logger):** Use `autoInstrumentations: ['pino']`
259
+ * (or `'winston'`, `'bunyan'`) for trace context and OTLP log export. Don't
260
+ * pass the logger to `init()`; create it after `init()` runs so it is patched.
260
261
  *
261
262
  * ## Logger Signature
262
263
  *
@@ -315,29 +316,20 @@ function autotelLogger(options) {
315
316
  *
316
317
  * @example Using Pino (recommended for production, auto-instrumented)
317
318
  * ```typescript
318
- * import pino from 'pino'; // npm install pino
319
+ * // telemetry.ts - imported first (ESM: also `node --import autotel/register`)
319
320
  * import { init } from 'autotel';
321
+ * init({ service: 'my-app', autoInstrumentations: ['pino'], logs: true });
320
322
  *
321
- * const logger = pino({ level: 'info' });
322
- * init({ service: 'my-app', logger });
323
+ * // logger.ts - created after init(), so pino is patched as it loads
324
+ * import pino from 'pino';
325
+ * export const logger = pino({ level: 'info' });
323
326
  *
324
327
  * // Logs automatically include traceId/spanId and export via OTLP!
325
328
  * logger.info({ userId: '123' }, 'User created');
326
329
  * ```
327
330
  *
328
- * @example Using Bunyan (auto-instrumented, same signature as Pino)
329
- * ```typescript
330
- * import bunyan from 'bunyan'; // npm install bunyan @opentelemetry/instrumentation-bunyan
331
- * import { init } from 'autotel';
332
- * import { BunyanInstrumentation } from '@opentelemetry/instrumentation-bunyan';
333
- *
334
- * const logger = bunyan.createLogger({ name: 'my-app' });
335
- * init({
336
- * service: 'my-app',
337
- * logger,
338
- * instrumentations: [new BunyanInstrumentation()]
339
- * });
340
- * ```
331
+ * Bunyan and Winston work the same way: `autoInstrumentations: ['bunyan']`
332
+ * or `['winston']`, logger created after `init()`.
341
333
  *
342
334
  * @example Custom logger (MUST use Pino-compatible signature)
343
335
  * ```typescript
@@ -82,8 +82,9 @@ declare function autotelLogger(options?: {
82
82
  * **Zero-Config Option:** Don't provide a logger to `init()` and autotel uses
83
83
  * a built-in structured JSON logger with automatic trace context injection.
84
84
  *
85
- * **BYOL (Bring Your Own Logger):** Pass Pino or Bunyan to `init()` for
86
- * automatic instrumentation with trace context and OTLP log export.
85
+ * **BYOL (Bring Your Own Logger):** Use `autoInstrumentations: ['pino']`
86
+ * (or `'winston'`, `'bunyan'`) for trace context and OTLP log export. Don't
87
+ * pass the logger to `init()`; create it after `init()` runs so it is patched.
87
88
  *
88
89
  * ## Logger Signature
89
90
  *
@@ -142,29 +143,20 @@ declare function autotelLogger(options?: {
142
143
  *
143
144
  * @example Using Pino (recommended for production, auto-instrumented)
144
145
  * ```typescript
145
- * import pino from 'pino'; // npm install pino
146
+ * // telemetry.ts - imported first (ESM: also `node --import autotel/register`)
146
147
  * import { init } from 'autotel';
148
+ * init({ service: 'my-app', autoInstrumentations: ['pino'], logs: true });
147
149
  *
148
- * const logger = pino({ level: 'info' });
149
- * init({ service: 'my-app', logger });
150
+ * // logger.ts - created after init(), so pino is patched as it loads
151
+ * import pino from 'pino';
152
+ * export const logger = pino({ level: 'info' });
150
153
  *
151
154
  * // Logs automatically include traceId/spanId and export via OTLP!
152
155
  * logger.info({ userId: '123' }, 'User created');
153
156
  * ```
154
157
  *
155
- * @example Using Bunyan (auto-instrumented, same signature as Pino)
156
- * ```typescript
157
- * import bunyan from 'bunyan'; // npm install bunyan @opentelemetry/instrumentation-bunyan
158
- * import { init } from 'autotel';
159
- * import { BunyanInstrumentation } from '@opentelemetry/instrumentation-bunyan';
160
- *
161
- * const logger = bunyan.createLogger({ name: 'my-app' });
162
- * init({
163
- * service: 'my-app',
164
- * logger,
165
- * instrumentations: [new BunyanInstrumentation()]
166
- * });
167
- * ```
158
+ * Bunyan and Winston work the same way: `autoInstrumentations: ['bunyan']`
159
+ * or `['winston']`, logger created after `init()`.
168
160
  *
169
161
  * @example Custom logger (MUST use Pino-compatible signature)
170
162
  * ```typescript
@@ -82,8 +82,9 @@ declare function autotelLogger(options?: {
82
82
  * **Zero-Config Option:** Don't provide a logger to `init()` and autotel uses
83
83
  * a built-in structured JSON logger with automatic trace context injection.
84
84
  *
85
- * **BYOL (Bring Your Own Logger):** Pass Pino or Bunyan to `init()` for
86
- * automatic instrumentation with trace context and OTLP log export.
85
+ * **BYOL (Bring Your Own Logger):** Use `autoInstrumentations: ['pino']`
86
+ * (or `'winston'`, `'bunyan'`) for trace context and OTLP log export. Don't
87
+ * pass the logger to `init()`; create it after `init()` runs so it is patched.
87
88
  *
88
89
  * ## Logger Signature
89
90
  *
@@ -142,29 +143,20 @@ declare function autotelLogger(options?: {
142
143
  *
143
144
  * @example Using Pino (recommended for production, auto-instrumented)
144
145
  * ```typescript
145
- * import pino from 'pino'; // npm install pino
146
+ * // telemetry.ts - imported first (ESM: also `node --import autotel/register`)
146
147
  * import { init } from 'autotel';
148
+ * init({ service: 'my-app', autoInstrumentations: ['pino'], logs: true });
147
149
  *
148
- * const logger = pino({ level: 'info' });
149
- * init({ service: 'my-app', logger });
150
+ * // logger.ts - created after init(), so pino is patched as it loads
151
+ * import pino from 'pino';
152
+ * export const logger = pino({ level: 'info' });
150
153
  *
151
154
  * // Logs automatically include traceId/spanId and export via OTLP!
152
155
  * logger.info({ userId: '123' }, 'User created');
153
156
  * ```
154
157
  *
155
- * @example Using Bunyan (auto-instrumented, same signature as Pino)
156
- * ```typescript
157
- * import bunyan from 'bunyan'; // npm install bunyan @opentelemetry/instrumentation-bunyan
158
- * import { init } from 'autotel';
159
- * import { BunyanInstrumentation } from '@opentelemetry/instrumentation-bunyan';
160
- *
161
- * const logger = bunyan.createLogger({ name: 'my-app' });
162
- * init({
163
- * service: 'my-app',
164
- * logger,
165
- * instrumentations: [new BunyanInstrumentation()]
166
- * });
167
- * ```
158
+ * Bunyan and Winston work the same way: `autoInstrumentations: ['bunyan']`
159
+ * or `['winston']`, logger created after `init()`.
168
160
  *
169
161
  * @example Custom logger (MUST use Pino-compatible signature)
170
162
  * ```typescript
package/dist/logger.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_logger = require('./logger-DLjHQAus.cjs');
2
+ const require_logger = require('./logger-C_3xDBOz.cjs');
3
3
 
4
4
  exports.LOG_LEVEL = require_logger.LOG_LEVEL;
5
5
  exports.LoggedOperation = require_logger.LoggedOperation;
package/dist/logger.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as LoggedOperation, c as LoggerConfig, d as BuiltinLoggerOptions, f as autotelLogger, g as runWithLogLevel, h as getTraceContext, i as LogLevel, l as PinoLogger, m as getActiveLogLevel, n as LOG_LEVEL, o as LoggedOperationOptions, p as createBuiltinLogger, r as LogFn, s as Logger, t as ILogger, u as BuiltinLogLevel } from "./logger-C9UT1aZ_.cjs";
1
+ import { a as LoggedOperation, c as LoggerConfig, d as BuiltinLoggerOptions, f as autotelLogger, g as runWithLogLevel, h as getTraceContext, i as LogLevel, l as PinoLogger, m as getActiveLogLevel, n as LOG_LEVEL, o as LoggedOperationOptions, p as createBuiltinLogger, r as LogFn, s as Logger, t as ILogger, u as BuiltinLogLevel } from "./logger-b0qgWFy7.cjs";
2
2
  export { type BuiltinLogLevel, type BuiltinLoggerOptions, ILogger, LOG_LEVEL, LogFn, LogLevel, LoggedOperation, LoggedOperationOptions, Logger, LoggerConfig, type PinoLogger, autotelLogger, createBuiltinLogger, getActiveLogLevel, getTraceContext, runWithLogLevel };
package/dist/logger.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as LoggedOperation, c as LoggerConfig, d as BuiltinLoggerOptions, f as autotelLogger, g as runWithLogLevel, h as getTraceContext, i as LogLevel, l as PinoLogger, m as getActiveLogLevel, n as LOG_LEVEL, o as LoggedOperationOptions, p as createBuiltinLogger, r as LogFn, s as Logger, t as ILogger, u as BuiltinLogLevel } from "./logger-C9UT1aZ_.js";
1
+ import { a as LoggedOperation, c as LoggerConfig, d as BuiltinLoggerOptions, f as autotelLogger, g as runWithLogLevel, h as getTraceContext, i as LogLevel, l as PinoLogger, m as getActiveLogLevel, n as LOG_LEVEL, o as LoggedOperationOptions, p as createBuiltinLogger, r as LogFn, s as Logger, t as ILogger, u as BuiltinLogLevel } from "./logger-b0qgWFy7.js";
2
2
  export { type BuiltinLogLevel, type BuiltinLoggerOptions, ILogger, LOG_LEVEL, LogFn, LogLevel, LoggedOperation, LoggedOperationOptions, Logger, LoggerConfig, type PinoLogger, autotelLogger, createBuiltinLogger, getActiveLogLevel, getTraceContext, runWithLogLevel };
package/dist/logger.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as getActiveLogLevel, i as createBuiltinLogger, n as LoggedOperation, o as getTraceContext, r as autotelLogger, s as runWithLogLevel, t as LOG_LEVEL } from "./logger-B2VPcBgZ.js";
1
+ import { a as getActiveLogLevel, i as createBuiltinLogger, n as LoggedOperation, o as getTraceContext, r as autotelLogger, s as runWithLogLevel, t as LOG_LEVEL } from "./logger-8Ah2EkH1.js";
2
2
 
3
3
  export { LOG_LEVEL, LoggedOperation, autotelLogger, createBuiltinLogger, getActiveLogLevel, getTraceContext, runWithLogLevel };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-Cx1-ejLn.cjs');
2
+ const require_init = require('./init-DF4YrpSB.cjs');
3
3
  const require_values = require('./values-AxGpgYBA.cjs');
4
- const require_functional = require('./functional-DptEM9La.cjs');
4
+ const require_functional = require('./functional-BliCZgwO.cjs');
5
5
  const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
6
6
  const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
package/dist/messaging.js CHANGED
@@ -1,6 +1,6 @@
1
- import { L as createLinkFromHeaders, z as extractLinksFromBatch } from "./init-BvUtwZNx.js";
1
+ import { L as createLinkFromHeaders, z as extractLinksFromBatch } from "./init-CKHEf5g2.js";
2
2
  import { _ as readProperty, b as toAttributeValue, c as asScalar, g as nonEmptyString, h as isFunction, s as asRecord, v as resolveValue, y as splitNameOrOptions } from "./values-xBtdXtjA.js";
3
- import { l as withTracing } from "./functional-C4gGiBou.js";
3
+ import { l as withTracing } from "./functional-C-D0KQg6.js";
4
4
  import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
5
5
  import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
6
6
  import { SpanKind, context, propagation } from "@opentelemetry/api";
package/dist/metric.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Logger } from "./logger-C9UT1aZ_.cjs";
1
+ import { s as Logger } from "./logger-b0qgWFy7.cjs";
2
2
  import { c as FunnelStatus, l as OutcomeStatus, r as EventAttributes } from "./event-subscriber-DMACQA-1.cjs";
3
3
  import { t as MetricsCollector } from "./metric-testing-86WO1wan.cjs";
4
4
  //#region src/metric.d.ts
package/dist/metric.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Logger } from "./logger-C9UT1aZ_.js";
1
+ import { s as Logger } from "./logger-b0qgWFy7.js";
2
2
  import { c as FunnelStatus, l as OutcomeStatus, r as EventAttributes } from "./event-subscriber-DMACQA-1.js";
3
3
  import { t as MetricsCollector } from "./metric-testing-CbCxdPBp.js";
4
4
  //#region src/metric.d.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_canonical_log_line_processor = require('./canonical-log-line-processor-BU03jJeA.cjs');
2
+ const require_canonical_log_line_processor = require('./canonical-log-line-processor-CBRe-VsO.cjs');
3
3
  let _opentelemetry_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
4
4
 
5
5
  Object.defineProperty(exports, 'BatchSpanProcessor', {
@@ -1,3 +1,3 @@
1
- import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-DLeAQjgb.cjs";
1
+ import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-C-RdV5af.cjs";
2
2
  import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
  export { BatchSpanProcessor, type CanonicalLogLineOptions, CanonicalLogLineProcessor, SimpleSpanProcessor };
@@ -1,3 +1,3 @@
1
- import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-DDGzm-wi.js";
1
+ import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-BaFqHO5l.js";
2
2
  import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
  export { BatchSpanProcessor, type CanonicalLogLineOptions, CanonicalLogLineProcessor, SimpleSpanProcessor };
@@ -1,4 +1,4 @@
1
- import { t as CanonicalLogLineProcessor } from "./canonical-log-line-processor-BQ6NeZAk.js";
1
+ import { t as CanonicalLogLineProcessor } from "./canonical-log-line-processor-CntKMtpJ.js";
2
2
  import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
 
4
4
  export { BatchSpanProcessor, CanonicalLogLineProcessor, SimpleSpanProcessor };
package/dist/register.cjs CHANGED
@@ -35,5 +35,6 @@ node_module = require_rolldown_runtime.__toESM(node_module, 1);
35
35
  * @see https://nodejs.org/api/module.html#moduleregisterspecifier-parenturl-options
36
36
  */
37
37
  node_module.register("@opentelemetry/instrumentation/hook.mjs", require("url").pathToFileURL(__filename).href);
38
+ globalThis[Symbol.for("autotel.register")] = true;
38
39
 
39
40
  //#endregion
package/dist/register.js CHANGED
@@ -33,6 +33,7 @@ import * as nodeModule from "node:module";
33
33
  * @see https://nodejs.org/api/module.html#moduleregisterspecifier-parenturl-options
34
34
  */
35
35
  nodeModule.register("@opentelemetry/instrumentation/hook.mjs", import.meta.url);
36
+ globalThis[Symbol.for("autotel.register")] = true;
36
37
 
37
38
  //#endregion
38
39
  export { };
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
- import { s as Logger } from "./logger-C9UT1aZ_.cjs";
2
+ import { s as Logger } from "./logger-b0qgWFy7.cjs";
3
3
  import { Attributes, Link } from "@opentelemetry/api";
4
4
  //#region src/sampling.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
- import { s as Logger } from "./logger-C9UT1aZ_.js";
2
+ import { s as Logger } from "./logger-b0qgWFy7.js";
3
3
  import { Attributes, Link } from "@opentelemetry/api";
4
4
  //#region src/sampling.d.ts
5
5
  /**
package/dist/sampling.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-Cx1-ejLn.cjs');
2
+ const require_init = require('./init-DF4YrpSB.cjs');
3
3
 
4
4
  exports.AUTOTEL_DEBUG_BAGGAGE_KEY = require_init.AUTOTEL_DEBUG_BAGGAGE_KEY;
5
5
  exports.AUTOTEL_SAMPLING_RATE = require_init.AUTOTEL_SAMPLING_RATE;
@@ -1,2 +1,2 @@
1
- import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-Dud4XU2m.cjs";
1
+ import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-CLJmXMw0.cjs";
2
2
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
@@ -1,2 +1,2 @@
1
- import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-B_8orhSB.js";
1
+ import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-DBlX8Nv5.js";
2
2
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
package/dist/sampling.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as CompositeSampler, B as hashUnitInterval, D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, F as RandomSampler, H as markForceKept, I as UserIdSampler, L as createLinkFromHeaders, M as FeatureFlagSampler, N as KeyTargetRateSampler, O as AdaptiveSampler, P as NeverSampler, R as debugCaptureRequested, T as AUTOTEL_SAMPLING_RATE, U as resolveSamplingPreset, V as isForceKept, W as samplingPresets, j as DeterministicSampler, k as AlwaysSampler, w as AUTOTEL_DEBUG_BAGGAGE_KEY, z as extractLinksFromBatch } from "./init-BvUtwZNx.js";
1
+ import { A as CompositeSampler, B as hashUnitInterval, D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, F as RandomSampler, H as markForceKept, I as UserIdSampler, L as createLinkFromHeaders, M as FeatureFlagSampler, N as KeyTargetRateSampler, O as AdaptiveSampler, P as NeverSampler, R as debugCaptureRequested, T as AUTOTEL_SAMPLING_RATE, U as resolveSamplingPreset, V as isForceKept, W as samplingPresets, j as DeterministicSampler, k as AlwaysSampler, w as AUTOTEL_DEBUG_BAGGAGE_KEY, z as extractLinksFromBatch } from "./init-CKHEf5g2.js";
2
2
 
3
3
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-AxGpgYBA.cjs');
3
- const require_functional = require('./functional-DptEM9La.cjs');
3
+ const require_functional = require('./functional-BliCZgwO.cjs');
4
4
  const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { b as toAttributeValue, g as nonEmptyString, s as asRecord } from "./values-xBtdXtjA.js";
2
- import { l as withTracing } from "./functional-C4gGiBou.js";
2
+ import { l as withTracing } from "./functional-C-D0KQg6.js";
3
3
  import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
4
4
  import { SpanKind } from "@opentelemetry/api";
5
5
 
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-Cx1-ejLn.cjs');
2
+ const require_init = require('./init-DF4YrpSB.cjs');
3
3
 
4
4
  exports.TailSamplingSpanProcessor = require_init.TailSamplingSpanProcessor;
@@ -1,3 +1,3 @@
1
- import { C as TailSamplingSpanProcessor } from "./init-BvUtwZNx.js";
1
+ import { C as TailSamplingSpanProcessor } from "./init-CKHEf5g2.js";
2
2
 
3
3
  export { TailSamplingSpanProcessor };
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
- import { s as Logger } from "./logger-C9UT1aZ_.cjs";
2
+ import { s as Logger } from "./logger-b0qgWFy7.cjs";
3
3
  import { a as EventsValue, c as createEventCollector, i as EventsOutcome, n as EventData, o as assertEventTracked, r as EventsFunnelStep, s as assertOutcomeTracked, t as EventCollector } from "./event-testing-CBtnJXE5.cjs";
4
4
  import { SerializedSpan, TestSpanCollector, serializeSpan } from "./test-span-collector.cjs";
5
5
  import { SpanExporter } from "@opentelemetry/sdk-trace-base";
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
- import { s as Logger } from "./logger-C9UT1aZ_.js";
2
+ import { s as Logger } from "./logger-b0qgWFy7.js";
3
3
  import { a as EventsValue, c as createEventCollector, i as EventsOutcome, n as EventData, o as assertEventTracked, r as EventsFunnelStep, s as assertOutcomeTracked, t as EventCollector } from "./event-testing-CkPgV3Ii.js";
4
4
  import { SerializedSpan, TestSpanCollector, serializeSpan } from "./test-span-collector.js";
5
5
  import { Attributes, Link, SpanKind, SpanStatus, SpanStatusCode } from "@opentelemetry/api";
package/dist/webhook.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_structured_error = require('./structured-error-DynjWTTu.cjs');
3
- const require_functional = require('./functional-DptEM9La.cjs');
3
+ const require_functional = require('./functional-BliCZgwO.cjs');
4
4
  const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
package/dist/webhook.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as recordStructuredError } from "./structured-error-Y9y-1Pae.js";
2
- import { l as withTracing } from "./functional-C4gGiBou.js";
2
+ import { l as withTracing } from "./functional-C-D0KQg6.js";
3
3
  import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
4
4
  import { SpanKind, trace } from "@opentelemetry/api";
5
5
 
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-AxGpgYBA.cjs');
3
- const require_functional = require('./functional-DptEM9La.cjs');
3
+ const require_functional = require('./functional-BliCZgwO.cjs');
4
4
  const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
5
5
  const require_business_baggage = require('./business-baggage.cjs');
6
6
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -1,5 +1,5 @@
1
1
  import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
2
- import { l as withTracing } from "./functional-C4gGiBou.js";
2
+ import { l as withTracing } from "./functional-C-D0KQg6.js";
3
3
  import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
4
4
  import { createSafeBaggageSchema } from "./business-baggage.js";
5
5
  import { SpanKind, context, propagation } from "@opentelemetry/api";
package/dist/workflow.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
3
3
  const require_values = require('./values-AxGpgYBA.cjs');
4
- const require_functional = require('./functional-DptEM9La.cjs');
4
+ const require_functional = require('./functional-BliCZgwO.cjs');
5
5
  const require_trace_helpers = require('./trace-helpers.cjs');
6
6
  const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
7
7
  const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
package/dist/workflow.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { b as toAttributeValue, g as nonEmptyString, h as isFunction, l as asString, s as asRecord, x as toError } from "./values-xBtdXtjA.js";
2
- import { l as withTracing } from "./functional-C4gGiBou.js";
2
+ import { l as withTracing } from "./functional-C-D0KQg6.js";
3
3
  import { getActiveSpan } from "./trace-helpers.js";
4
4
  import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
5
5
  import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-Cx1-ejLn.cjs');
2
+ const require_init = require('./init-DF4YrpSB.cjs');
3
3
 
4
4
  exports.hasYamlConfig = require_init.hasYamlConfig;
5
5
  exports.loadYamlConfig = require_init.loadYamlConfig;
@@ -1,5 +1,5 @@
1
- import { g as SamplingPreset } from "./sampling-Dud4XU2m.cjs";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-CHanKvOq.cjs";
1
+ import { g as SamplingPreset } from "./sampling-CLJmXMw0.cjs";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-D5k8hBRg.cjs";
3
3
  //#region src/yaml-config.d.ts
4
4
  /** A value as a YAML document carries it: scalars, sequences, mappings. */
5
5
  export type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
@@ -1,5 +1,5 @@
1
- import { g as SamplingPreset } from "./sampling-B_8orhSB.js";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-Biyby8Br.js";
1
+ import { g as SamplingPreset } from "./sampling-DBlX8Nv5.js";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-DMjyzzbM.js";
3
3
  //#region src/yaml-config.d.ts
4
4
  /** A value as a YAML document carries it: scalars, sequences, mappings. */
5
5
  export type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
@@ -1,3 +1,3 @@
1
- import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-BvUtwZNx.js";
1
+ import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-CKHEf5g2.js";
2
2
 
3
3
  export { hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel",
3
- "version": "7.10.1",
3
+ "version": "8.0.0",
4
4
  "description": "Write Once, Observe Anywhere",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",