From f25a5c307a8a3bc7a1c3c95f278f7c00f11aed6b Mon Sep 17 00:00:00 2001 From: Ben Ye Date: Fri, 6 Nov 2020 04:46:11 -0500 Subject: [PATCH] add label field to span log fields (#3417) Signed-off-by: Ben Ye --- pkg/queryfrontend/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/queryfrontend/request.go b/pkg/queryfrontend/request.go index 564d3e631f..f9503287aa 100644 --- a/pkg/queryfrontend/request.go +++ b/pkg/queryfrontend/request.go @@ -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...)