Open
Description
openedon Oct 28, 2023
Update HTTP attributes to comply with HTTP semconv vTBD (likely 1.23.0 will declare them as stable):
- Rename attributes according to docs:
http.method
->http.request.method
http.status_code
->http.response.status_code
net.peer.name
->server.address
net.peer.port
->server.port
http.url
->url.full
http.user_agent
->user_agent.original
- Add new attributes:
error.type
- some error-code or a full exception name if exception happens. Also includes status code (as string) for responses we consider to be an error. Maybe we can steal something from .NET - https://github.com/dotnet/runtime/blob/main/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs#L157http.request.resend_count
- try count
- Update HTTP span names according to the new conventions
- Check if there is anything else in the list of changes that needs attention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment