Skip to content

Commit 2389f47

Browse files
behzad-mirCopilot
andauthored
Update cns/service/main.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Behzad Mirkhanzadeh <b.mirkhanzadeh@gmail.com>
1 parent 498b3ce commit 2389f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/service/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func startTelemetryService(ctx context.Context, cnsconfig *configuration.CNSConf
494494
tb := telemetry.NewTelemetryBuffer(nil)
495495

496496
var err error
497-
if aiKey := cnsconfig.TelemetrySettings.AppInsightsInstrumentationKey; aiKey != "" {
497+
if cnsconfig.TelemetrySettings.AppInsightsInstrumentationKey != "" {
498498
err = tb.CreateAITelemetryHandle(aiConfig, ts.DisableTrace, ts.DisableMetric, ts.DisableEvent)
499499
} else {
500500
logger.Printf("No Application Insights key provided for CNI telemetry service")

0 commit comments

Comments
 (0)