From e1a1e2b63260059ff722b979494dafcda330b461 Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Fri, 22 Nov 2024 13:41:47 +0530 Subject: [PATCH] add missing tracer for Dgraph datasource --- pkg/gofr/external_db.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/gofr/external_db.go b/pkg/gofr/external_db.go index 623fb2af0..4d56fb086 100644 --- a/pkg/gofr/external_db.go +++ b/pkg/gofr/external_db.go @@ -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