You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is a question about the semantic conventions needing to be updated, which is something that we are working on. The current tracking issue is #4572 , but note this is a high priority for us.
What happened?
Steps to Reproduce
Code in https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/packages/opentelemetry-instrumentation-http/src/http.ts#L77-L95
Expected Result
Follow the HTTP metrics spec,
http.server.duration
naming should behttp.server.request.duration
and also the unit should be second not millisecond.http.client.request.duration
has the same issue.Actual Result
Getting metric's name as
http.server.duration
nothttp.server.request.duration
Additional Details
Any customization should be great, or even making these properties protected.
Additionally, the attributes should also follow the recommended spec. Currently we have these attributes:
HTTP_METHOD
: should usehttp.request.method
NET_PEER_NAME
: should useserver.address
NET_PEER_PORT
: should useserver.port
HTTP_STATUS_CODE
: should usehttp.response.status_code
HTTP_FLAVOR
: deprecatedSome relevant issues:
OpenTelemetry Setup Code
No response
package.json
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: