From 52117a2820946e016de22a172bd247dda2724ba2 Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Wed, 25 Sep 2024 22:30:51 +0900 Subject: [PATCH] feat(mongodb.go): add serviceName to span documents to enhance data tracking and retrieval capabilities --- internal/repository/mongodb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/repository/mongodb.go b/internal/repository/mongodb.go index f00dda4..b724911 100644 --- a/internal/repository/mongodb.go +++ b/internal/repository/mongodb.go @@ -82,6 +82,7 @@ func (r *MongoRepository) SaveSpans(ctx context.Context, spans []models.Span) er "events": convertEvents(span.Events), "links": convertLinks(span.Links), "status": convertStatus(span.Status), + "serviceName": span.ServiceName, } documents[i] = doc }