From 1b9deeb2a09ac824b2566039e45d5bac75438202 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Thu, 4 Apr 2024 15:08:22 +0530 Subject: [PATCH] chore: add service name to gormtrace --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 151b56b2..6a88ddbd 100644 --- a/main.go +++ b/main.go @@ -48,7 +48,7 @@ func main() { if err != nil { log.Fatalf("Failed to open DB %v", err) } - db, err = gormtrace.Open(postgres.New(postgres.Config{Conn: sqlDb}), &gorm.Config{}) + db, err = gormtrace.Open(postgres.New(postgres.Config{Conn: sqlDb}), &gorm.Config{}, gormtrace.WithServiceName("nostr-wallet-connect")) if err != nil { log.Fatalf("Failed to open DB %v", err) }