Add OpenTelemetry tracing and log correlation
This commit is contained in:
@@ -25,6 +25,8 @@ func main() {
|
||||
slog.Error("load dashboard configuration", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
shutdownTelemetry := observability.Setup(context.Background(), cfg.Telemetry, "gl-dashboard", cfg.Environment)
|
||||
defer shutdownTelemetry(context.Background())
|
||||
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer stop()
|
||||
|
||||
Reference in New Issue
Block a user