opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
set `error.type` to asgi-instrumentation attributes when having exceptions
trafficstars
Description
Right now we only have the error.type for HTTP status code, but we should handle the exceptions and set it in error.type as well
Fixes #2699
Type of change
- [X] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
- [X] tox
Does This PR Require a Core Repo Change?
- [X] No.
Checklist:
- [ ] Followed the style guidelines of this project
- [ ] Changelogs have been updated
- [ ] Unit tests have been added
- [ ] Documentation has been updated