fix: invert condition on telemetry init (#25679)

This commit is contained in:
Tyler 2025-12-11 15:34:57 -08:00 committed by GitHub
parent 2e21b6493c
commit 8fb7b4b324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}
}