Merge pull request #982 from vector-im/dbkr/otel_flatten_include_booleans
Include booleans in flattened OpenTelemetry object
This commit is contained in:
		
				commit
				
					
						2cd549cdc8
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue