trace user login and datasource name instead of id (#29183)

id's are not very helpful when debugging a system.

Signed-off-by: bergquist <carl.bergquist@gmail.com>
pull/29185/head
Carl Bergquist 5 years ago committed by GitHub
parent 8c9bb7a215
commit 15a6508d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/api/pluginproxy/ds_proxy.go

@ -144,9 +144,9 @@ func (proxy *DataSourceProxy) HandleRequest() {
proxy.ctx.Req.Request = proxy.ctx.Req.WithContext(ctx)
span.SetTag("datasource_id", proxy.ds.Id)
span.SetTag("datasource_name", proxy.ds.Name)
span.SetTag("datasource_type", proxy.ds.Type)
span.SetTag("user_id", proxy.ctx.SignedInUser.UserId)
span.SetTag("user", proxy.ctx.SignedInUser.Login)
span.SetTag("org_id", proxy.ctx.SignedInUser.OrgId)
proxy.addTraceFromHeaderValue(span, "X-Panel-Id", "panel_id")

Loading…
Cancel
Save