Is there any ability to persist metrics based on trace duration? #3994
Replies: 2 comments 2 replies
-
I am aware of the trace metrics queries, but my concern with those is
|
Beta Was this translation helpful? Give feedback.
-
The challenge for trace level metrics will always be that it's impossible to know when a trace is received in its entirety to correctly calculate the metrics. Additionally buffering traces at scale to make this decision is costly. Having said that if we are very specifically targeting total trace duration you would not need to store the full trace. Perhaps a map of trace ids to earliest span start time and latest span end time? Then, after some time had passed, assume it is as good as it would get and write a metric to prometheus? Challenges:
Ultimately I'm not opposed to a new metrics generator processor that performs this calculation if someone wanted to attempt the PR. |
Beta Was this translation helpful? Give feedback.
-
Not spanmetrics, which are great in their own way but sometimes it is more beneficial to have metrics for an entire trace. For example in the below websocket / kafka soup trace:
I really just want to know how long the whole thing took, it would make alerting much cleaner if there is some ability to scrape trace levll metrics as well as span level metrics
Beta Was this translation helpful? Give feedback.
All reactions