mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Send tracing spans to Prometheus
This commit is contained in:
@@ -188,6 +188,8 @@ func (a *agent) Submit(callI Call) error {
|
||||
ctx := call.req.Context()
|
||||
|
||||
span, ctx := opentracing.StartSpanFromContext(ctx, "agent_submit")
|
||||
span.SetBaggageItem("fn_appname", callI.Model().AppName)
|
||||
span.SetBaggageItem("fn_path", callI.Model().Path)
|
||||
defer span.Finish()
|
||||
|
||||
// start the timer STAT! TODO add some wiggle room
|
||||
|
||||
Reference in New Issue
Block a user