Skip to content

Add start/end time to RequestListener - #4155

Merged
trask merged 1 commit into
open-telemetry:mainfrom
mateuszrzeszutek:start-end-time-request-listener
Sep 21, 2021
Merged

Add start/end time to RequestListener#4155
trask merged 1 commit into
open-telemetry:mainfrom
mateuszrzeszutek:start-end-time-request-listener

Conversation

@mateuszrzeszutek

Copy link
Copy Markdown
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

@trask trask left a comment

Copy link
Copy Markdown
Member

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