Skip to content

Commit

Permalink
Update internal/shared/otlp/envconfig/envconfig.go.tmpl
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
zhihali and MrAlias authored Aug 21, 2024
1 parent 76d5163 commit 13298aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/shared/otlp/envconfig/envconfig.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func stringToHeader(value string) map[string]string {

trimmedName := strings.TrimSpace(n)

// Validate the key
// Validate the key.
if !isValidHeaderKey(trimmedName) {
global.Error(errors.New("invalid header key"), "parse headers", "key", trimmedName)
continue
Expand Down

0 comments on commit 13298aa

Please sign in to comment.