@ai-sdk/otel 1.0.166 → 1.0.169

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/otel",
3
- "version": "1.0.166",
3
+ "version": "1.0.169",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -28,10 +28,10 @@
28
28
  "dependencies": {
29
29
  "@ai-sdk/provider": "4.0.37",
30
30
  "@opentelemetry/api": "1.9.1",
31
- "ai": "7.0.166"
31
+ "ai": "7.0.169"
32
32
  },
33
33
  "devDependencies": {
34
- "@ai-sdk/provider-utils": "5.0.76",
34
+ "@ai-sdk/provider-utils": "5.0.79",
35
35
  "@opentelemetry/sdk-metrics": "2.8.0",
36
36
  "@opentelemetry/sdk-trace-base": "2.7.1",
37
37
  "@types/node": "22.19.19",
@@ -39,7 +39,7 @@
39
39
  "@vercel/ai-tsdown-config": "0.0.0",
40
40
  "tsdown": "^0.23.0",
41
41
  "typescript": "6.0.3",
42
- "zod": "3.25.76"
42
+ "zod": "4.6.7"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=22"
@@ -1,3 +1,4 @@
1
+ import { redactToolDefinition } from './redact-tool-definition';
1
2
  import type { LanguageModelV4Prompt } from '@ai-sdk/provider';
2
3
  import type { Context as AISDKContext } from '@ai-sdk/provider-utils';
3
4
  import {
@@ -50,7 +51,6 @@ import type {
50
51
  import { assembleOperationName } from './assemble-operation-name';
51
52
  import { getBaseTelemetryAttributes } from './get-base-telemetry-attributes';
52
53
  import { getProviderUsageAttributes } from './provider-usage-attributes';
53
- import { redactToolDefinition } from './redact-tool-definition';
54
54
  import { sanitizeAttributeValue } from './sanitize-attribute-value';
55
55
  import {
56
56
  stringifyForTelemetry,
@@ -1,3 +1,4 @@
1
+ import { redactToolDefinition } from './redact-tool-definition';
1
2
  import {
2
3
  context,
3
4
  metrics,
@@ -60,7 +61,6 @@ import {
60
61
  } from './gen-ai-format-messages';
61
62
  import { stringifyDecisionStateForTelemetry } from './stringify-for-telemetry';
62
63
  import { recordErrorOnSpan } from './record-span';
63
- import { redactToolDefinition } from './redact-tool-definition';
64
64
  import { getProviderUsageAttributes } from './provider-usage-attributes';
65
65
  import { getServerAttributes } from './server-attributes';
66
66
  import { sanitizeAttributes } from './sanitize-attribute-value';
@@ -1,4 +1,8 @@
1
- /** Remove provider credentials from a telemetry-only copy of a tool definition. */
1
+ /**
2
+ * Preserve exporter protection for older providers and plain tool definitions
3
+ * whose arguments do not carry a provider-owned telemetry redaction annotation.
4
+ * Only create telemetry copies; never modify the provider's arguments.
5
+ */
2
6
  export function redactToolDefinition(
3
7
  tool: Record<string, unknown>,
4
8
  ): Record<string, unknown> {