feat(otel): remove custom service name in favor of env variable
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m16s

This commit is contained in:
2026-01-02 19:12:21 +01:00
parent b5ab697cca
commit 2bbfe7b175
2 changed files with 6 additions and 7 deletions

View File

@@ -22,8 +22,11 @@ func main() {
return
}
db, err := otelsqlx.Open("sqlite3", "./data/spend-sparrow.db?_journal_mode=WAL",
otelsql.WithAttributes(semconv.DBSystemSqlite))
db, err := otelsqlx.Open(
"sqlite3",
"./data/spend-sparrow.db?_journal_mode=WAL",
otelsql.WithAttributes(semconv.DBSystemSqlite),
)
if err != nil {
slog.ErrorContext(ctx, "Could not open Database data.db", "err", err)
return