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 }