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 +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -288,6 +288,9 @@ function selectTelemetryAttributes({
|
|
288
288
|
telemetry,
|
289
289
|
attributes
|
290
290
|
}) {
|
291
|
+
if ((telemetry == null ? void 0 : telemetry.isEnabled) !== true) {
|
292
|
+
return {};
|
293
|
+
}
|
291
294
|
return Object.entries(attributes).reduce((attributes2, [key, value]) => {
|
292
295
|
if (value === void 0) {
|
293
296
|
return attributes2;
|