Romario López 19a44fbd68
Improve Req with OTel http spec (#163)
* Improve span_name

Use span_name if provided. Fallback to url.path if there is no
path_params.

* Add unreleased changelog

* Update examples and module description

* Change span_name and http.url to follow OTEL spec

* Remove unused function

* Improve changelog

* Fix reading span_name from request.options

* Don't use URI.path

* address changelog
2023-04-20 05:04:18 -06:00

30 lines
763 B
Markdown

# Changelog
## Unreleased
* Change span_name to follow [OpenTelemetry http spec](https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/http/#name)
* Use span_name if provided, otherwise use path_params. If there are no path_params,
default to http.method
* Change http.url to follow [OpenTelemetry http spec](https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/http/#http-client).
Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment].
Must not contain credentials passed via URL.
## 0.1.2
### Fixes
* Fix ctx not being set back to parent upon completion
## 0.1.1
### Fixes
* Fix client span to be the ctx injected to headers
## 0.1.0
### Features
* Initial release