Skip to content

Commit

Permalink
revert unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Dec 2, 2024
1 parent 26111a0 commit 727a3d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/datadog/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ func (c *Config) Unmarshal(configMap *confmap.Conf) error {
}
c.warnings = append(c.warnings, renamingWarnings...)

c.API.Key = configopaque.String(strings.TrimSpace(string(c.API.Key)))

// If an endpoint is not explicitly set, override it based on the site.
if !configMap.IsSet("metrics::endpoint") {
c.Metrics.TCPAddrConfig.Endpoint = fmt.Sprintf("https://api.%s", c.API.Site)
Expand Down

0 comments on commit 727a3d7

Please sign in to comment.