Skip to content

Commit

Permalink
Temp hack to read legacy name
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoerensen committed Aug 16, 2024
1 parent 60eeaee commit b8ca094
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/utils/network_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ func (nu NetworkUtils) GetEnvTelemetryVar() string {

func (nu NetworkUtils) GetTelemetryNameFromEnv() (string, bool) {
telemetryName := os.Getenv(envTelemetryVar)
legacyTelemetryName := os.Getenv("TELEMETRY_NAME")

if telemetryName != "" {
return telemetryName, true
}
if legacyTelemetryName != "" {
return legacyTelemetryName, true
}
return "", false
}

0 comments on commit b8ca094

Please sign in to comment.