autotel-backends 2.14.16 → 2.14.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -137,6 +137,7 @@ init(
137
137
  - Multi-region support (US1, US3, US5, EU, AP1, FedRAMP)
138
138
  - Unified service tagging (service, env, version)
139
139
  - Optional log export via OTLP
140
+ - Delta metric temporality for direct ingestion; `OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE` overrides it
140
141
  - Kubernetes-friendly agent configuration
141
142
 
142
143
  [View full Datadog configuration options →](./src/datadog.ts)
package/dist/datadog.cjs CHANGED
@@ -38,6 +38,8 @@ let node_module = require("node:module");
38
38
  * - Direct: https://otlp.{site} → SDK appends /v1/traces, /v1/metrics, /v1/logs
39
39
  * - Agent: http://localhost:4318 (default)
40
40
  * - Datadog API key authentication headers (direct ingestion only)
41
+ * - Delta metric temporality (direct ingestion only). Set
42
+ * OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE to override.
41
43
  * - Agent Observability routing for GenAI spans (`dd-otlp-source: llmobs`)
42
44
  * - Unified service tagging (service, env, version)
43
45
  * - Resource attribute best practices
@@ -107,6 +109,7 @@ function createDatadogConfig(config) {
107
109
  endpoint: otlpEndpoint,
108
110
  headers: authHeaders
109
111
  };
112
+ if (!process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE) process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "delta";
110
113
  if (enableLogs) {
111
114
  const logsEndpoint = useAgent ? `http://${agentHost}:${agentPort}/v1/logs` : `https://otlp.${site}/v1/logs`;
112
115
  if (!process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT) process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = logsEndpoint;
@@ -121,6 +121,8 @@ export interface DatadogPresetConfig {
121
121
  * - Direct: https://otlp.{site} → SDK appends /v1/traces, /v1/metrics, /v1/logs
122
122
  * - Agent: http://localhost:4318 (default)
123
123
  * - Datadog API key authentication headers (direct ingestion only)
124
+ * - Delta metric temporality (direct ingestion only). Set
125
+ * OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE to override.
124
126
  * - Agent Observability routing for GenAI spans (`dd-otlp-source: llmobs`)
125
127
  * - Unified service tagging (service, env, version)
126
128
  * - Resource attribute best practices
package/dist/datadog.d.ts CHANGED
@@ -121,6 +121,8 @@ export interface DatadogPresetConfig {
121
121
  * - Direct: https://otlp.{site} → SDK appends /v1/traces, /v1/metrics, /v1/logs
122
122
  * - Agent: http://localhost:4318 (default)
123
123
  * - Datadog API key authentication headers (direct ingestion only)
124
+ * - Delta metric temporality (direct ingestion only). Set
125
+ * OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE to override.
124
126
  * - Agent Observability routing for GenAI spans (`dd-otlp-source: llmobs`)
125
127
  * - Unified service tagging (service, env, version)
126
128
  * - Resource attribute best practices
package/dist/datadog.js CHANGED
@@ -37,6 +37,8 @@ import { createRequire } from "node:module";
37
37
  * - Direct: https://otlp.{site} → SDK appends /v1/traces, /v1/metrics, /v1/logs
38
38
  * - Agent: http://localhost:4318 (default)
39
39
  * - Datadog API key authentication headers (direct ingestion only)
40
+ * - Delta metric temporality (direct ingestion only). Set
41
+ * OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE to override.
40
42
  * - Agent Observability routing for GenAI spans (`dd-otlp-source: llmobs`)
41
43
  * - Unified service tagging (service, env, version)
42
44
  * - Resource attribute best practices
@@ -106,6 +108,7 @@ function createDatadogConfig(config) {
106
108
  endpoint: otlpEndpoint,
107
109
  headers: authHeaders
108
110
  };
111
+ if (!process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE) process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "delta";
109
112
  if (enableLogs) {
110
113
  const logsEndpoint = useAgent ? `http://${agentHost}:${agentPort}/v1/logs` : `https://otlp.${site}/v1/logs`;
111
114
  if (!process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT) process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = logsEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-backends",
3
- "version": "2.14.16",
3
+ "version": "2.14.18",
4
4
  "description": "Vendor backend configurations for Autotel (Honeycomb, Datadog, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  "author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
73
73
  "license": "Apache-2.0",
74
74
  "dependencies": {
75
- "autotel": "8.6.0",
75
+ "autotel": "8.6.1",
76
76
  "@opentelemetry/exporter-logs-otlp-http": ">=0.223.0",
77
77
  "@opentelemetry/sdk-logs": ">=0.223.0"
78
78
  },