Skip to content

Commit

Permalink
Update model/adjuster/sort_tags_and_log_fields.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Chris Danis <cdanis@gmail.com>
  • Loading branch information
cdanis and yurishkuro authored Sep 24, 2024
1 parent b11e5d3 commit 128480a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/adjuster/sort_tags_and_log_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ func SortTagsAndLogFields() Adjuster {
return Func(func(trace *model.Trace) (*model.Trace, error) {
for _, span := range trace.Spans {
model.KeyValues(span.Tags).Sort()
if span.Process != nil {
model.KeyValues(span.Process.Tags).Sort()

Check warning on line 27 in model/adjuster/sort_tags_and_log_fields.go

View check run for this annotation

Codecov / codecov/patch

model/adjuster/sort_tags_and_log_fields.go#L27

Added line #L27 was not covered by tests
}

for _, log := range span.Logs {
// first move "event" field into the first position
Expand Down

0 comments on commit 128480a

Please sign in to comment.