Merge pull request #982 from vector-im/dbkr/otel_flatten_include_booleans

Include booleans in flattened OpenTelemetry object
This commit is contained in:
David Baker 2023-04-04 17:26:20 +01:00 committed by GitHub
commit 2cd549cdc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(