Commit 15a6508d by Carl Bergquist Committed by GitHub

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>
parent 8c9bb7a2
...@@ -144,9 +144,9 @@ func (proxy *DataSourceProxy) HandleRequest() { ...@@ -144,9 +144,9 @@ func (proxy *DataSourceProxy) HandleRequest() {
proxy.ctx.Req.Request = proxy.ctx.Req.WithContext(ctx) 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("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) span.SetTag("org_id", proxy.ctx.SignedInUser.OrgId)
proxy.addTraceFromHeaderValue(span, "X-Panel-Id", "panel_id") proxy.addTraceFromHeaderValue(span, "X-Panel-Id", "panel_id")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment