Skip to content

Commit edcfc43

Browse files
committed
Add global warning message before nullify the error
1 parent c6f0fa3 commit edcfc43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

exporters/otlp/otlplog/otlploggrpc/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ func convHeaders(s string) (map[string]string, error) {
463463
}
464464
// If at least one valid header exists, reset err to nil
465465
if len(out) > 0 {
466+
global.Warn("Some headers were invalid but at least one valid header exists: %v", err)
466467
err = nil
467468
}
468469
return out, err

exporters/otlp/otlplog/otlploghttp/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ func convHeaders(s string) (map[string]string, error) {
565565
}
566566
// If at least one valid header exists, reset err to nil
567567
if len(out) > 0 {
568+
global.Warn("Some headers were invalid but at least one valid header exists: %v", err)
568569
err = nil
569570
}
570571
return out, err

0 commit comments

Comments
 (0)