Once your application is tracking traces and segments across components you have what is needed to enjoy the goodness of trace and segment metrics. There is nothing particularly special in traces and segment metrics, both are simple entities as described in the core metrics section, but there are a couple considerations that might be of your interest when working with these metrics:
trace-segment, no surprise there.
elapsed-time, which uses the
Time.Nanosecondsunit of measurement.
trace-segmentrecorders are completely separate entities, all
trace-segmententity recorders will always have a tag named
tracethat contains the name of the trace for which the segment was recorded. If you are using certain segment from different traces you will see that their metrics are “scoped” to a trace using the tag.
Beyond the considerations above, trace and segment metrics are like any other metric in Kamon and as such, you can obviously subscribe to them using the metrics subscription protocol or report them to external metric backends as all of our reporting modules currently do.