autotel 7.5.0 → 7.6.1

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 (64) hide show
  1. package/README.md +12 -12
  2. package/dist/{attributes-Dt4YUYbP.js → attributes-DQQl-D6Q.js} +3 -1
  3. package/dist/{attributes-Cxys8tgr.cjs → attributes-DnfoMlA9.cjs} +3 -1
  4. package/dist/attributes.cjs +1 -1
  5. package/dist/attributes.d.cts +1 -1
  6. package/dist/attributes.d.ts +1 -1
  7. package/dist/attributes.js +1 -1
  8. package/dist/auto.cjs +1 -1
  9. package/dist/auto.js +1 -1
  10. package/dist/correlation-id.cjs +1 -1
  11. package/dist/correlation-id.js +1 -1
  12. package/dist/db.cjs +7 -7
  13. package/dist/db.js +7 -7
  14. package/dist/decorators.cjs +1 -1
  15. package/dist/decorators.js +1 -1
  16. package/dist/event.cjs +1 -1
  17. package/dist/event.js +1 -1
  18. package/dist/{functional-B86zszmZ.js → functional-BXgTFVTA.js} +1 -1
  19. package/dist/{functional-BOZ3me6w.cjs → functional-zasLBPyX.cjs} +1 -1
  20. package/dist/functional.cjs +1 -1
  21. package/dist/functional.js +1 -1
  22. package/dist/http.cjs +12 -9
  23. package/dist/http.js +12 -9
  24. package/dist/{index-CwrNAsgk.d.ts → index-CsoeCsGL.d.ts} +2 -2
  25. package/dist/{index-DQHf4cNl.d.cts → index-Y7If_wH4.d.cts} +2 -2
  26. package/dist/index.cjs +4 -4
  27. package/dist/index.d.cts +2 -2
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +4 -4
  30. package/dist/{init-DDCgmfa4.d.ts → init-BHV2gWsV.d.ts} +1 -1
  31. package/dist/{init-B2kv4bLO.js → init-Bst_BhiS.js} +4 -1
  32. package/dist/{init-BU7qa-Ii.d.cts → init-DxmeJ3d0.d.cts} +1 -1
  33. package/dist/{init-CNUkdwke.cjs → init-OSYC19sK.cjs} +4 -1
  34. package/dist/instrumentation.cjs +3 -1
  35. package/dist/instrumentation.js +3 -1
  36. package/dist/messaging.cjs +2 -4
  37. package/dist/messaging.js +2 -4
  38. package/dist/{policy-CbpP4tFH.d.cts → policy-C4QcZnqv.d.cts} +2 -4
  39. package/dist/{policy-CbpP4tFH.d.ts → policy-C4QcZnqv.d.ts} +2 -4
  40. package/dist/policy.cjs +0 -0
  41. package/dist/policy.d.cts +1 -1
  42. package/dist/policy.d.ts +1 -1
  43. package/dist/policy.js +0 -0
  44. package/dist/{registry-DVSmWg6Y.js → registry-Cy4JjIB-.js} +2 -2
  45. package/dist/{registry-DYgvb62e.cjs → registry-DIoklBz5.cjs} +2 -2
  46. package/dist/sampling.cjs +1 -1
  47. package/dist/sampling.js +1 -1
  48. package/dist/semantic-conventions.cjs +1 -1
  49. package/dist/semantic-conventions.js +1 -1
  50. package/dist/semantic-helpers.cjs +4 -5
  51. package/dist/semantic-helpers.js +4 -5
  52. package/dist/tail-sampling-processor.cjs +1 -1
  53. package/dist/tail-sampling-processor.js +1 -1
  54. package/dist/webhook.cjs +1 -1
  55. package/dist/webhook.js +1 -1
  56. package/dist/workflow-distributed.cjs +1 -1
  57. package/dist/workflow-distributed.js +1 -1
  58. package/dist/workflow.cjs +1 -1
  59. package/dist/workflow.js +1 -1
  60. package/dist/yaml-config.cjs +1 -1
  61. package/dist/yaml-config.d.cts +1 -1
  62. package/dist/yaml-config.d.ts +1 -1
  63. package/dist/yaml-config.js +1 -1
  64. package/package.json +34 -34
package/README.md CHANGED
@@ -1027,10 +1027,10 @@ export const processUser = withTracing({})((ctx) => async (user) => {
1027
1027
  // Warn on deprecated attributes
1028
1028
  safeSetAttributes(
1029
1029
  ctx,
1030
- { 'http.method': 'GET' }, // Deprecated!
1030
+ { 'http.request.method': 'GET' }, // Deprecated!
1031
1031
  { guardrails: { warnDeprecated: true } },
1032
1032
  );
1033
- // Console: [autotel/attributes] Attribute "http.method" is deprecated. Use "http.request.method" instead.
1033
+ // Console: [autotel/attributes] Attribute "http.request.method" is deprecated. Use "http.request.method" instead.
1034
1034
  });
1035
1035
  ```
1036
1036
 
@@ -1161,7 +1161,7 @@ export const publishOrder = traceProducer({
1161
1161
  **Automatic Span Attributes (OTel Semantic Conventions):**
1162
1162
 
1163
1163
  - `messaging.system` - The messaging system (kafka, sqs, rabbitmq, etc.)
1164
- - `messaging.operation` - Always "publish" for producers
1164
+ - `messaging.operation.type` - Always "publish" for producers
1165
1165
  - `messaging.destination.name` - Topic/queue name
1166
1166
  - `messaging.message.id` - Extracted message ID (if configured)
1167
1167
  - `messaging.kafka.destination.partition` - Partition number (Kafka-specific)
@@ -1222,7 +1222,7 @@ export const processWithDLQ = traceConsumer({
1222
1222
 
1223
1223
  - `messaging.consumer.group` - Consumer group name
1224
1224
  - `messaging.batch.message_count` - Batch size (if batch mode)
1225
- - `messaging.operation` - "receive" or "process"
1225
+ - `messaging.operation.type` - "receive" or "process"
1226
1226
 
1227
1227
  ### Consumer Lag Metrics
1228
1228
 
@@ -3022,8 +3022,8 @@ export function instrumentAxios(
3022
3022
  });
3023
3023
 
3024
3024
  // Follow OpenTelemetry semantic conventions
3025
- span.setAttribute('http.method', method);
3026
- span.setAttribute('http.url', url);
3025
+ span.setAttribute('http.request.method', method);
3026
+ span.setAttribute('url.full', url);
3027
3027
 
3028
3028
  if (captureHeaders && requestConfig.headers) {
3029
3029
  span.setAttribute(
@@ -3050,7 +3050,7 @@ export function instrumentAxios(
3050
3050
  (response: AxiosResponse) => {
3051
3051
  const span = (response.config as any).__span;
3052
3052
  if (span) {
3053
- span.setAttribute('http.status_code', response.status);
3053
+ span.setAttribute('http.response.status_code', response.status);
3054
3054
 
3055
3055
  if (captureResponseBody && response.data) {
3056
3056
  span.setAttribute(
@@ -3068,7 +3068,7 @@ export function instrumentAxios(
3068
3068
  const span = error.config?.__span;
3069
3069
  if (span) {
3070
3070
  if (error.response) {
3071
- span.setAttribute('http.status_code', error.response.status);
3071
+ span.setAttribute('http.response.status_code', error.response.status);
3072
3072
  }
3073
3073
  // Step 9: Finalize span on error (records exception)
3074
3074
  finalizeSpan(span, error);
@@ -3156,10 +3156,10 @@ Use standard attribute names from [OpenTelemetry Semantic Conventions](https://o
3156
3156
 
3157
3157
  ```typescript
3158
3158
  // ✅ Good - Standard conventions
