autotel 8.0.0 → 8.1.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 (103) hide show
  1. package/dist/{attribute-redacting-processor-rkV_WL-k.d.ts → attribute-redacting-processor-BrrdojmP.d.ts} +5 -1
  2. package/dist/{attribute-redacting-processor-CvBE0z1p.d.cts → attribute-redacting-processor-Cq7K8Okp.d.cts} +5 -1
  3. package/dist/attribute-redacting-processor.cjs +18 -8
  4. package/dist/attribute-redacting-processor.d.cts +1 -1
  5. package/dist/attribute-redacting-processor.d.ts +1 -1
  6. package/dist/attribute-redacting-processor.js +18 -8
  7. package/dist/{attributes-Ii3jDPsW.cjs → attributes-BqgJl9qA.cjs} +1 -1
  8. package/dist/{attributes-CuGx6cOI.js → attributes-BtwTkuX7.js} +1 -1
  9. package/dist/attributes.cjs +1 -1
  10. package/dist/attributes.js +1 -1
  11. package/dist/auto.cjs +1 -1
  12. package/dist/auto.js +1 -1
  13. package/dist/business-baggage.cjs +1 -1
  14. package/dist/business-baggage.js +1 -1
  15. package/dist/{canonical-log-line-processor-CBRe-VsO.cjs → canonical-log-line-processor-DScNq1g8.cjs} +1 -1
  16. package/dist/{canonical-log-line-processor-CntKMtpJ.js → canonical-log-line-processor-naZRETyk.js} +1 -1
  17. package/dist/{channel-D0eaVqn3.cjs → channel-3MV-4Aqv.cjs} +1 -1
  18. package/dist/{channel-BobQKsZd.js → channel-BNFp4Sfq.js} +1 -1
  19. package/dist/{correlated-events-BfpH5uS-.js → correlated-events-CZFe6Z1P.js} +1 -1
  20. package/dist/{correlated-events-DE_4A3oD.cjs → correlated-events-wCrXVUby.cjs} +1 -1
  21. package/dist/correlation-id.cjs +1 -1
  22. package/dist/correlation-id.js +1 -1
  23. package/dist/db.cjs +1 -1
  24. package/dist/db.js +1 -1
  25. package/dist/decorators.cjs +2 -2
  26. package/dist/decorators.d.cts +1 -1
  27. package/dist/decorators.d.ts +1 -1
  28. package/dist/decorators.js +2 -2
  29. package/dist/diagnostics.cjs +3 -3
  30. package/dist/diagnostics.js +3 -3
  31. package/dist/event.cjs +1 -1
  32. package/dist/event.js +1 -1
  33. package/dist/exception-fingerprint.cjs +1 -1
  34. package/dist/exception-fingerprint.js +1 -1
  35. package/dist/{functional-C-D0KQg6.js → functional-7uwlAIJd.js} +4 -4
  36. package/dist/{functional-DDunG47Y.d.cts → functional-CN_cqIX8.d.cts} +8 -1
  37. package/dist/{functional-BliCZgwO.cjs → functional-DCfOaKoM.cjs} +4 -4
  38. package/dist/{functional-DU7NXyih.d.ts → functional-IGZ-Urlq.d.ts} +8 -1
  39. package/dist/functional.cjs +1 -1
  40. package/dist/functional.d.cts +1 -1
  41. package/dist/functional.d.ts +1 -1
  42. package/dist/functional.js +1 -1
  43. package/dist/http.cjs +2 -2
  44. package/dist/http.js +2 -2
  45. package/dist/index.cjs +9 -8
  46. package/dist/index.d.cts +29 -5
  47. package/dist/index.d.ts +29 -5
  48. package/dist/index.js +9 -9
  49. package/dist/{init-DMjyzzbM.d.ts → init-BYq2sUXg.d.ts} +4 -2
  50. package/dist/{init-CKHEf5g2.js → init-D4TpmUIg.js} +48 -7
  51. package/dist/{init-DF4YrpSB.cjs → init-DlJvp1WH.cjs} +53 -6
  52. package/dist/{init-D5k8hBRg.d.cts → init-axM4kgR4.d.cts} +4 -2
  53. package/dist/instrumentation.cjs +2 -2
  54. package/dist/instrumentation.js +2 -2
  55. package/dist/{logger-8Ah2EkH1.js → logger-4VXLbqWx.js} +1 -1
  56. package/dist/{logger-C_3xDBOz.cjs → logger-CWFxTLtR.cjs} +1 -1
  57. package/dist/logger.cjs +1 -1
  58. package/dist/logger.js +1 -1
  59. package/dist/messaging-adapters.cjs +1 -1
  60. package/dist/messaging-adapters.js +1 -1
  61. package/dist/messaging.cjs +4 -4
  62. package/dist/messaging.js +4 -4
  63. package/dist/{node-require-BPsB09eC.cjs → node-require-BotQNkYw.cjs} +1 -1
  64. package/dist/{node-require-CkK_xzL-.js → node-require-CY0YUdvZ.js} +1 -1
  65. package/dist/parse-error.cjs +1 -1
  66. package/dist/parse-error.js +1 -1
  67. package/dist/policy.cjs +0 -0
  68. package/dist/policy.js +0 -0
  69. package/dist/processors.cjs +1 -1
  70. package/dist/processors.js +1 -1
  71. package/dist/sampling.cjs +1 -1
  72. package/dist/sampling.js +1 -1
  73. package/dist/semantic-helpers.cjs +2 -2
  74. package/dist/semantic-helpers.js +2 -2
  75. package/dist/{stable-hash-sLi1o4jj.cjs → stable-hash-58iP5-N-.cjs} +1 -1
  76. package/dist/{stable-hash-AOUgw1DW.js → stable-hash-DVEU2MqW.js} +1 -1
  77. package/dist/{structured-error-DynjWTTu.cjs → structured-error-Ci8s_M6u.cjs} +6 -6
  78. package/dist/{structured-error-Y9y-1Pae.js → structured-error-UEtlg9Uu.js} +6 -6
  79. package/dist/tail-sampling-processor.cjs +1 -1
  80. package/dist/tail-sampling-processor.js +1 -1
  81. package/dist/test-span-collector.cjs +1 -1
  82. package/dist/test-span-collector.js +1 -1
  83. package/dist/testing.cjs +11 -1
  84. package/dist/testing.js +12 -2
  85. package/dist/trace-helpers.cjs +2 -2
  86. package/dist/trace-helpers.js +2 -2
  87. package/dist/tracer-provider.cjs +1 -1
  88. package/dist/tracer-provider.js +1 -1
  89. package/dist/validate.cjs +3 -3
  90. package/dist/validate.js +3 -3
  91. package/dist/{values-AxGpgYBA.cjs → values-9A6nOyZm.cjs} +69 -3
  92. package/dist/{values-xBtdXtjA.js → values-Dm0yEC5p.js} +58 -4
  93. package/dist/webhook.cjs +3 -3
  94. package/dist/webhook.js +3 -3
  95. package/dist/workflow-distributed.cjs +3 -3
  96. package/dist/workflow-distributed.js +3 -3
  97. package/dist/workflow.cjs +3 -3
  98. package/dist/workflow.js +3 -3
  99. package/dist/yaml-config.cjs +1 -1
  100. package/dist/yaml-config.d.cts +1 -1
  101. package/dist/yaml-config.d.ts +1 -1
  102. package/dist/yaml-config.js +1 -1
  103. package/package.json +1 -1
