From dbb2d3af73380955d9856c9c84233c3e97df5b42 Mon Sep 17 00:00:00 2001 From: idafurjes <36131195+idafurjes@users.noreply.github.com> Date: Mon, 24 Jan 2022 18:17:39 +0100 Subject: [PATCH] Chore: Fix attribute value (#44368) * Fix attribute value * Fix also the value for opentracing --- pkg/api/pluginproxy/ds_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/pluginproxy/ds_proxy.go b/pkg/api/pluginproxy/ds_proxy.go index f2af1c127b57d..cb9564fa18386 100644 --- a/pkg/api/pluginproxy/ds_proxy.go +++ b/pkg/api/pluginproxy/ds_proxy.go @@ -158,7 +158,7 @@ func (proxy *DataSourceProxy) HandleRequest() { span.SetAttributes("datasource_name", proxy.ds.Name, attribute.Key("datasource_name").String(proxy.ds.Name)) span.SetAttributes("datasource_type", proxy.ds.Type, attribute.Key("datasource_type").String(proxy.ds.Type)) - span.SetAttributes("user", proxy.ds.Type, attribute.Key("user").String(proxy.ds.Type)) + span.SetAttributes("user", proxy.ctx.SignedInUser.Login, attribute.Key("user").String(proxy.ctx.SignedInUser.Login)) span.SetAttributes("org_id", proxy.ctx.SignedInUser.OrgId, attribute.Key("org_id").Int64(proxy.ctx.SignedInUser.OrgId)) proxy.addTraceFromHeaderValue(span, "X-Panel-Id", "panel_id")