Skip to content

Commit

Permalink
cmd/run: include app name with run mode to differentiate telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Sep 6, 2024
1 parent 2f55b7a commit 4f79bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func runWorker(ctx context.Context, mode model.RunMode) {
// serve metrics endpoint
metrics.ListenAndServe()

ctx, otelShutdown := otelinit.InitOpenTelemetry(ctx, "flasher")
ctx, otelShutdown := otelinit.InitOpenTelemetry(ctx, "flasher-"+string(mode))
defer otelShutdown(ctx)

// Setup cancel context with cancel func.
Expand Down

0 comments on commit 4f79bda

Please sign in to comment.