-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Duration by Completed Span #521
Comments
It is very interesting to me to understand why logging this when you have tracing (probably I don't understand very well the use-case). I am moving this to specs because this affects the public API capabilities. |
There are two use cases I can think of.
The typical enterprise developer will choose to write their own understanding layer rather than make the effort to understand how to use a framework as designed. Exposing this data will make it a little less tempting for them to write their own layer. |
I am thinking about how to write an enhancement proposal to enable optional recording of full message payloads. This will be important to enterprise developers wanting to prove that their team is not at fault for a particular issue. This is kind of the same category as use case number 2 above. |
We do have a duration exposed in the SDK but not in the API, is that enough to cover all your use-cases? |
My objective is to have the duration recorded for the span exactly match the duration pushed to the metrics system. The change to end span which enables passing in the end timestamp provides a solution. The process is to record a timestamp, pass it to end span and then subtract the captured start timestamp to calculate the duration to record a measurement for. Fixed by #571 |
Closing this as @kbrockhoff said is fixed. Consider to re-open if I made a mistake. |
Many development teams will want the ability to log or further process the duration of a particular remote call. It would be helpful to have this exposed by the public Span API.
The text was updated successfully, but these errors were encountered: