Include booleans in flattened OpenTelemetry object

This commit is contained in:
David Baker 2023-04-03 16:58:29 +01:00
parent e870188be3
commit 8fa23b7da9

View file

@ -65,7 +65,7 @@ function flattenVoipEventRecursive(
);
for (const [k, v] of Object.entries(obj)) {
if (["string", "number"].includes(typeof v)) {
if (["string", "number", "boolean"].includes(typeof v)) {
flatObject[prefix + k] = v;
} else if (typeof v === "object") {
flattenVoipEventRecursive(