Skip to content

Commit

Permalink
feat(mongodb.go): add serviceName to span documents to enhance data t…
Browse files Browse the repository at this point in the history
…racking and retrieval capabilities
  • Loading branch information
HyunSu1768 committed Sep 25, 2024
1 parent 6a7a1a0 commit 52117a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/repository/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 52117a2

Please sign in to comment.