Skip to content

Commit

Permalink
Fix DD_TRACE_HEADER_TAGS to discard input with trailing colon
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoffl01 committed Oct 4, 2024
1 parent b903f6e commit 44c7621
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ddtrace/tracer/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,9 @@ func newConfig(opts ...StartOption) *config {
}
c.headerAsTags = newDynamicConfig("trace_header_tags", nil, setHeaderTags, equalSlice[string])
if v := os.Getenv("DD_TRACE_HEADER_TAGS"); v != "" {
htSlice := strings.Split(v, ",")
c.headerAsTags.update(htSlice, telemetry.OriginEnvVar)
c.headerAsTags.update(strings.Split(v, ","), telemetry.OriginEnvVar)
// Required to ensure that the startup header tags are set on reset.
c.headerAsTags.startup = c.headerAsTags.current
// setHeaderTags(htSlice)
}
if v := getDDorOtelConfig("resourceAttributes"); v != "" {
tags := internal.ParseTagString(v)
Expand Down

0 comments on commit 44c7621

Please sign in to comment.