@@ -34,7 +34,11 @@ type BuiltinPatternName = keyof typeof builtinPatterns;
34
34
  * Attribute redactor configuration
35
35
  */
36
36
  interface AttributeRedactorConfig {
37
- /** Patterns to match against attribute keys (redacts entire value if key matches) */
37
+ /**
38
+ * Patterns to match against attribute keys (redacts entire value if key matches).
39
+ * Each is tested against the full key and against its last dot segment, so
40
+ * `/^password$/i` matches `password` and `user.password`.
41
+ */
38
42
  keyPatterns?: RegExp[];
39
43
  /** Patterns to match against attribute values (redacts matched portion) */
40
44
  valuePatterns?: ValuePatternConfig[];
@@ -34,7 +34,11 @@ type BuiltinPatternName = keyof typeof builtinPatterns;
34
34
  * Attribute redactor configuration
35
35
  */
36
36
  interface AttributeRedactorConfig {
37
- /** Patterns to match against attribute keys (redacts entire value if key matches) */
37
+ /**
38
+ * Patterns to match against attribute keys (redacts entire value if key matches).
39
+ * Each is tested against the full key and against its last dot segment, so
40
+ * `/^password$/i` matches `password` and `user.password`.
41
+ */
38
42
  keyPatterns?: RegExp[];
39
43
  /** Patterns to match against attribute values (redacts matched portion) */
40
44
  valuePatterns?: ValuePatternConfig[];
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_values = require('./values-9A6nOyZm.cjs');
3
3
 
4
4
  //#region src/attribute-redacting-processor.ts
5
5
  /**
@@ -240,6 +240,21 @@ function resolveConfig(config) {
240
240
  return resolvedConfig;
241
241
  }
242
242
  /**
243
+ * A key pattern matches the full attribute key or its last dot segment, so an
244
+ * anchored name pattern (`^password$`) also catches `user.password` and
245
+ * `http.request.header.authorization`. Only the last segment: `auth.method`
246
+ * names metadata about auth, not a credential.
247
+ */
248
+ function keyIsSensitive(key, keyPatterns) {
249
+ const lastSegment = key.slice(key.lastIndexOf(".") + 1);
250
+ return keyPatterns.some((pattern) => {
251
+ pattern.lastIndex = 0;
252
+ if (pattern.test(key)) return true;
253
+ pattern.lastIndex = 0;
254
+ return lastSegment !== key && pattern.test(lastSegment);
255
+ });
256
+ }
257
+ /**
243
258
  * Create a redactor function from config
244
259
  */
245
260
  function createRedactorFromConfig(config) {
@@ -253,13 +268,8 @@ function createRedactorFromConfig(config) {
253
268
  const maskers = valuePatterns.filter((vp) => vp.mask).map((vp) => [cloneRegex(vp.pattern), vp.mask]);
254
269
  return (key, value) => {
255
270
  const text = require_values.asString(value);
256
- if (text !== void 0) {
257
- for (const pattern of keyPatterns) {
258
- pattern.lastIndex = 0;
259
- if (pattern.test(key)) return defaultReplacement;
260
- }
261
- if (pathSet.has(key)) return defaultReplacement;
262
- }
271
+ const isStringArray = Array.isArray(value) && value.every((item) => require_values.asString(item) !== void 0);
272
+ if ((text !== void 0 || isStringArray) && (keyIsSensitive(key, keyPatterns) || pathSet.has(key))) return Array.isArray(value) ? value.map(() => defaultReplacement) : defaultReplacement;
263
273
  if (text === void 0) {
264
274
  if (Array.isArray(value)) return value.map((item) => {
265
275
  const itemText = require_values.asString(item);
@@ -1,2 +1,2 @@
1
- import { a as AttributeRedactorPreset, c as REDACTOR_PATTERNS, d as builtinPatterns, f as createAttributeRedactor, i as AttributeRedactorFn, l as REDACTOR_PRESETS, m as normalizeAttributeRedactorConfig, n as AttributeRedactingProcessorOptions, o as BuiltinPatternName, p as createRedactedSpan, r as AttributeRedactorConfig, s as MaskFn, t as AttributeRedactingProcessor, u as ValuePatternConfig } from "./attribute-redacting-processor-CvBE0z1p.cjs";
1
+ import { a as AttributeRedactorPreset, c as REDACTOR_PATTERNS, d as builtinPatterns, f as createAttributeRedactor, i as AttributeRedactorFn, l as REDACTOR_PRESETS, m as normalizeAttributeRedactorConfig, n as AttributeRedactingProcessorOptions, o as BuiltinPatternName, p as createRedactedSpan, r as AttributeRedactorConfig, s as MaskFn, t as AttributeRedactingProcessor, u as ValuePatternConfig } from "./attribute-redacting-processor-Cq7K8Okp.cjs";
2
2
  export { AttributeRedactingProcessor, AttributeRedactingProcessorOptions, AttributeRedactorConfig, AttributeRedactorFn, AttributeRedactorPreset, BuiltinPatternName, MaskFn, REDACTOR_PATTERNS, REDACTOR_PRESETS, ValuePatternConfig, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig };
@@ -1,2 +1,2 @@
1
- import { a as AttributeRedactorPreset, c as REDACTOR_PATTERNS, d as builtinPatterns, f as createAttributeRedactor, i as AttributeRedactorFn, l as REDACTOR_PRESETS, m as normalizeAttributeRedactorConfig, n as AttributeRedactingProcessorOptions, o as BuiltinPatternName, p as createRedactedSpan, r as AttributeRedactorConfig, s as MaskFn, t as AttributeRedactingProcessor, u as ValuePatternConfig } from "./attribute-redacting-processor-rkV_WL-k.js";
1
+ import { a as AttributeRedactorPreset, c as REDACTOR_PATTERNS, d as builtinPatterns, f as createAttributeRedactor, i as AttributeRedactorFn, l as REDACTOR_PRESETS, m as normalizeAttributeRedactorConfig, n as AttributeRedactingProcessorOptions, o as BuiltinPatternName, p as createRedactedSpan, r as AttributeRedactorConfig, s as MaskFn, t as AttributeRedactingProcessor, u as ValuePatternConfig } from "./attribute-redacting-processor-BrrdojmP.js";
2
2
  export { AttributeRedactingProcessor, AttributeRedactingProcessorOptions, AttributeRedactorConfig, AttributeRedactorFn, AttributeRedactorPreset, BuiltinPatternName, MaskFn, REDACTOR_PATTERNS, REDACTOR_PRESETS, ValuePatternConfig, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig };
@@ -1,4 +1,4 @@
1
- import { _ as readProperty, h as isFunction, l as asString, s as asRecord, t as asBoolean } from "./values-xBtdXtjA.js";
1
+ import { g as isFunction, l as asString, s as asRecord, t as asBoolean, v as readProperty } from "./values-Dm0yEC5p.js";
2
2
 
3
3
  //#region src/attribute-redacting-processor.ts
4
4
  /**
@@ -239,6 +239,21 @@ function resolveConfig(config) {
239
239
  return resolvedConfig;
240
240
  }
241
241
  /**
242
+ * A key pattern matches the full attribute key or its last dot segment, so an
243
+ * anchored name pattern (`^password$`) also catches `user.password` and
244
+ * `http.request.header.authorization`. Only the last segment: `auth.method`
245
+ * names metadata about auth, not a credential.
246
+ */
247
+ function keyIsSensitive(key, keyPatterns) {
248
+ const lastSegment = key.slice(key.lastIndexOf(".") + 1);
249
+ return keyPatterns.some((pattern) => {
250
+ pattern.lastIndex = 0;
251
+ if (pattern.test(key)) return true;
252
+ pattern.lastIndex = 0;
253
+ return lastSegment !== key && pattern.test(lastSegment);
254
+ });
255
+ }
256
+ /**
242
257
  * Create a redactor function from config
243
258
  */
244
259
  function createRedactorFromConfig(config) {
@@ -252,13 +267,8 @@ function createRedactorFromConfig(config) {
252
267
  const maskers = valuePatterns.filter((vp) => vp.mask).map((vp) => [cloneRegex(vp.pattern), vp.mask]);
253
268
  return (key, value) => {
254
269
  const text = asString(value);
255
- if (text !== void 0) {
256
- for (const pattern of keyPatterns) {
257
- pattern.lastIndex = 0;
258
- if (pattern.test(key)) return defaultReplacement;
259
- }
260
- if (pathSet.has(key)) return defaultReplacement;
261
- }
270
+ const isStringArray = Array.isArray(value) && value.every((item) => asString(item) !== void 0);
271
+ if ((text !== void 0 || isStringArray) && (keyIsSensitive(key, keyPatterns) || pathSet.has(key))) return Array.isArray(value) ? value.map(() => defaultReplacement) : defaultReplacement;
262
272
  if (text === void 0) {
263
273
  if (Array.isArray(value)) return value.map((item) => {
264
274
  const itemText = asString(item);
@@ -1,4 +1,4 @@
1
- const require_values = require('./values-AxGpgYBA.cjs');
1
+ const require_values = require('./values-9A6nOyZm.cjs');
2
2
  const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
3
3
  const require_registry = require('./registry-B3ZJmUtU.cjs');
4
4
  let _opentelemetry_resources = require("@opentelemetry/resources");
@@ -1,4 +1,4 @@
1
- import { l as asString } from "./values-xBtdXtjA.js";
1
+ import { l as asString } from "./values-Dm0yEC5p.js";
2
2
  import { REDACTOR_PATTERNS } from "./attribute-redacting-processor.js";
3
3
  import { C as URLAttributes, S as ThreadAttributes, _ as RPCAttributes, a as DeviceAttributes, b as SessionAttributes, c as FaaSAttributes, d as HTTPAttributes, f as K8sAttributes, g as ProcessAttributes, h as OTelAttributes, i as DBAttributes, l as FeatureFlagAttributes, m as NetworkAttributes, n as CodeAttributes, o as ErrorAttributes, p as MessagingAttributes, r as ContainerAttributes, s as ExceptionAttributes, t as CloudAttributes, u as GraphQLAttributes, v as ServerAddressAttributes, w as UserAttributes, x as TLSAttributes, y as ServiceAttributes } from "./registry-Cy4JjIB-.js";
4
4
  import { resourceFromAttributes } from "@opentelemetry/resources";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_attributes = require('./attributes-Ii3jDPsW.cjs');
2
+ const require_attributes = require('./attributes-BqgJl9qA.cjs');
3
3
 
4
4
  exports.attrs = require_attributes.attrs;
5
5
  exports.autoRedactPII = require_attributes.autoRedactPII;
@@ -1,3 +1,3 @@
1
- import { _ as defaultGuardrails, a as identify, c as setDevice, d as setSession, f as setUser, g as checkDeprecatedAttribute, h as autoRedactPII, i as httpServer, l as setError, m as safeSetAttributes, n as dbClient, o as mergeServiceResource, p as mergeAttrs, r as httpClient, s as request, t as transaction, u as setException, v as validateAttribute, y as attrs } from "./attributes-CuGx6cOI.js";
1
+ import { _ as defaultGuardrails, a as identify, c as setDevice, d as setSession, f as setUser, g as checkDeprecatedAttribute, h as autoRedactPII, i as httpServer, l as setError, m as safeSetAttributes, n as dbClient, o as mergeServiceResource, p as mergeAttrs, r as httpClient, s as request, t as transaction, u as setException, v as validateAttribute, y as attrs } from "./attributes-BtwTkuX7.js";
2
2
 
3
3
  export { attrs, autoRedactPII, checkDeprecatedAttribute, dbClient, defaultGuardrails, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, transaction, validateAttribute };
package/dist/auto.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
2
- const require_init = require('./init-DF4YrpSB.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
3
  let node_module = require("node:module");
4
4
  node_module = require_rolldown_runtime.__toESM(node_module, 1);
5
5
  let import_in_the_middle = require("import-in-the-middle");
package/dist/auto.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as loadYamlConfig, a as init } from "./init-CKHEf5g2.js";
1
+ import { _ as loadYamlConfig, a as init } from "./init-D4TpmUIg.js";
2
2
  import * as nodeModule from "node:module";
3
3
  import { createAddHookMessageChannel } from "import-in-the-middle";
4
4
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_values = require('./values-9A6nOyZm.cjs');
3
3
  let _opentelemetry_api = require("@opentelemetry/api");
4
4
 
5
5
  //#region src/business-baggage.ts
@@ -1,4 +1,4 @@
1
- import { f as describeValue, i as asNumber, l as asString, t as asBoolean } from "./values-xBtdXtjA.js";
1
+ import { f as describeValue, i as asNumber, l as asString, t as asBoolean } from "./values-Dm0yEC5p.js";
2
2
  import { context, propagation } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/business-baggage.ts
@@ -1,4 +1,4 @@
1
- const require_values = require('./values-AxGpgYBA.cjs');
1
+ const require_values = require('./values-9A6nOyZm.cjs');
2
2
  let _opentelemetry_api_logs = require("@opentelemetry/api-logs");
3
3
 
4
4
  //#region src/pretty-log-formatter.ts
@@ -1,4 +1,4 @@
1
- import { i as asNumber, l as asString, p as hasProcess, s as asRecord, t as asBoolean, x as toError } from "./values-xBtdXtjA.js";
1
+ import { C as toError, i as asNumber, l as asString, m as hasProcess, s as asRecord, t as asBoolean } from "./values-Dm0yEC5p.js";
2
2
  import { SeverityNumber, logs } from "@opentelemetry/api-logs";
3
3
 
4
4
  //#region src/pretty-log-formatter.ts
@@ -1,4 +1,4 @@
1
- const require_node_require = require('./node-require-BPsB09eC.cjs');
1
+ const require_node_require = require('./node-require-BotQNkYw.cjs');
2
2
 
3
3
  //#region src/diagnostics/channel.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as safeRequire } from "./node-require-CkK_xzL-.js";
1
+ import { n as safeRequire } from "./node-require-CY0YUdvZ.js";
2
2
 
3
3
  //#region src/diagnostics/channel.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { h as isFunction } from "./values-xBtdXtjA.js";
1
+ import { g as isFunction } from "./values-Dm0yEC5p.js";
2
2
 
3
3
  //#region src/correlated-events.ts
4
4
  function sanitizeEventKey(input) {
@@ -1,4 +1,4 @@
1
- const require_values = require('./values-AxGpgYBA.cjs');
1
+ const require_values = require('./values-9A6nOyZm.cjs');
2
2
 
3
3
  //#region src/correlated-events.ts
4
4
  function sanitizeEventKey(input) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-DF4YrpSB.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
3
 
4
4
  exports.CORRELATION_ID_BAGGAGE_KEY = require_init.CORRELATION_ID_BAGGAGE_KEY;
5
5
  exports.generateCorrelationId = require_init.generateCorrelationId;
@@ -1,3 +1,3 @@
1
- import { $ as generateCorrelationId, Q as CORRELATION_ID_BAGGAGE_KEY, at as setCorrelationIdInBaggage, et as getCorrelationId, it as setCorrelationId, nt as getOrCreateCorrelationId, rt as runWithCorrelationId, tt as getCorrelationStorage } from "./init-CKHEf5g2.js";
1
+ import { $ as CORRELATION_ID_BAGGAGE_KEY, at as setCorrelationId, et as generateCorrelationId, it as runWithCorrelationId, nt as getCorrelationStorage, ot as setCorrelationIdInBaggage, rt as getOrCreateCorrelationId, tt as getCorrelationId } from "./init-D4TpmUIg.js";
2
2
 
3
3
  export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
package/dist/db.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_values = require('./values-9A6nOyZm.cjs');
3
3
  const require_config = require('./config.cjs');
4
4
  let _opentelemetry_api = require("@opentelemetry/api");
5
5
 
package/dist/db.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as readProperty, h as isFunction, l as asString, r as asFunction, s as asRecord } from "./values-xBtdXtjA.js";
1
+ import { g as isFunction, l as asString, r as asFunction, s as asRecord, v as readProperty } from "./values-Dm0yEC5p.js";
2
2
  import { getConfig } from "./config.js";
3
3
  import { SpanStatusCode } from "@opentelemetry/api";
4
4
 
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-DF4YrpSB.cjs');
3
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
+ const require_values = require('./values-9A6nOyZm.cjs');
4
4
  const require_config = require('./config.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
2
- import { h as TracingOptions } from "./functional-DDunG47Y.cjs";
2
+ import { h as TracingOptions } from "./functional-CN_cqIX8.cjs";
3
3
  //#region src/decorators.d.ts
4
4
  /**
5
5
  * Options for @Trace method decorator
@@ -1,5 +1,5 @@
1
1
  import { n as TraceContext } from "./trace-context-CqCblIQE.js";
2
- import { h as TracingOptions } from "./functional-DU7NXyih.js";
2
+ import { h as TracingOptions } from "./functional-IGZ-Urlq.js";
3
3
  //#region src/decorators.d.ts
4
4
  /**
5
5
  * Options for @Trace method decorator
@@ -1,5 +1,5 @@
1
- import { G as createTraceContext } from "./init-CKHEf5g2.js";
2
- import { y as splitNameOrOptions } from "./values-xBtdXtjA.js";
1
+ import { K as createTraceContext } from "./init-D4TpmUIg.js";
2
+ import { b as splitNameOrOptions } from "./values-Dm0yEC5p.js";
3
3
  import { getConfig } from "./config.js";
4
4
  import { SpanStatusCode } from "@opentelemetry/api";
5
5
 
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-AxGpgYBA.cjs');
3
- const require_node_require = require('./node-require-BPsB09eC.cjs');
4
- const require_channel = require('./channel-D0eaVqn3.cjs');
2
+ const require_values = require('./values-9A6nOyZm.cjs');
3
+ const require_node_require = require('./node-require-BotQNkYw.cjs');
4
+ const require_channel = require('./channel-3MV-4Aqv.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
  let _opentelemetry_api_logs = require("@opentelemetry/api-logs");
7
7
  let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
@@ -1,6 +1,6 @@
1
- import { l as asString } from "./values-xBtdXtjA.js";
2
- import { n as safeRequire } from "./node-require-CkK_xzL-.js";
3
- import { n as subscribeChannel, r as subscribeTracingChannel, t as diagnosticsChannelAvailable } from "./channel-BobQKsZd.js";
1
+ import { l as asString } from "./values-Dm0yEC5p.js";
2
+ import { n as safeRequire } from "./node-require-CY0YUdvZ.js";
3
+ import { n as subscribeChannel, r as subscribeTracingChannel, t as diagnosticsChannelAvailable } from "./channel-BNFp4Sfq.js";
4
4
  import { SpanKind, SpanStatusCode, context, defaultTextMapGetter, defaultTextMapSetter, propagation, trace } from "@opentelemetry/api";
5
5
  import { SeverityNumber, logs } from "@opentelemetry/api-logs";
6
6
  import { ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_NETWORK_PROTOCOL_VERSION, ATTR_SERVER_ADDRESS, ATTR_SERVER_PORT, ATTR_URL_FULL, ATTR_URL_PATH, ATTR_URL_SCHEME, ATTR_USER_AGENT_ORIGINAL } from "@opentelemetry/semantic-conventions";
package/dist/event.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-DF4YrpSB.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
3
 
4
4
  exports.Event = require_init.Event;
5
5
  exports.getEvents = require_init.getEvents;
package/dist/event.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as Event, f as getEvents, p as resetEvents } from "./init-CKHEf5g2.js";
1
+ import { d as Event, f as getEvents, p as resetEvents } from "./init-D4TpmUIg.js";
2
2
 
3
3
  export { Event, getEvents, resetEvents };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_values = require('./values-9A6nOyZm.cjs');
3
3
 
4
4
  //#region src/exception-fingerprint.ts
5
5
  /** Attribute the fingerprint is written to. */
@@ -1,4 +1,4 @@
1
- import { g as nonEmptyString } from "./values-xBtdXtjA.js";
1
+ import { _ as nonEmptyString } from "./values-Dm0yEC5p.js";
2
2
 
3
3
  //#region src/exception-fingerprint.ts
4
4
  /** Attribute the fingerprint is written to. */
@@ -1,8 +1,8 @@
1
- import { D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, G as createTraceContext, J as getActiveContextWithBaggage, R as debugCaptureRequested, T as AUTOTEL_SAMPLING_RATE, V as isForceKept, X as getEventQueue, Y as getContextStorage, b as getRequestSpanIn, h as runInOperationContext, i as getSdk, k as AlwaysSampler, n as getConfiguredSampler, q as explicitSpanStatus, t as getConfig, x as rememberRequestAttributes } from "./init-CKHEf5g2.js";
2
- import { l as asString, m as isDevelopment } from "./values-xBtdXtjA.js";
1
+ import { A as AlwaysSampler, D as AUTOTEL_SAMPLING_TAIL_EVALUATED, E as AUTOTEL_SAMPLING_RATE, H as isForceKept, J as explicitSpanStatus, K as createTraceContext, O as AUTOTEL_SAMPLING_TAIL_KEEP, S as rememberRequestAttributes, X as getContextStorage, Y as getActiveContextWithBaggage, Z as getEventQueue, h as runInOperationContext, i as getSdk, n as getConfiguredSampler, t as getConfig, x as getRequestSpanIn, z as debugCaptureRequested } from "./init-D4TpmUIg.js";
2
+ import { h as isDevelopment, l as asString } from "./values-Dm0yEC5p.js";
3
3
  import { getForceFlushableProvider } from "./tracer-provider.js";
4
4
  import { getConfig as getConfig$1 } from "./config.js";
5
- import { a as flattenToAttributes } from "./structured-error-Y9y-1Pae.js";
5
+ import { a as flattenToAttributes } from "./structured-error-UEtlg9Uu.js";
6
6
  import { evidenceAttribute } from "./evidence.js";
7
7
  import { setSpanName } from "./trace-helpers.js";
8
8
  import { SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -734,7 +734,7 @@ const trace$1 = Object.assign(traceImpl, { run });
734
734
  * ```
735
735
  */
736
736
  function withTracing(options = {}) {
737
- return (fnFactory) => wrapFactoryWithTracing(fnFactory, options);
737
+ return ((fnFactory) => wrapFactoryWithTracing(fnFactory, options));
738
738
  }
739
739
  function instrument(options) {
740
740
  if (!options || typeof options !== "object") throw new TypeError("instrument: expected { key, fn } or { functions: { name: fn } }");
@@ -250,6 +250,13 @@ declare function run<TReturn>(options: TracingOptions<[], TReturn>, operation: (
250
250
  declare const trace$1: typeof traceImpl & {
251
251
  run: typeof run;
252
252
  };
253
+ /** `T` when it has no awaitable member; otherwise `never`, so the match fails. */
254
+ type NotThenable<T> = T extends PromiseLike<unknown> ? never : T;
255
+ interface TracingWrapper<TCfgArgs extends unknown[], TCfgReturn> {
256
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => PromiseLike<TReturn>): (...args: TArgs) => Promise<TReturn>;
257
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => NotThenable<TReturn>): (...args: TArgs) => TReturn;
258
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => TReturn | PromiseLike<TReturn>): WrappedFunction<TArgs, TReturn>;
259
+ }
253
260
  /**
254
261
  * Approach 2: withTracing() - Middleware-style composable wrapper
255
262
  *
@@ -283,7 +290,7 @@ declare const trace$1: typeof traceImpl & {
283
290
  * )(ctx => async (data) => { })
284
291
  * ```
285
292
  */
286
- declare function withTracing<TCfgArgs extends unknown[] = unknown[], TCfgReturn = unknown>(options?: TracingOptions<TCfgArgs, TCfgReturn>): <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => TReturn | PromiseLike<TReturn>) => WrappedFunction<TArgs, TReturn>;
293
+ declare function withTracing<TCfgArgs extends unknown[] = unknown[], TCfgReturn = unknown>(options?: TracingOptions<TCfgArgs, TCfgReturn>): TracingWrapper<TCfgArgs, TCfgReturn>;
287
294
  /**
288
295
  * Approach 3: instrument() - Batch auto-instrumentation
289
296
  *
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
2
- const require_init = require('./init-DF4YrpSB.cjs');
3
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
+ const require_values = require('./values-9A6nOyZm.cjs');
4
4
  const require_tracer_provider = require('./tracer-provider.cjs');
5
5
  const require_config = require('./config.cjs');
6
- const require_structured_error = require('./structured-error-DynjWTTu.cjs');
6
+ const require_structured_error = require('./structured-error-Ci8s_M6u.cjs');
7
7
  const require_evidence = require('./evidence.cjs');
8
8
  const require_trace_helpers = require('./trace-helpers.cjs');
9
9
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -737,7 +737,7 @@ const trace = Object.assign(traceImpl, { run });
737
737
  * ```
738
738
  */
739
739
  function withTracing(options = {}) {
740
- return (fnFactory) => wrapFactoryWithTracing(fnFactory, options);
740
+ return ((fnFactory) => wrapFactoryWithTracing(fnFactory, options));
741
741
  }
742
742
  function instrument(options) {
743
743
  if (!options || typeof options !== "object") throw new TypeError("instrument: expected { key, fn } or { functions: { name: fn } }");
@@ -250,6 +250,13 @@ declare function run<TReturn>(options: TracingOptions<[], TReturn>, operation: (
250
250
  declare const trace$1: typeof traceImpl & {
251
251
  run: typeof run;
252
252
  };
253
+ /** `T` when it has no awaitable member; otherwise `never`, so the match fails. */
254
+ type NotThenable<T> = T extends PromiseLike<unknown> ? never : T;
255
+ interface TracingWrapper<TCfgArgs extends unknown[], TCfgReturn> {
256
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => PromiseLike<TReturn>): (...args: TArgs) => Promise<TReturn>;
257
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => NotThenable<TReturn>): (...args: TArgs) => TReturn;
258
+ <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => TReturn | PromiseLike<TReturn>): WrappedFunction<TArgs, TReturn>;
259
+ }
253
260
  /**
254
261
  * Approach 2: withTracing() - Middleware-style composable wrapper
255
262
  *
@@ -283,7 +290,7 @@ declare const trace$1: typeof traceImpl & {
283
290
  * )(ctx => async (data) => { })
284
291
  * ```
285
292
  */
286
- declare function withTracing<TCfgArgs extends unknown[] = unknown[], TCfgReturn = unknown>(options?: TracingOptions<TCfgArgs, TCfgReturn>): <TArgs extends TCfgArgs, TReturn extends TCfgReturn>(fnFactory: (ctx: TraceContext) => (...args: TArgs) => TReturn | PromiseLike<TReturn>) => WrappedFunction<TArgs, TReturn>;
293
+ declare function withTracing<TCfgArgs extends unknown[] = unknown[], TCfgReturn = unknown>(options?: TracingOptions<TCfgArgs, TCfgReturn>): TracingWrapper<TCfgArgs, TCfgReturn>;
287
294
  /**
288
295
  * Approach 3: instrument() - Batch auto-instrumentation
289
296
  *
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_functional = require('./functional-BliCZgwO.cjs');
2
+ const require_functional = require('./functional-DCfOaKoM.cjs');
3
3
 
4
4
  exports.ctx = require_functional.ctx;
5
5
  exports.getActiveTraceContext = require_functional.getActiveTraceContext;
@@ -1,3 +1,3 @@
1
1
  import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
2
- import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-DDunG47Y.cjs";
2
+ import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-CN_cqIX8.cjs";
3
3
  export { type InstrumentOptions, type SingleInstrumentOptions, SpanOptions, type TraceContext, type TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
@@ -1,3 +1,3 @@
1
1
  import { n as TraceContext } from "./trace-context-CqCblIQE.js";
2
- import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-DU7NXyih.js";
2
+ import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-IGZ-Urlq.js";
3
3
  export { type InstrumentOptions, type SingleInstrumentOptions, SpanOptions, type TraceContext, type TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
@@ -1,3 +1,3 @@
1
- import { a as span, c as withNewContext, i as requestCtx, l as withTracing, n as getActiveTraceContext, o as trace, r as instrument, s as withBaggage, t as ctx } from "./functional-C-D0KQg6.js";
1
+ import { a as span, c as withNewContext, i as requestCtx, l as withTracing, n as getActiveTraceContext, o as trace, r as instrument, s as withBaggage, t as ctx } from "./functional-7uwlAIJd.js";
2
2
 
3
3
  export { ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
package/dist/http.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-DF4YrpSB.cjs');
3
- const require_values = require('./values-AxGpgYBA.cjs');
2
+ const require_init = require('./init-DlJvp1WH.cjs');
3
+ const require_values = require('./values-9A6nOyZm.cjs');
4
4
  const require_config = require('./config.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
package/dist/http.js CHANGED
@@ -1,5 +1,5 @@
1
- import { J as getActiveContextWithBaggage } from "./init-CKHEf5g2.js";
2
- import { _ as readProperty, h as isFunction, i as asNumber, l as asString } from "./values-xBtdXtjA.js";
1
+ import { Y as getActiveContextWithBaggage } from "./init-D4TpmUIg.js";
2
+ import { g as isFunction, i as asNumber, l as asString, v as readProperty } from "./values-Dm0yEC5p.js";
3
3
  import { getConfig } from "./config.js";
4
4
  import { SpanStatusCode, context, propagation } from "@opentelemetry/api";
5
5
 
package/dist/index.cjs CHANGED
@@ -1,25 +1,25 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
3
- const require_init = require('./init-DF4YrpSB.cjs');
4
- const require_values = require('./values-AxGpgYBA.cjs');
3
+ const require_init = require('./init-DlJvp1WH.cjs');
4
+ const require_values = require('./values-9A6nOyZm.cjs');
5
5
  const require_tracer_provider = require('./tracer-provider.cjs');
6
- const require_structured_error = require('./structured-error-DynjWTTu.cjs');
6
+ const require_structured_error = require('./structured-error-Ci8s_M6u.cjs');
7
7
  const require_filtering_span_processor = require('./filtering-span-processor.cjs');
8
8
  const require_span_name_normalizer = require('./span-name-normalizer.cjs');
9
9
  const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
10
- const require_canonical_log_line_processor = require('./canonical-log-line-processor-CBRe-VsO.cjs');
10
+ const require_canonical_log_line_processor = require('./canonical-log-line-processor-DScNq1g8.cjs');
11
11
  const require_metric = require('./metric.cjs');
12
- const require_functional = require('./functional-BliCZgwO.cjs');
12
+ const require_functional = require('./functional-DCfOaKoM.cjs');
13
13
  const require_trace_helpers = require('./trace-helpers.cjs');
14
- const require_stable_hash = require('./stable-hash-sLi1o4jj.cjs');
15
- const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
14
+ const require_stable_hash = require('./stable-hash-58iP5-N-.cjs');
15
+ const require_correlated_events = require('./correlated-events-wCrXVUby.cjs');
16
16
  const require_parse_error = require('./parse-error.cjs');
17
17
  const require_drain_pipeline = require('./drain-pipeline.cjs');
18
18
  const require_metric_helpers = require('./metric-helpers.cjs');
19
19
  const require_semantic_helpers = require('./semantic-helpers.cjs');
20
20
  const require_registry = require('./registry-B3ZJmUtU.cjs');
21
21
  const require_semantic_conventions = require('./semantic-conventions.cjs');
22
- const require_attributes = require('./attributes-Ii3jDPsW.cjs');
22
+ const require_attributes = require('./attributes-BqgJl9qA.cjs');
23
23
  const require_messaging = require('./messaging.cjs');
24
24
  const require_business_baggage = require('./business-baggage.cjs');
25
25
  const require_workflow = require('./workflow.cjs');
@@ -560,6 +560,7 @@ exports.AttributeRedactingProcessor = require_attribute_redacting_processor.Attr
560
560
  exports.BaggageSpanProcessor = require_init.BaggageSpanProcessor;
561
561
  exports.BusinessBaggage = require_business_baggage.BusinessBaggage;
562
562
  exports.CORRELATION_ID_BAGGAGE_KEY = require_init.CORRELATION_ID_BAGGAGE_KEY;
563
+ exports.EnrichedSpanProcessor = require_init.EnrichedSpanProcessor;
563
564
  exports.Event = require_init.Event;
564
565
  exports.FilteringSpanProcessor = require_filtering_span_processor.FilteringSpanProcessor;
565
566
  exports.HTTPAttributes = require_registry.HTTPAttributes;