ai 3.4.16 → 3.4.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 3.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - e4ff512: fix (core): prevent unnecessary input/output serialization when telemetry is not enabled
8
+
3
9
  ## 3.4.16
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -373,6 +373,9 @@ function selectTelemetryAttributes({
373
373
  telemetry,
374
374
  attributes
375
375
  }) {
376
+ if ((telemetry == null ? void 0 : telemetry.isEnabled) !== true) {
377
+ return {};
378
+ }
376
379
  return Object.entries(attributes).reduce((attributes2, [key, value]) => {
377
380
  if (value === void 0) {
378
381
  return attributes2;