Skip to content

Commit

Permalink
add label field to span log fields (#3417)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 authored Nov 6, 2020
1 parent e9ba8ae commit f25a5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/queryfrontend/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (r *ThanosLabelsRequest) LogToSpan(sp opentracing.Span) {
otlog.Object("storeMatchers", r.StoreMatchers),
}
if r.Label != "" {
otlog.Object("label", r.Label)
fields = append(fields, otlog.Object("label", r.Label))
}

sp.LogFields(fields...)
Expand Down

0 comments on commit f25a5c3

Please sign in to comment.