Change postgres db instance name
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -36,8 +36,7 @@ func Postgres(dsn ExternalDSN) (*gorm.DB, error) {
|
|||||||
|
|
||||||
err = db.Use(tracing.NewPlugin(
|
err = db.Use(tracing.NewPlugin(
|
||||||
tracing.WithAttributes(
|
tracing.WithAttributes(
|
||||||
attribute.String("peer.service", serviceName),
|
attribute.String("db.instance", serviceName),
|
||||||
attribute.String("db.instance", dsn.Name),
|
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user