Add OpenTelemetry tracing and log correlation

This commit is contained in:
2026-09-17 14:56:57 +03:30
parent 3445ead897
commit f7366a1985
9 changed files with 187 additions and 40 deletions
+2
View File
@@ -29,6 +29,8 @@ func main() {
slog.Error("load configuration", "error", err)
os.Exit(1)
}
shutdownTelemetry := observability.Setup(context.Background(), cfg.Telemetry, "gl", cfg.Environment)
defer shutdownTelemetry(context.Background())
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()