Skip to content

Commit

Permalink
Chore: Fix attribute value (grafana#44368)
Browse files Browse the repository at this point in the history
* Fix attribute value

* Fix also the value for opentracing
  • Loading branch information
idafurjes authored Jan 24, 2022
1 parent b88811e commit dbb2d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/pluginproxy/ds_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dbb2d3a

Please sign in to comment.