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
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m16s
This commit is contained in:
7
main.go
7
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user