@ai-sdk/otel 1.0.176 → 1.0.177

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.176",
3
+ "version": "1.0.177",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@ai-sdk/provider": "4.0.39",
30
30
  "@opentelemetry/api": "1.9.1",
31
- "ai": "7.0.176"
31
+ "ai": "7.0.177"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@ai-sdk/provider-utils": "5.0.82",
@@ -1072,8 +1072,9 @@ export class OpenTelemetry implements Telemetry {
1072
1072
  const state = existingState ?? this.startDurableModelCall(event);
1073
1073
  if (!state?.stepContext) return;
1074
1074
 
1075
- // A retried stream may start a new attempt without ending the failed one.
1076
- if (state.liveDurableContext && state.inferenceSpan != null) {
1075
+ // A stream retry or a steering interrupt starts a new model call without
1076
+ // ending the previous one.
1077
+ if (state.inferenceSpan != null) {
1077
1078
  state.inferenceSpan.setStatus({ code: SpanStatusCode.ERROR });
1078
1079
  state.inferenceSpan.end(getEventTime(event));
1079
1080
  state.inferenceSpan = undefined;