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

This commit is contained in:
Nigel Deakin
2017-10-25 15:22:25 +01:00
parent 0e2bc34863
commit c6dd66f3ce

View File

@@ -111,6 +111,7 @@ func traceWrap(c *gin.Context) {
// 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))
serverSpan.SetBaggageItem("fn_path", c.Param(api.CRoute))
defer serverSpan.Finish()
ctx := opentracing.ContextWithSpan(c.Request.Context(), serverSpan)