fix: invert condition on telemetry init (#25679)
This commit is contained in:
parent
2e21b6493c
commit
8fb7b4b324
@ -38,11 +38,9 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
if openTelemetrySDK != nil {
|
||||
if otelFilePath := os.Getenv(otelConfigEnvVar); otelFilePath != "" {
|
||||
if err := InitializeOpenTelemetry(otelFilePath); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if otelFilePath := os.Getenv(otelConfigEnvVar); otelFilePath != "" {
|
||||
if err := InitializeOpenTelemetry(otelFilePath); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user