Include booleans in flattened OpenTelemetry object
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user