Skip to content
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

Add start/end time to RequestListener #4155

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Instrumentations that use custom StartTimeExtractor & EndTimeExtractor will have completely wrong duration metrics, since RequestListener implementations tended to get the time using System.nanoTime() without taking the custom times into account.
Currently it's just JMS & Kafka instrumentations that use custom time extractors and they do not have any metrics at all - but once we introduce messaging metrics it'll become a problem. (Also, the Armeria instrumentation might make use of those custom extractors; the tracer-using instrumentation certainly did)

CC @anuraaga

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find 👍

@trask trask merged commit a8b6faf into open-telemetry:main Sep 21, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the start-end-time-request-listener branch November 18, 2022 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants