Skip to content

Commit

Permalink
Return false from IsDatadogConfigured() is IsDatadogEnabled() i…
Browse files Browse the repository at this point in the history
…s `false`
  • Loading branch information
nhhagen committed Apr 2, 2024
1 parent 0a15fcc commit 81d27c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ const (

// IsDatadogConfigured checks some common environment-variables to determine if
// the service is configured to use Datadog.
//
// Deprecated: Use IsDatadogEnabled()
func IsDatadogConfigured() bool {
if !IsDatadogEnabled() {
return false
}
if val := os.Getenv(DatadogEnvironment); val != "" {
return true
}
Expand Down

0 comments on commit 81d27c9

Please sign in to comment.