Skip to content

Commit

Permalink
add missing tracer for Dgraph datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
Umang01-hash committed Nov 22, 2024
1 parent d8ad7a4 commit e1a1e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/gofr/external_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (a *App) AddDgraph(db container.DgraphProvider) {
db.UseLogger(a.Logger())
db.UseMetrics(a.Metrics())

tracer := otel.GetTracerProvider().Tracer("gofr-dgraph")

db.UseTracer(tracer)

db.Connect()

a.container.DGraph = db
Expand Down

0 comments on commit e1a1e2b

Please sign in to comment.