tracing: Add subsystem tag to runtime

Set a tag on the root span to denote the subsystem refers to the
runtime.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2018-08-21 09:02:06 +01:00
parent d6a773c90c
commit a193366b3d

View File

@ -340,6 +340,8 @@ func setupTracing(context *cli.Context, rootSpanName string) error {
return err
}
span.SetTag("subsystem", "runtime")
// Associate the root span with the context
ctx = opentracing.ContextWithSpan(ctx, span)