3159
- span.setAttribute('http.method', 'GET');
3160
- span.setAttribute('http.status_code', 200);
3161
- span.setAttribute('db.system', 'postgresql');
3162
- span.setAttribute('db.operation', 'SELECT');
3159
+ span.setAttribute('http.request.method', 'GET');
3160
+ span.setAttribute('http.response.status_code', 200);
3161
+ span.setAttribute('db.system.name', 'postgresql');
3162
+ span.setAttribute('db.operation.name', 'SELECT');
3163
3163
  span.setAttribute('messaging.system', 'kafka');
3164
3164
 
3165
3165
  // ❌ Bad - Custom names
@@ -1,6 +1,6 @@
1
1
  import { l as asString } from "./values-BenyvWKz.js";
2
2
  import { REDACTOR_PATTERNS } from "./attribute-redacting-processor.js";
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-DVSmWg6Y.js";
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";
5
5
 
6
6
  //#region src/attributes/builders.ts
@@ -351,6 +351,8 @@ const DEPRECATED_ATTRIBUTES = /* @__PURE__ */ new Map([
351
351
  ["db.operation", "db.operation.name"],
352
352
  ["db.statement", "db.query.text"],
353
353
  ["db.system", "db.system.name"],
354
+ ["rpc.system", "rpc.system.name"],
355
+ ["messaging.operation", "messaging.operation.type"],
354
356
  ["db.collection", "db.collection.name"],
355
357
  ["db.instance.id", null],
356
358
  ["db.jdbc.driver_classname", null],
@@ -1,6 +1,6 @@
1
1
  const require_values = require('./values-DApyq53y.cjs');
2
2
  const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
3
- const require_registry = require('./registry-DYgvb62e.cjs');
3
+ const require_registry = require('./registry-DIoklBz5.cjs');
4
4
  let _opentelemetry_resources = require("@opentelemetry/resources");
5
5
 
6
6
  //#region src/attributes/builders.ts
@@ -351,6 +351,8 @@ const DEPRECATED_ATTRIBUTES = /* @__PURE__ */ new Map([
351
351
  ["db.operation", "db.operation.name"],
352
352
  ["db.statement", "db.query.text"],
353
353
  ["db.system", "db.system.name"],
354
+ ["rpc.system", "rpc.system.name"],
355
+ ["messaging.operation", "messaging.operation.type"],
354
356
  ["db.collection", "db.collection.name"],
355
357
  ["db.instance.id", null],
356
358
  ["db.jdbc.driver_classname", null],
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_attributes = require('./attributes-Cxys8tgr.cjs');
2
+ const require_attributes = require('./attributes-DnfoMlA9.cjs');
3
3
 
4
4
  exports.attrs = require_attributes.attrs;
5
5
  exports.autoRedactPII = require_attributes.autoRedactPII;
@@ -1,2 +1,2 @@
1
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-DQHf4cNl.cjs";
1
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-Y7If_wH4.cjs";
2
2
  export { type AttributeGuardrails, type AttributePolicy, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ContainerAttrs, type DBAttrs, type DeploymentAttrs, type DeviceAttrs, type ErrorAttrs, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, type GraphQLAttrs, type HTTPClientAttrs, type HTTPServerAttrs, type K8sAttrs, type MessagingAttrs, type NetworkAttrs, type OTelAttrs, type PeerAttrs, type ProcessAttrs, type RPCAttrs, type ServerAddressAttrs, type ServiceAttrs, type SessionAttrs, type TLSAttrs, type ThreadAttrs, type URLAttrs, type UserAttrs, attrs, autoRedactPII, checkDeprecatedAttribute, dbClient, defaultGuardrails, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, transaction, validateAttribute };
@@ -1,2 +1,2 @@
1
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-CwrNAsgk.js";
1
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-CsoeCsGL.js";
2
2
  export { type AttributeGuardrails, type AttributePolicy, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ContainerAttrs, type DBAttrs, type DeploymentAttrs, type DeviceAttrs, type ErrorAttrs, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, type GraphQLAttrs, type HTTPClientAttrs, type HTTPServerAttrs, type K8sAttrs, type MessagingAttrs, type NetworkAttrs, type OTelAttrs, type PeerAttrs, type ProcessAttrs, type RPCAttrs, type ServerAddressAttrs, type ServiceAttrs, type SessionAttrs, type TLSAttrs, type ThreadAttrs, type URLAttrs, type UserAttrs, attrs, autoRedactPII, checkDeprecatedAttribute, dbClient, defaultGuardrails, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, transaction, validateAttribute };
@@ -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-Dt4YUYbP.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-DQQl-D6Q.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-C_NdSu1c.cjs');
2
- const require_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.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-B2kv4bLO.js";
1
+ import { _ as loadYamlConfig, a as init } from "./init-Bst_BhiS.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_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.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 getCorrelationStorage, Q as getCorrelationId, X as CORRELATION_ID_BAGGAGE_KEY, Z as generateCorrelationId, et as getOrCreateCorrelationId, nt as setCorrelationId, rt as setCorrelationIdInBaggage, tt as runWithCorrelationId } from "./init-B2kv4bLO.js";
1
+ import { $ as getCorrelationStorage, Q as getCorrelationId, X as CORRELATION_ID_BAGGAGE_KEY, Z as generateCorrelationId, et as getOrCreateCorrelationId, nt as setCorrelationId, rt as setCorrelationIdInBaggage, tt as runWithCorrelationId } from "./init-Bst_BhiS.js";
2
2
 
3
3
  export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
package/dist/db.cjs CHANGED
@@ -45,8 +45,8 @@ async function tracebQuery(dbSystem, operation, fn, attributes) {
45
45
  const startTime = performance.now();
46
46
  try {
47
47
  span.setAttributes({
48
- "db.system": dbSystem,
49
- "db.operation": operation,
48
+ "db.system.name": dbSystem,
49
+ "db.operation.name": operation,
50
50
  ...attributes
51
51
  });
52
52
  const result = await fn();
@@ -188,13 +188,13 @@ function instrumentDatabase(client, options) {
188
188
  const startTime = performance.now();
189
189
  try {
190
190
  span.setAttributes({
191
- "db.system": dbSystem,
192
- "db.operation": operation
191
+ "db.system.name": dbSystem,
192
+ "db.operation.name": operation
193
193
  });
194
- if (dbName) span.setAttribute("db.name", dbName);
195
- if (table) span.setAttribute("db.sql.table", table);
194
+ if (dbName) span.setAttribute("db.namespace", dbName);
195
+ if (table) span.setAttribute("db.collection.name", table);
196
196
  const query = extractQueryFromArgs(args);
197
- if (query) span.setAttribute("db.statement", sanitizeQuery ? sanitizeSqlQuery(query) : query);
197
+ if (query) span.setAttribute("db.query.text", sanitizeQuery ? sanitizeSqlQuery(query) : query);
198
198
  const result = await originalMethod.apply(this, args);
199
199
  const duration = performance.now() - startTime;
200
200
  span.setStatus({ code: _opentelemetry_api.SpanStatusCode.OK });
package/dist/db.js CHANGED
@@ -44,8 +44,8 @@ async function tracebQuery(dbSystem, operation, fn, attributes) {
44
44
  const startTime = performance.now();
45
45
  try {
46
46
  span.setAttributes({
47
- "db.system": dbSystem,
48
- "db.operation": operation,
47
+ "db.system.name": dbSystem,
48
+ "db.operation.name": operation,
49
49
  ...attributes
50
50
  });
51
51
  const result = await fn();
@@ -187,13 +187,13 @@ function instrumentDatabase(client, options) {
187
187
  const startTime = performance.now();
188
188
  try {
189
189
  span.setAttributes({
190
- "db.system": dbSystem,
191
- "db.operation": operation
190
+ "db.system.name": dbSystem,
191
+ "db.operation.name": operation
192
192
  });
193
- if (dbName) span.setAttribute("db.name", dbName);
194
- if (table) span.setAttribute("db.sql.table", table);
193
+ if (dbName) span.setAttribute("db.namespace", dbName);
194
+ if (table) span.setAttribute("db.collection.name", table);
195
195
  const query = extractQueryFromArgs(args);
196
- if (query) span.setAttribute("db.statement", sanitizeQuery ? sanitizeSqlQuery(query) : query);
196
+ if (query) span.setAttribute("db.query.text", sanitizeQuery ? sanitizeSqlQuery(query) : query);
197
197
  const result = await originalMethod.apply(this, args);
198
198
  const duration = performance.now() - startTime;
199
199
  span.setStatus({ code: SpanStatusCode.OK });
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-DApyq53y.cjs');
3
3
  const require_config = require('./config.cjs');
4
- const require_init = require('./init-CNUkdwke.cjs');
4
+ const require_init = require('./init-OSYC19sK.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
7
7
  //#region src/decorators.ts
@@ -1,6 +1,6 @@
1
1
  import { y as splitNameOrOptions } from "./values-BenyvWKz.js";
2
2
  import { getConfig } from "./config.js";
3
- import { U as createTraceContext } from "./init-B2kv4bLO.js";
3
+ import { U as createTraceContext } from "./init-Bst_BhiS.js";
4
4
  import { SpanStatusCode } from "@opentelemetry/api";
5
5
 
6
6
  //#region src/decorators.ts
package/dist/event.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.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-B2kv4bLO.js";
1
+ import { d as Event, f as getEvents, p as resetEvents } from "./init-Bst_BhiS.js";
2
2
 
3
3
  export { Event, getEvents, resetEvents };
@@ -1,7 +1,7 @@
1
1
  import { l as asString, m as isDevelopment } from "./values-BenyvWKz.js";
2
2
  import { getForceFlushableProvider } from "./tracer-provider.js";
3
3
  import { getConfig } from "./config.js";
4
- import { C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, G as getActiveContextWithBaggage, I as debugCaptureRequested, J as getEventQueue, K as getContextStorage, T as AUTOTEL_SAMPLING_TAIL_KEEP, U as createTraceContext, h as runInOperationContext, i as getSdk, n as getConfiguredSampler, q as hasExplicitSpanStatus, t as getConfig$1, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-B2kv4bLO.js";
4
+ import { C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, G as getActiveContextWithBaggage, I as debugCaptureRequested, J as getEventQueue, K as getContextStorage, T as AUTOTEL_SAMPLING_TAIL_KEEP, U as createTraceContext, h as runInOperationContext, i as getSdk, n as getConfiguredSampler, q as hasExplicitSpanStatus, t as getConfig$1, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-Bst_BhiS.js";
5
5
  import { evidenceAttribute } from "./evidence.js";
6
6
  import { setSpanName } from "./trace-helpers.js";
7
7
  import { SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
2
  const require_values = require('./values-DApyq53y.cjs');
3
3
  const require_tracer_provider = require('./tracer-provider.cjs');
4
4
  const require_config = require('./config.cjs');
5
- const require_init = require('./init-CNUkdwke.cjs');
5
+ const require_init = require('./init-OSYC19sK.cjs');
6
6
  const require_evidence = require('./evidence.cjs');
7
7
  const require_trace_helpers = require('./trace-helpers.cjs');
8
8
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_functional = require('./functional-BOZ3me6w.cjs');
2
+ const require_functional = require('./functional-zasLBPyX.cjs');
3
3
 
4
4
  exports.ctx = require_functional.ctx;
5
5
  exports.getActiveTraceContext = require_functional.getActiveTraceContext;
@@ -1,3 +1,3 @@
1
- import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-B86zszmZ.js";
1
+ import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-BXgTFVTA.js";
2
2
 
3
3
  export { ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
package/dist/http.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-DApyq53y.cjs');
3
3
  const require_config = require('./config.cjs');
4
- const require_init = require('./init-CNUkdwke.cjs');
4
+ const require_init = require('./init-OSYC19sK.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
7
7
  //#region src/http.ts
@@ -89,17 +89,18 @@ function HttpInstrumented(options = {}) {
89
89
  const startTime = performance.now();
90
90
  try {
91
91
  span.setAttributes({
92
- "http.method": method,
93
- "http.url": url || "unknown",
92
+ "http.request.method": method,
93
+ "url.full": url || "unknown",
94
94
  "service.name": serviceName,
95
95
  "operation.name": `${serviceName}.${methodName}`
96
96
  });
97
97
  if (url) {
98
98
  const urlObj = parseUrl(url);
99
99
  span.setAttributes({
100
- "http.scheme": urlObj.protocol,
101
- "http.host": urlObj.host,
102
- "http.target": urlObj.path
100
+ "url.scheme": urlObj.protocol,
101
+ "server.address": urlObj.host,
102
+ "url.path": urlObj.path,
103
+ ...urlObj.query ? { "url.query": urlObj.query } : {}
103
104
  });
104
105
  }
105
106
  if (options.attributesFromArgs) span.setAttributes(options.attributesFromArgs(args));
@@ -107,7 +108,7 @@ function HttpInstrumented(options = {}) {
107
108
  const duration = performance.now() - startTime;
108
109
  const statusCode = extractStatusCode(result);
109
110
  if (statusCode) {
110
- span.setAttribute("http.status_code", statusCode);
111
+ span.setAttribute("http.response.status_code", statusCode);
111
112
  if (statusCode >= 400) span.setStatus({
112
113
  code: _opentelemetry_api.SpanStatusCode.ERROR,
113
114
  message: `HTTP ${statusCode}`
@@ -202,13 +203,15 @@ function parseUrl(url) {
202
203
  return {
203
204
  protocol: urlObj.protocol.replace(":", ""),
204
205
  host: urlObj.host,
205
- path: urlObj.pathname + urlObj.search
206
+ path: urlObj.pathname,
207
+ query: urlObj.search.replace(/^\?/, "")
206
208
  };
207
209
  } catch {
208
210
  return {
209
211
  protocol: "http",
210
212
  host: "unknown",
211
- path: url
213
+ path: url,
214
+ query: ""
212
215
  };
213
216
  }
214
217
  }
package/dist/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as readProperty, h as isFunction, i as asNumber, l as asString } from "./values-BenyvWKz.js";
2
2
  import { getConfig } from "./config.js";
3
- import { G as getActiveContextWithBaggage } from "./init-B2kv4bLO.js";
3
+ import { G as getActiveContextWithBaggage } from "./init-Bst_BhiS.js";
4
4
  import { SpanStatusCode, context, propagation } from "@opentelemetry/api";
5
5
 
6
6
  //#region src/http.ts
@@ -88,17 +88,18 @@ function HttpInstrumented(options = {}) {
88
88
  const startTime = performance.now();
89
89
  try {
90
90
  span.setAttributes({
91
- "http.method": method,
92
- "http.url": url || "unknown",
91
+ "http.request.method": method,
92
+ "url.full": url || "unknown",
93
93
  "service.name": serviceName,
94
94
  "operation.name": `${serviceName}.${methodName}`
95
95
  });
96
96
  if (url) {
97
97
  const urlObj = parseUrl(url);
98
98
  span.setAttributes({
99
- "http.scheme": urlObj.protocol,
100
- "http.host": urlObj.host,
101
- "http.target": urlObj.path
99
+ "url.scheme": urlObj.protocol,
100
+ "server.address": urlObj.host,
101
+ "url.path": urlObj.path,
102
+ ...urlObj.query ? { "url.query": urlObj.query } : {}
102
103
  });
103
104
  }
104
105
  if (options.attributesFromArgs) span.setAttributes(options.attributesFromArgs(args));
@@ -106,7 +107,7 @@ function HttpInstrumented(options = {}) {
106
107
  const duration = performance.now() - startTime;
107
108
  const statusCode = extractStatusCode(result);
108
109
  if (statusCode) {
109
- span.setAttribute("http.status_code", statusCode);
110
+ span.setAttribute("http.response.status_code", statusCode);
110
111
  if (statusCode >= 400) span.setStatus({
111
112
  code: SpanStatusCode.ERROR,
112
113
  message: `HTTP ${statusCode}`
@@ -201,13 +202,15 @@ function parseUrl(url) {
201
202
  return {
202
203
  protocol: urlObj.protocol.replace(":", ""),
203
204
  host: urlObj.host,
204
- path: urlObj.pathname + urlObj.search
205
+ path: urlObj.pathname,
206
+ query: urlObj.search.replace(/^\?/, "")
205
207
  };
206
208
  } catch {
207
209
  return {
208
210
  protocol: "http",
209
211
  host: "unknown",
210
- path: url
212
+ path: url,
213
+ query: ""
211
214
  };
212
215
  }
213
216
  }
@@ -496,7 +496,7 @@ declare const attrs: {
496
496
  "messaging.destination.name": string;
497
497
  };
498
498
  readonly operation: (value: "publish" | "receive" | "process") => {
499
- "messaging.operation": "publish" | "receive" | "process";
499
+ "messaging.operation.type": "publish" | "receive" | "process";
500
500
  };
501
501
  readonly messageId: (value: string) => {
502
502
  "messaging.message.id": string;
@@ -508,7 +508,7 @@ declare const attrs: {
508
508
  };
509
509
  readonly rpc: {
510
510
  readonly system: (value: string) => {
511
- "rpc.system": string;
511
+ "rpc.system.name": string;
512
512
  };
513
513
  readonly service: (value: string) => {
514
514
  "rpc.service": string;
@@ -496,7 +496,7 @@ declare const attrs: {
496
496
  "messaging.destination.name": string;
497
497
  };
498
498
  readonly operation: (value: "publish" | "receive" | "process") => {
499
- "messaging.operation": "publish" | "receive" | "process";
499
+ "messaging.operation.type": "publish" | "receive" | "process";
500
500
  };
501
501
  readonly messageId: (value: string) => {
502
502
  "messaging.message.id": string;
@@ -508,7 +508,7 @@ declare const attrs: {
508
508
  };
509
509
  readonly rpc: {
510
510
  readonly system: (value: string) => {
511
- "rpc.system": string;
511
+ "rpc.system.name": string;
512
512
  };
513
513
  readonly service: (value: string) => {
514
514
  "rpc.service": string;
package/dist/index.cjs CHANGED
@@ -3,13 +3,13 @@ const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
3
3
  const require_values = require('./values-DApyq53y.cjs');
4
4
  const require_tracer_provider = require('./tracer-provider.cjs');
5
5
  const require_structured_error = require('./structured-error--_wXpd_C.cjs');
6
- const require_init = require('./init-CNUkdwke.cjs');
6
+ const require_init = require('./init-OSYC19sK.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
10
  const require_canonical_log_line_processor = require('./canonical-log-line-processor-B-tzezhk.cjs');
11
11
  const require_metric = require('./metric.cjs');
12
- const require_functional = require('./functional-BOZ3me6w.cjs');
12
+ const require_functional = require('./functional-zasLBPyX.cjs');
13
13
  const require_trace_helpers = require('./trace-helpers.cjs');
14
14
  const require_stable_hash = require('./stable-hash-C0pOegH_.cjs');
15
15
  const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
@@ -17,9 +17,9 @@ 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
- const require_registry = require('./registry-DYgvb62e.cjs');
20
+ const require_registry = require('./registry-DIoklBz5.cjs');
21
21
  const require_semantic_conventions = require('./semantic-conventions.cjs');
22
- const require_attributes = require('./attributes-Cxys8tgr.cjs');
22
+ const require_attributes = require('./attributes-DnfoMlA9.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');
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
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";
2
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, s as identify, t as mergeAttrs, u as setDevice, w as CodeAttrs, x as attrs, z as OTelAttrs } from "./index-DQHf4cNl.cjs";
2
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, s as identify, t as mergeAttrs, u as setDevice, w as CodeAttrs, x as attrs, z as OTelAttrs } from "./index-Y7If_wH4.cjs";
3
3
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
4
4
  import { n as TraceContext$1, r as defineBaggageSchema, t as AttributeValue$2 } from "./trace-context-C1Cn1q0y.cjs";
5
5
  import { BaggageError, BaggageFieldDefinition, BaggageFieldType, BusinessBaggage, BusinessBaggageValues, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema } from "./business-baggage.cjs";
@@ -10,7 +10,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
10
10
  import { a as EventSchemaMetadata, c as FunnelStatus, l as OutcomeStatus, n as EventAttributeValue, o as EventSubscriber, r as EventAttributes, s as EventTrackingOptions, t as AutotelEventContext } from "./event-subscriber-DMACQA-1.cjs";
11
11
  import { Event, EventsOptions, getEvents, resetEvents } from "./event.cjs";
12
12
  import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.cjs";
13
- import { a as AutotelConfig, c as StringRedactor, i as lockLogger, l as createStringRedactor, n as isInitialized, r as isLoggerLocked, s as ProcessHandlersConfig, t as init } from "./init-BU7qa-Ii.cjs";
13
+ import { a as AutotelConfig, c as StringRedactor, i as lockLogger, l as createStringRedactor, n as isInitialized, r as isLoggerLocked, s as ProcessHandlersConfig, t as init } from "./init-DxmeJ3d0.cjs";
14
14
  import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.cjs";
15
15
  import "./canonical-log-line-processor-C0Z_N4oL.cjs";
16
16
  import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-BNeuKUPv.cjs";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
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.js";
2
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, s as identify, t as mergeAttrs, u as setDevice, w as CodeAttrs, x as attrs, z as OTelAttrs } from "./index-CwrNAsgk.js";
2
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, s as identify, t as mergeAttrs, u as setDevice, w as CodeAttrs, x as attrs, z as OTelAttrs } from "./index-CsoeCsGL.js";
3
3
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
4
4
  import { n as TraceContext$1, r as defineBaggageSchema, t as AttributeValue$2 } from "./trace-context-f89xPJbK.js";
5
5
  import { BaggageError, BaggageFieldDefinition, BaggageFieldType, BusinessBaggage, BusinessBaggageValues, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema } from "./business-baggage.js";
@@ -10,7 +10,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
10
10
  import { a as EventSchemaMetadata, c as FunnelStatus, l as OutcomeStatus, n as EventAttributeValue, o as EventSubscriber, r as EventAttributes, s as EventTrackingOptions, t as AutotelEventContext } from "./event-subscriber-DMACQA-1.js";
11
11
  import { Event, EventsOptions, getEvents, resetEvents } from "./event.js";
12
12
  import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.js";
13
- import { a as AutotelConfig, c as StringRedactor, i as lockLogger, l as createStringRedactor, n as isInitialized, r as isLoggerLocked, s as ProcessHandlersConfig, t as init } from "./init-DDCgmfa4.js";
13
+ import { a as AutotelConfig, c as StringRedactor, i as lockLogger, l as createStringRedactor, n as isInitialized, r as isLoggerLocked, s as ProcessHandlersConfig, t as init } from "./init-BHV2gWsV.js";
14
14
  import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.js";
15
15
  import "./canonical-log-line-processor-Yq4cXcD5.js";
16
16
  import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-Bd8f8mST.js";
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { g as nonEmptyString, i as asNumber, l as asString, r as asFunction, s as asRecord, x as toError } from "./values-BenyvWKz.js";
2
2
  import { getAutotelTracer, getAutotelTracerProvider, setAutotelTracerProvider } from "./tracer-provider.js";
3
3
  import { a as flattenToAttributes, i as structuredErrorToJSON, n as getStructuredErrorAttributes, o as toAttributeValue, r as recordStructuredError, t as createStructuredError } from "./structured-error-YIuka-FE.js";
4
- import { B as markForceKept, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, J as getEventQueue, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, P as UserIdSampler, Q as getCorrelationId, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, U as createTraceContext, V as resolveSamplingPreset, W as defineBaggageSchema, X as CORRELATION_ID_BAGGAGE_KEY, Y as track, Z as generateCorrelationId, a as init, b as BaggageSpanProcessor, c as lockLogger, d as Event, et as getOrCreateCorrelationId, f as getEvents, h as runInOperationContext, l as flush, m as getOperationContext, nt as setCorrelationId, o as isInitialized, p as resetEvents, rt as setCorrelationIdInBaggage, s as isLoggerLocked, tt as runWithCorrelationId, u as shutdown, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, y as createStringRedactor } from "./init-B2kv4bLO.js";
4
+ import { B as markForceKept, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, J as getEventQueue, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, P as UserIdSampler, Q as getCorrelationId, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, U as createTraceContext, V as resolveSamplingPreset, W as defineBaggageSchema, X as CORRELATION_ID_BAGGAGE_KEY, Y as track, Z as generateCorrelationId, a as init, b as BaggageSpanProcessor, c as lockLogger, d as Event, et as getOrCreateCorrelationId, f as getEvents, h as runInOperationContext, l as flush, m as getOperationContext, nt as setCorrelationId, o as isInitialized, p as resetEvents, rt as setCorrelationIdInBaggage, s as isLoggerLocked, tt as runWithCorrelationId, u as shutdown, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, y as createStringRedactor } from "./init-Bst_BhiS.js";
5
5
  import { FilteringSpanProcessor } from "./filtering-span-processor.js";
6
6
  import { NORMALIZER_PATTERNS, NORMALIZER_PRESETS, SpanNameNormalizingProcessor } from "./span-name-normalizer.js";
7
7
  import { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig } from "./attribute-redacting-processor.js";
8
8
  import { n as formatDuration } from "./canonical-log-line-processor-CBv-OCp4.js";
9
9
  import { Metric, getMetrics, resetMetrics } from "./metric.js";
10
- import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-B86zszmZ.js";
10
+ import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-BXgTFVTA.js";
11
11
  import { createDeterministicTraceId, enrichWithTraceContext, finalizeSpan, flattenMetadata, getActiveContext, getActiveSpan, getTraceContext, getTracer, isTracing, resolveTraceUrl, runWithSpan } from "./trace-helpers.js";
12
12
  import { t as hashJson } from "./stable-hash-BkoAYVks.js";
13
13
  import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.js";
@@ -15,9 +15,9 @@ import { parseError } from "./parse-error.js";
15
15
  import { createDrainPipeline } from "./drain-pipeline.js";
16
16
  import { createCounter, createHistogram, createObservableGauge, createUpDownCounter, getMeter } from "./metric-helpers.js";
17
17
  import { traceDB, traceHTTP, traceMessaging } from "./semantic-helpers.js";
18
- import { C as URLAttributes, d as HTTPAttributes, y as ServiceAttributes } from "./registry-DVSmWg6Y.js";
18
+ import { C as URLAttributes, d as HTTPAttributes, y as ServiceAttributes } from "./registry-Cy4JjIB-.js";
19
19
  import { httpRequestHeaderAttribute, httpResponseHeaderAttribute } from "./semantic-conventions.js";
20
- import { a as identify, c as setDevice, d as setSession, f as setUser, 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, u as setException, v as validateAttribute, y as attrs } from "./attributes-Dt4YUYbP.js";
20
+ import { a as identify, c as setDevice, d as setSession, f as setUser, 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, u as setException, v as validateAttribute, y as attrs } from "./attributes-DQQl-D6Q.js";
21
21
  import { traceConsumer, traceProducer } from "./messaging.js";
22
22
  import { BusinessBaggage, createSafeBaggageSchema } from "./business-baggage.js";
23
23
  import { getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow } from "./workflow.js";
@@ -3,7 +3,7 @@ import { s as Logger } from "./logger-S1Fgl0g3.js";
3
3
  import { g as SamplingPreset, m as Sampler } from "./sampling-DBng4Foa.js";
4
4
  import { o as EventSubscriber } from "./event-subscriber-DMACQA-1.js";
5
5
  import { r as SpanFilterPredicate } from "./filtering-span-processor-BpDagWNa.js";
6
- import { r as Policy } from "./policy-CbpP4tFH.js";
6
+ import { r as Policy } from "./policy-C4QcZnqv.js";
7
7
  import { r as SpanNameNormalizerConfig } from "./span-name-normalizer-CN1-8C76.js";
8
8
  import { t as CanonicalLogLineOptions } from "./canonical-log-line-processor-Yq4cXcD5.js";
9
9
  import { NodeSDK, NodeSDKConfiguration } from "@opentelemetry/sdk-node";
@@ -2833,7 +2833,10 @@ var Event = class {
2833
2833
  const config = getConfig();
2834
2834
  if (config) {
2835
2835
  if (config.version) enriched["service.version"] = config.version;
2836
- if (config.environment) enriched["deployment.environment"] = config.environment;
2836
+ if (config.environment) {
2837
+ enriched["deployment.environment"] = config.environment;
2838
+ enriched["deployment.environment.name"] = config.environment;
2839
+ }
2837
2840
  }
2838
2841
  const spanContext = trace.getActiveSpan()?.spanContext();
2839
2842
  if (spanContext) {
@@ -3,7 +3,7 @@ import { s as Logger } from "./logger-S1Fgl0g3.cjs";
3
3
  import { g as SamplingPreset, m as Sampler } from "./sampling-Er217Mge.cjs";
4
4
  import { o as EventSubscriber } from "./event-subscriber-DMACQA-1.cjs";
5
5
  import { r as SpanFilterPredicate } from "./filtering-span-processor-BpDagWNa.cjs";
6
- import { r as Policy } from "./policy-CbpP4tFH.cjs";
6
+ import { r as Policy } from "./policy-C4QcZnqv.cjs";
7
7
  import { r as SpanNameNormalizerConfig } from "./span-name-normalizer-CN1-8C76.cjs";
8
8
  import { t as CanonicalLogLineOptions } from "./canonical-log-line-processor-C0Z_N4oL.cjs";
9
9
  import { ReadableSpan, SpanExporter, SpanProcessor } from "@opentelemetry/sdk-trace-base";
@@ -2837,7 +2837,10 @@ var Event = class {
2837
2837
  const config = getConfig();
2838
2838
  if (config) {
2839
2839
  if (config.version) enriched["service.version"] = config.version;
2840
- if (config.environment) enriched["deployment.environment"] = config.environment;
2840
+ if (config.environment) {
2841
+ enriched["deployment.environment"] = config.environment;
2842
+ enriched["deployment.environment.name"] = config.environment;
2843
+ }
2841
2844
  }
2842
2845
  const spanContext = _opentelemetry_api.trace.getActiveSpan()?.spanContext();
2843
2846
  if (spanContext) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.cjs');
3
3
  const require_node_require = require('./node-require-EifOMikz.cjs');
4
4
  let _opentelemetry_sdk_node = require("@opentelemetry/sdk-node");
5
5
  let _opentelemetry_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
@@ -108,12 +108,14 @@ async function initInstrumentation(config) {
108
108
  [_opentelemetry_semantic_conventions_incubating.ATTR_SERVICE_NAME]: config.serviceName,
109
109
  [_opentelemetry_semantic_conventions_incubating.ATTR_SERVICE_VERSION]: config.serviceVersion || "1.0.0",
110
110
  "deployment.environment": config.deploymentEnvironment || "development",
111
+ "deployment.environment.name": config.deploymentEnvironment || "development",
111
112
  ...customResourceAttributes
112
113
  }));
113
114
  else resource = (0, _opentelemetry_resources.resourceFromAttributes)({
114
115
  [_opentelemetry_semantic_conventions_incubating.ATTR_SERVICE_NAME]: config.serviceName,
115
116
  [_opentelemetry_semantic_conventions_incubating.ATTR_SERVICE_VERSION]: config.serviceVersion || "1.0.0",
116
117
  "deployment.environment": config.deploymentEnvironment || "development",
118
+ "deployment.environment.name": config.deploymentEnvironment || "development",
117
119
  ...customResourceAttributes
118
120
  });
119
121
  let instrumentations = config.instrumentations || [];
@@ -1,4 +1,4 @@
1
- import { r as getLogger, x as TailSamplingSpanProcessor } from "./init-B2kv4bLO.js";
1
+ import { r as getLogger, x as TailSamplingSpanProcessor } from "./init-Bst_BhiS.js";
2
2
  import { n as safeRequire, t as requireModule } from "./node-require-DSPjaw_l.js";
3
3
  import { NodeSDK } from "@opentelemetry/sdk-node";
4
4
  import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
@@ -107,12 +107,14 @@ async function initInstrumentation(config) {
107
107
  [ATTR_SERVICE_NAME]: config.serviceName,
108
108
  [ATTR_SERVICE_VERSION]: config.serviceVersion || "1.0.0",
109
109
  "deployment.environment": config.deploymentEnvironment || "development",
110
+ "deployment.environment.name": config.deploymentEnvironment || "development",
110
111
  ...customResourceAttributes
111
112
  }));
112
113
  else resource = resourceFromAttributes({
113
114
  [ATTR_SERVICE_NAME]: config.serviceName,
114
115
  [ATTR_SERVICE_VERSION]: config.serviceVersion || "1.0.0",
115
116
  "deployment.environment": config.deploymentEnvironment || "development",
117
+ "deployment.environment.name": config.deploymentEnvironment || "development",
116
118
  ...customResourceAttributes
117
119
  });
118
120
  let instrumentations = config.instrumentations || [];
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-DApyq53y.cjs');
3
- const require_init = require('./init-CNUkdwke.cjs');
4
- const require_functional = require('./functional-BOZ3me6w.cjs');
3
+ const require_init = require('./init-OSYC19sK.cjs');
4
+ const require_functional = require('./functional-zasLBPyX.cjs');
5
5
  const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
6
6
  const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.cjs');
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -480,7 +480,6 @@ function setProducerAttributes(ctx, config) {
480
480
  ctx.setAttribute("messaging.system", config.system);
481
481
  ctx.setAttribute("messaging.operation.name", "publish");
482
482
  ctx.setAttribute("messaging.operation.type", "send");
483
- ctx.setAttribute("messaging.operation", "publish");
484
483
  ctx.setAttribute("messaging.destination.name", config.destination);
485
484
  if (config.system === "kafka") ctx.setAttribute("messaging.kafka.destination.topic", config.destination);
486
485
  if (config.attributes) setCustomAttributes(ctx, config.attributes);
@@ -509,7 +508,6 @@ function setConsumerAttributes(ctx, config) {
509
508
  ctx.setAttribute("messaging.system", config.system);
510
509
  ctx.setAttribute("messaging.operation.name", config.batchMode ? "receive" : "process");
511
510
  ctx.setAttribute("messaging.operation.type", config.batchMode ? "receive" : "process");
512
- ctx.setAttribute("messaging.operation", config.batchMode ? "receive" : "process");
513
511
  ctx.setAttribute("messaging.destination.name", config.destination);
514
512
  if (config.consumerGroup) {
515
513
  ctx.setAttribute("messaging.consumer.group.name", config.consumerGroup);
package/dist/messaging.js CHANGED
@@ -1,6 +1,6 @@
1
1
  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-BenyvWKz.js";
2
- import { F as createLinkFromHeaders, L as extractLinksFromBatch } from "./init-B2kv4bLO.js";
3
- import { c as withTracing } from "./functional-B86zszmZ.js";
2
+ import { F as createLinkFromHeaders, L as extractLinksFromBatch } from "./init-Bst_BhiS.js";
3
+ import { c as withTracing } from "./functional-BXgTFVTA.js";
4
4
  import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.js";
5
5
  import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
6
6
  import { SpanKind, context, propagation } from "@opentelemetry/api";
@@ -479,7 +479,6 @@ function setProducerAttributes(ctx, config) {
479
479
  ctx.setAttribute("messaging.system", config.system);
480
480
  ctx.setAttribute("messaging.operation.name", "publish");
481
481
  ctx.setAttribute("messaging.operation.type", "send");
482
- ctx.setAttribute("messaging.operation", "publish");
483
482
  ctx.setAttribute("messaging.destination.name", config.destination);
484
483
  if (config.system === "kafka") ctx.setAttribute("messaging.kafka.destination.topic", config.destination);
485
484
  if (config.attributes) setCustomAttributes(ctx, config.attributes);
@@ -508,7 +507,6 @@ function setConsumerAttributes(ctx, config) {
508
507
  ctx.setAttribute("messaging.system", config.system);
509
508
  ctx.setAttribute("messaging.operation.name", config.batchMode ? "receive" : "process");
510
509
  ctx.setAttribute("messaging.operation.type", config.batchMode ? "receive" : "process");
511
- ctx.setAttribute("messaging.operation", config.batchMode ? "receive" : "process");
512
510
  ctx.setAttribute("messaging.destination.name", config.destination);
513
511
  if (config.consumerGroup) {
514
512
  ctx.setAttribute("messaging.consumer.group.name", config.consumerGroup);
@@ -82,10 +82,8 @@ interface Policy {
82
82
  *
83
83
  * The spec mandates RE2 for cross-implementation consistency; Node's `RegExp`
84
84
  * backtracks, so an untrusted log body plus a pathological pattern is a DoS.
85
- * Capping input bounds the damage without pulling in an RE2 binding.
86
- *
87
- * ponytail: length cap instead of a real RE2 engine — swap in a linear-time
88
- * matcher if policies ever run against fully untrusted patterns.
85
+ * Capping input bounds the damage without pulling in an RE2 binding. Swap in a
86
+ * linear-time matcher if policies ever run against fully untrusted patterns.
89
87
  */
90
88
  declare const MAX_MATCH_LENGTH = 4096;
91
89
  /**
@@ -82,10 +82,8 @@ interface Policy {
82
82
  *
83
83
  * The spec mandates RE2 for cross-implementation consistency; Node's `RegExp`
84
84
  * backtracks, so an untrusted log body plus a pathological pattern is a DoS.
85
- * Capping input bounds the damage without pulling in an RE2 binding.
86
- *
87
- * ponytail: length cap instead of a real RE2 engine — swap in a linear-time
88
- * matcher if policies ever run against fully untrusted patterns.
85
+ * Capping input bounds the damage without pulling in an RE2 binding. Swap in a
86
+ * linear-time matcher if policies ever run against fully untrusted patterns.
89
87
  */
90
88
  declare const MAX_MATCH_LENGTH = 4096;
91
89
  /**
package/dist/policy.cjs CHANGED
Binary file
package/dist/policy.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-CbpP4tFH.cjs";
1
+ import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-C4QcZnqv.cjs";
2
2
  export { AttributePath, MAX_MATCH_LENGTH, Policy, PolicyField, PolicyLogRecordProcessor, PolicyLogTarget, PolicyLogTransform, PolicyMatcher, PolicyTraceTarget, clearPolicies, getPolicies, hasLogPolicies, loadPolicies, policySpanFilter, setPolicies, unsupportedReason, watchPolicyFile };
package/dist/policy.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-CbpP4tFH.js";
1
+ import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-C4QcZnqv.js";
2
2
  export { AttributePath, MAX_MATCH_LENGTH, Policy, PolicyField, PolicyLogRecordProcessor, PolicyLogTarget, PolicyLogTransform, PolicyMatcher, PolicyTraceTarget, clearPolicies, getPolicies, hasLogPolicies, loadPolicies, policySpanFilter, setPolicies, unsupportedReason, watchPolicyFile };
package/dist/policy.js CHANGED
Binary file
@@ -130,14 +130,14 @@ const FeatureFlagAttributes = {
130
130
  const MessagingAttributes = {
131
131
  system: "messaging.system",
132
132
  destination: "messaging.destination.name",
133
- operation: "messaging.operation",
133
+ operation: "messaging.operation.type",
134
134
  messageId: "messaging.message.id",
135
135
  conversationId: "messaging.conversation_id",
136
136
  batchMessageCount: "messaging.batch.message_count",
137
137
  consumerGroup: "messaging.consumer.group"
138
138
  };
139
139
  const RPCAttributes = {
140
- system: "rpc.system",
140
+ system: "rpc.system.name",
141
141
  service: "rpc.service",
142
142
  method: "rpc.method",
143
143
  grpcStatusCode: "rpc.grpc.status_code"
@@ -131,14 +131,14 @@ const FeatureFlagAttributes = {
131
131
  const MessagingAttributes = {
132
132
  system: "messaging.system",
133
133
  destination: "messaging.destination.name",
134
- operation: "messaging.operation",
134
+ operation: "messaging.operation.type",
135
135
  messageId: "messaging.message.id",
136
136
  conversationId: "messaging.conversation_id",
137
137
  batchMessageCount: "messaging.batch.message_count",
138
138
  consumerGroup: "messaging.consumer.group"
139
139
  };
140
140
  const RPCAttributes = {
141
- system: "rpc.system",
141
+ system: "rpc.system.name",
142
142
  service: "rpc.service",
143
143
  method: "rpc.method",
144
144
  grpcStatusCode: "rpc.grpc.status_code"
package/dist/sampling.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.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;
package/dist/sampling.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-B2kv4bLO.js";
1
+ import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-Bst_BhiS.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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_registry = require('./registry-DYgvb62e.cjs');
2
+ const require_registry = require('./registry-DIoklBz5.cjs');
3
3
 
4
4
  //#region src/semantic-conventions.ts
5
5
  function httpRequestHeaderAttribute(name) {
@@ -1,4 +1,4 @@
1
- import { C as URLAttributes, d as HTTPAttributes, y as ServiceAttributes } from "./registry-DVSmWg6Y.js";
1
+ import { C as URLAttributes, d as HTTPAttributes, y as ServiceAttributes } from "./registry-Cy4JjIB-.js";
2
2
 
3
3
  //#region src/semantic-conventions.ts
4
4
  function httpRequestHeaderAttribute(name) {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-DApyq53y.cjs');
3
- const require_functional = require('./functional-BOZ3me6w.cjs');
3
+ const require_functional = require('./functional-zasLBPyX.cjs');
4
4
  const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
@@ -55,14 +55,14 @@ function traceDB(config, fn) {
55
55
  const spanName = (config.querySummary ?? [config.operation, target].filter(Boolean).join(" ")) || config.system;
56
56
  const configure = (ctx) => {
57
57
  ctx.setAttribute("db.system.name", config.system);
58
- ctx.setAttribute("db.system", config.system);
58
+ ctx.setAttribute("db.system.name", config.system);
59
59
  if (config.operation) {
60
60
  ctx.setAttribute("db.operation.name", config.operation);
61
- ctx.setAttribute("db.operation", config.operation);
61
+ ctx.setAttribute("db.operation.name", config.operation);
62
62
  }
63
63
  if (config.database) {
64
64
  ctx.setAttribute("db.namespace", config.database);
65
- ctx.setAttribute("db.name", config.database);
65
+ ctx.setAttribute("db.namespace", config.database);
66
66
  }
67
67
  if (config.collection) ctx.setAttribute("db.collection.name", config.collection);
68
68
  if (config.querySummary) ctx.setAttribute("db.query.summary", config.querySummary);
@@ -96,7 +96,6 @@ function traceMessaging(config, fn) {
96
96
  if (config.operation) {
97
97
  ctx.setAttribute("messaging.operation.name", config.operation);
98
98
  ctx.setAttribute("messaging.operation.type", operationType);
99
- ctx.setAttribute("messaging.operation", config.operation);
100
99
  }
101
100
  if (config.destination) ctx.setAttribute("messaging.destination.name", config.destination);
102
101
  setConfiguredAttributes(ctx, config.attributes);
@@ -1,5 +1,5 @@
1
1
  import { b as toAttributeValue, g as nonEmptyString, s as asRecord } from "./values-BenyvWKz.js";
2
- import { c as withTracing } from "./functional-B86zszmZ.js";
2
+ import { c as withTracing } from "./functional-BXgTFVTA.js";
3
3
  import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
4
4
  import { SpanKind } from "@opentelemetry/api";
5
5
 
@@ -54,14 +54,14 @@ function traceDB(config, fn) {
54
54
  const spanName = (config.querySummary ?? [config.operation, target].filter(Boolean).join(" ")) || config.system;
55
55
  const configure = (ctx) => {
56
56
  ctx.setAttribute("db.system.name", config.system);
57
- ctx.setAttribute("db.system", config.system);
57
+ ctx.setAttribute("db.system.name", config.system);
58
58
  if (config.operation) {
59
59
  ctx.setAttribute("db.operation.name", config.operation);
60
- ctx.setAttribute("db.operation", config.operation);
60
+ ctx.setAttribute("db.operation.name", config.operation);
61
61
  }
62
62
  if (config.database) {
63
63
  ctx.setAttribute("db.namespace", config.database);
64
- ctx.setAttribute("db.name", config.database);
64
+ ctx.setAttribute("db.namespace", config.database);
65
65
  }
66
66
  if (config.collection) ctx.setAttribute("db.collection.name", config.collection);
67
67
  if (config.querySummary) ctx.setAttribute("db.query.summary", config.querySummary);
@@ -95,7 +95,6 @@ function traceMessaging(config, fn) {
95
95
  if (config.operation) {
96
96
  ctx.setAttribute("messaging.operation.name", config.operation);
97
97
  ctx.setAttribute("messaging.operation.type", operationType);
98
- ctx.setAttribute("messaging.operation", config.operation);
99
98
  }
100
99
  if (config.destination) ctx.setAttribute("messaging.destination.name", config.destination);
101
100
  setConfiguredAttributes(ctx, config.attributes);
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.cjs');
3
3
 
4
4
  exports.TailSamplingSpanProcessor = require_init.TailSamplingSpanProcessor;
@@ -1,3 +1,3 @@
1
- import { x as TailSamplingSpanProcessor } from "./init-B2kv4bLO.js";
1
+ import { x as TailSamplingSpanProcessor } from "./init-Bst_BhiS.js";
2
2
 
3
3
  export { TailSamplingSpanProcessor };
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--_wXpd_C.cjs');
3
- const require_functional = require('./functional-BOZ3me6w.cjs');
3
+ const require_functional = require('./functional-zasLBPyX.cjs');
4
4
  const require_correlated_events = require('./correlated-events-CcuknWnU.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-YIuka-FE.js";
2
- import { c as withTracing } from "./functional-B86zszmZ.js";
2
+ import { c as withTracing } from "./functional-BXgTFVTA.js";
3
3
  import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.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-DApyq53y.cjs');
3
- const require_functional = require('./functional-BOZ3me6w.cjs');
3
+ const require_functional = require('./functional-zasLBPyX.cjs');
4
4
  const require_correlated_events = require('./correlated-events-CcuknWnU.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-BenyvWKz.js";
2
- import { c as withTracing } from "./functional-B86zszmZ.js";
2
+ import { c as withTracing } from "./functional-BXgTFVTA.js";
3
3
  import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.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-C_NdSu1c.cjs');
3
3
  const require_values = require('./values-DApyq53y.cjs');
4
- const require_functional = require('./functional-BOZ3me6w.cjs');
4
+ const require_functional = require('./functional-zasLBPyX.cjs');
5
5
  const require_trace_helpers = require('./trace-helpers.cjs');
6
6
  const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
7
7
  const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.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-BenyvWKz.js";
2
- import { c as withTracing } from "./functional-B86zszmZ.js";
2
+ import { c as withTracing } from "./functional-BXgTFVTA.js";
3
3
  import { getActiveSpan } from "./trace-helpers.js";
4
4
  import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.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-CNUkdwke.cjs');
2
+ const require_init = require('./init-OSYC19sK.cjs');
3
3
 
4
4
  exports.hasYamlConfig = require_init.hasYamlConfig;
5
5
  exports.loadYamlConfig = require_init.loadYamlConfig;
@@ -1,5 +1,5 @@
1
1
  import { g as SamplingPreset } from "./sampling-Er217Mge.cjs";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-BU7qa-Ii.cjs";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-DxmeJ3d0.cjs";
3
3
  //#region src/yaml-config.d.ts
4
4
  /** A value as a YAML document carries it: scalars, sequences, mappings. */
5
5
  type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
@@ -1,5 +1,5 @@
1
1
  import { g as SamplingPreset } from "./sampling-DBng4Foa.js";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-DDCgmfa4.js";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-BHV2gWsV.js";
3
3
  //#region src/yaml-config.d.ts
4
4
  /** A value as a YAML document carries it: scalars, sequences, mappings. */
5
5
  type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
@@ -1,3 +1,3 @@
1
- import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-B2kv4bLO.js";
1
+ import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-Bst_BhiS.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.5.0",
3
+ "version": "7.6.1",
4
4
  "description": "Write Once, Observe Anywhere",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -299,31 +299,31 @@
299
299
  "license": "Apache-2.0",
300
300
  "dependencies": {
301
301
  "@opentelemetry/api": "^1.9.1",
302
- "@opentelemetry/api-logs": "^0.221.0",
303
- "@opentelemetry/exporter-logs-otlp-http": "^0.221.0",
304
- "@opentelemetry/exporter-metrics-otlp-http": "^0.221.0",
305
- "@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
306
- "@opentelemetry/instrumentation": "^0.221.0",
307
- "@opentelemetry/resources": "^2.10.0",
308
- "@opentelemetry/sdk-logs": "^0.221.0",
309
- "@opentelemetry/sdk-metrics": "^2.10.0",
310
- "@opentelemetry/sdk-node": "^0.221.0",
311
- "@opentelemetry/sdk-trace-base": "^2.10.0",
302
+ "@opentelemetry/api-logs": "^0.222.0",
303
+ "@opentelemetry/exporter-logs-otlp-http": "^0.222.0",
304
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.222.0",
305
+ "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
306
+ "@opentelemetry/instrumentation": "^0.222.0",
307
+ "@opentelemetry/resources": "^2.11.0",
308
+ "@opentelemetry/sdk-logs": "^0.222.0",
309
+ "@opentelemetry/sdk-metrics": "^2.11.0",
310
+ "@opentelemetry/sdk-node": "^0.222.0",
311
+ "@opentelemetry/sdk-trace-base": "^2.11.0",
312
312
  "@opentelemetry/semantic-conventions": "^1.43.0",
313
313
  "import-in-the-middle": "^3.3.2"
314
314
  },
315
315
  "peerDependencies": {
316
- "@opentelemetry/auto-instrumentations-node": "^0.79.0",
317
- "@opentelemetry/exporter-logs-otlp-grpc": "^0.221.0",
318
- "@opentelemetry/exporter-logs-otlp-proto": "^0.221.0",
319
- "@opentelemetry/exporter-metrics-otlp-grpc": "^0.221.0",
320
- "@opentelemetry/exporter-metrics-otlp-proto": "^0.221.0",
321
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.221.0",
322
- "@opentelemetry/exporter-trace-otlp-proto": "^0.221.0",
323
- "@opentelemetry/resource-detector-aws": "^2.21.0",
324
- "@opentelemetry/resource-detector-container": "^0.8.12",
325
- "@opentelemetry/resource-detector-gcp": "^0.56.0",
326
- "@opentelemetry/sdk-trace-node": "^2.10.0",
316
+ "@opentelemetry/auto-instrumentations-node": "^0.80.0",
317
+ "@opentelemetry/exporter-logs-otlp-grpc": "^0.222.0",
318
+ "@opentelemetry/exporter-logs-otlp-proto": "^0.222.0",
319
+ "@opentelemetry/exporter-metrics-otlp-grpc": "^0.222.0",
320
+ "@opentelemetry/exporter-metrics-otlp-proto": "^0.222.0",
321
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.222.0",
322
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.222.0",
323
+ "@opentelemetry/resource-detector-aws": "^2.22.0",
324
+ "@opentelemetry/resource-detector-container": "^0.8.13",
325
+ "@opentelemetry/resource-detector-gcp": "^0.57.0",
326
+ "@opentelemetry/sdk-trace-node": "^2.11.0",
327
327
  "@traceloop/node-server-sdk": "^0.27.0",
328
328
  "pino": "^10.3.1",
329
329
  "pino-pretty": "^13.1.3",
@@ -379,18 +379,18 @@
379
379
  "devDependencies": {
380
380
  "@arethetypeswrong/cli": "^0.18.5",
381
381
  "@edge-runtime/vm": "^5.0.0",
382
- "@opentelemetry/auto-instrumentations-node": "^0.79.0",
383
- "@opentelemetry/context-async-hooks": "^2.10.0",
384
- "@opentelemetry/exporter-logs-otlp-grpc": "^0.221.0",
385
- "@opentelemetry/exporter-logs-otlp-proto": "^0.221.0",
386
- "@opentelemetry/exporter-metrics-otlp-grpc": "^0.221.0",
387
- "@opentelemetry/exporter-metrics-otlp-proto": "^0.221.0",
388
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.221.0",
389
- "@opentelemetry/exporter-trace-otlp-proto": "^0.221.0",
390
- "@opentelemetry/resource-detector-aws": "^2.21.0",
391
- "@opentelemetry/resource-detector-container": "^0.8.12",
392
- "@opentelemetry/resource-detector-gcp": "^0.56.0",
393
- "@opentelemetry/sdk-trace-node": "^2.10.0",
382
+ "@opentelemetry/auto-instrumentations-node": "^0.80.0",
383
+ "@opentelemetry/context-async-hooks": "^2.11.0",
384
+ "@opentelemetry/exporter-logs-otlp-grpc": "^0.222.0",
385
+ "@opentelemetry/exporter-logs-otlp-proto": "^0.222.0",
386
+ "@opentelemetry/exporter-metrics-otlp-grpc": "^0.222.0",
387
+ "@opentelemetry/exporter-metrics-otlp-proto": "^0.222.0",
388
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.222.0",
389
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.222.0",
390
+ "@opentelemetry/resource-detector-aws": "^2.22.0",
391
+ "@opentelemetry/resource-detector-container": "^0.8.13",
392
+ "@opentelemetry/resource-detector-gcp": "^0.57.0",
393
+ "@opentelemetry/sdk-trace-node": "^2.11.0",
394
394
  "@swc/core": "^1.15.46",
395
395
  "@total-typescript/ts-reset": "^0.6.1",
396
396
  "@total-typescript/tsconfig": "^1.0.4",