From 22fd6adaf0f23bf1beb38f17fa4e2679ead0cde6 Mon Sep 17 00:00:00 2001 From: Quang Nguyen Date: Mon, 18 Mar 2024 16:32:41 -0400 Subject: [PATCH] fix typo --- captureworkload/main.go | 2 +- controller/main.go | 2 +- operator/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/captureworkload/main.go b/captureworkload/main.go index 205c7b54808..2ccd71efdf2 100644 --- a/captureworkload/main.go +++ b/captureworkload/main.go @@ -36,7 +36,7 @@ func main() { var tel telemetry.Telemetry if applicationInsightsID != "" { - l.Info("Start telemetry with Azure App Insights Monitor", zap.String("applicationInsightsID", applicationInsightsID)) + l.Info("telemetry enabled", zap.String("applicationInsightsID", applicationInsightsID)) telemetry.InitAppInsights(applicationInsightsID, version) defer telemetry.ShutdownAppInsights() tel = telemetry.NewAppInsightsTelemetryClient("retina-capture", map[string]string{ diff --git a/controller/main.go b/controller/main.go index 1d5eb59bbc6..b4aefed1141 100644 --- a/controller/main.go +++ b/controller/main.go @@ -123,7 +123,7 @@ func main() { var tel telemetry.Telemetry if config.EnableTelemetry && applicationInsightsID != "" { - mainLogger.Infof("telemetry enabled, using Application Insights ID: %s", applicationInsightsID) + mainLogger.Info("telemetry enabled", zap.String("applicationInsightsID", applicationInsightsID)) tel = telemetry.NewAppInsightsTelemetryClient("retina-agent", map[string]string{ "version": version, "apiserver": cfg.Host, diff --git a/operator/main.go b/operator/main.go index 30125604c31..db139d4f255 100644 --- a/operator/main.go +++ b/operator/main.go @@ -169,7 +169,7 @@ func main() { "version": version, telemetry.PropertyApiserver: apiserverURL, } - tel = telemetry.NewAppInsightsTelemetryClient("retina-agent", properties) + tel = telemetry.NewAppInsightsTelemetryClient("retina-operator", properties) } else { mainLogger.Info("telemetry disabled", zap.String("apiserver", apiserverURL)) tel = telemetry.NewNoopTelemetry()