Spanmetrics connector to export e2e trace latency #38733
jayaganesh1997
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the spanmetrics connector only exports span level metrics.
It would really help to have the e2e trace latency exported to measure the e2e time for asynchronous process (for sync process, the root span duration is the e2e duration).
Technical challenge: trace is an span append only operation and hence it is not practical to define the end of a trace and thereby measure the e2e time.
Possible solutions:
groupbytrace
processor where we can define the wait duration for collecting all the spans related to a trace to compute the e2e latencygroupbytrace
processor thereby making it easy to trivially export (by just keeping track of theglobal_min
of thestart_time
andglobal_max
of theend_time
in theaggregateMetrics
method) the e2e trace latencytailsampling
processor already has e2e tracelatency
based sampling, it would be easy to just export the latency value when the trace gets sampled (although at the code level this might need significant changes and doesn't adhere to the metrics export for the rest of the configurations)Beta Was this translation helpful? Give feedback.
All reactions