Incomplete 'http_route' attribute in "http.client.request.duration" metric #12171
Unanswered
FabrizioFubelli
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Semantic conventions require for |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having a problem with the opentelemetry-java-instrumentation.
The attribute
http_route
in thehttp.client.request.duration
metric, is incomplete for all the requests having a 404 or a 405 server response:Case 01: 405 Method Not Allowed
Instrumentation Output:
Problems:
Here the Instrumentation has the following behaviour:
http_route
attributehttp_route
attribute, by showing only the context pathuri="UNKNOWN"
Case 02: 404 Page Not Found
Instrumentation Output:
Problems:
Here the instrumentation look like the Case 01, excepts for "micrometer-1.5":
http_route
attributehttp_route
attribute, by showing only the context pathuri="/**"
Note
As you can see, I tried with multiple instrumentation, but it seems that whenever the client makes a wrong request, the OpenTelemetry Java agent is not able to detect the full
http_route
.Instead, in case of exceptions in the application logic, or http status 200, the complete
http_route
attribute is available:Case 03: Exception in a custom
RequestHeaderAuthenticationFilter
classCase 04: HTTP status 200
Questions
http_route
also in the cases "01: 405 Method Not Allowed" and "02: 404 Page Not Found" ?http.client.request.duration
, by adding a new attribute?Even if it should be taken from the server response body?
Beta Was this translation helpful? Give feedback.
All reactions