File tree Expand file tree Collapse file tree
extension/encoding/azureencodingextension/internal/unmarshaler/logs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package logs // import "github.com/open-telemetry/opentelemetry-collector-contri
55
66import (
77 "strconv"
8+ "strings"
89
910 gojson "github.com/goccy/go-json"
1011 "go.opentelemetry.io/collector/pdata/pcommon"
@@ -313,7 +314,7 @@ type azurePolicyLog struct {
313314func (r * azurePolicyLog ) PutProperties (attrs pcommon.Map , _ pcommon.Value ) error {
314315 // Parse isComplianceCheck as boolean
315316 if r .Properties .IsComplianceCheck != "" {
316- isComplianceCheck := r . Properties . IsComplianceCheck == "True" || r .Properties .IsComplianceCheck == "true"
317+ isComplianceCheck := strings . EqualFold ( r .Properties .IsComplianceCheck , "true" )
317318 attrs .PutBool (attributeAzurePolicyIsComplianceCheck , isComplianceCheck )
318319 }
319320
You can’t perform that action at this time.
0 commit comments