Send serve_http spans to Prometheus as well. Revamp Grafana dashboard.

This commit is contained in:
Nigel Deakin
2017-10-25 12:58:08 +01:00
parent e72cd55a4a
commit 0ddb750eaa
4 changed files with 101 additions and 408 deletions

View File

@@ -110,6 +110,7 @@ func traceWrap(c *gin.Context) {
// If wireContext == nil, a root span will be created.
// TODO we should add more tags?
serverSpan := opentracing.StartSpan("serve_http", ext.RPCServerOption(wireContext), opentracing.Tag{Key: "path", Value: c.Request.URL.Path})
serverSpan.SetBaggageItem("fn_appname", c.Param(api.CApp))
defer serverSpan.Finish()
ctx := opentracing.ContextWithSpan(c.Request.Context(), serverSpan)