diff --git a/lib/utils.js b/lib/utils.js index d26b5bae..7931b44d 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -169,7 +169,7 @@ const flatOTLPAttrs = (attrs) => { return } } - if (val.arrayValue) { + if (val.arrayValue && val.arrayValue.values) { val.arrayValue.values.forEach((v, i) => { flatVal(`${i}`, v, `${prefix}${key}.`, res) })