mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-25 18:36:30 +00:00
chore: remove deprecated items (we're making a breaking change anyway)
This commit is contained in:
parent
09189ab63e
commit
d401fc52e7
3 changed files with 2 additions and 29 deletions
|
@ -15,9 +15,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- The keys emitted by the crate now match the stable Semantic Conventions for HTTP Spans.
|
||||
- Opentelemetry features are now additive.
|
||||
|
||||
### Deprecated
|
||||
- The old keys are now deprecated.
|
||||
|
||||
## [0.4.8] - 2024-03-11
|
||||
|
||||
### Added
|
||||
|
|
|
@ -91,13 +91,11 @@ mod middleware;
|
|||
mod otel;
|
||||
mod reqwest_otel_span_builder;
|
||||
pub use middleware::TracingMiddleware;
|
||||
#[allow(deprecated)]
|
||||
pub use reqwest_otel_span_builder::{
|
||||
default_on_request_end, default_on_request_failure, default_on_request_success,
|
||||
default_span_name, DefaultSpanBackend, DisableOtelPropagation, OtelName, OtelPathNames,
|
||||
ReqwestOtelSpanBackend, SpanBackendWithUrl, ERROR_CAUSE_CHAIN, ERROR_MESSAGE, HTTP_HOST,
|
||||
HTTP_METHOD, HTTP_REQUEST_METHOD, HTTP_RESPONSE_STATUS_CODE, HTTP_SCHEME, HTTP_STATUS_CODE,
|
||||
HTTP_URL, HTTP_USER_AGENT, NET_HOST_PORT, OTEL_KIND, OTEL_NAME, OTEL_STATUS_CODE,
|
||||
ReqwestOtelSpanBackend, SpanBackendWithUrl, ERROR_CAUSE_CHAIN, ERROR_MESSAGE,
|
||||
HTTP_REQUEST_METHOD, HTTP_RESPONSE_STATUS_CODE, OTEL_KIND, OTEL_NAME, OTEL_STATUS_CODE,
|
||||
SERVER_ADDRESS, SERVER_PORT, URL_FULL, URL_SCHEME, USER_AGENT_ORIGINAL,
|
||||
};
|
||||
|
||||
|
|
|
@ -33,28 +33,6 @@ pub const ERROR_MESSAGE: &str = "error.message";
|
|||
/// The `error.cause_chain` field added to the span by [`reqwest_otel_span`]
|
||||
pub const ERROR_CAUSE_CHAIN: &str = "error.cause_chain";
|
||||
|
||||
/// The deprecated `http.method` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_METHOD: &str = "http.method";
|
||||
/// The deprecated `http.scheme` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_SCHEME: &str = "http.scheme";
|
||||
/// The deprecated `http.host` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_HOST: &str = "http.host";
|
||||
/// The deprecated `http.url` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_URL: &str = "http.url";
|
||||
/// The deprecated `host.port` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const NET_HOST_PORT: &str = "net.host.port";
|
||||
/// The deprecated `http.status_code` field added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_STATUS_CODE: &str = "http.status_code";
|
||||
/// The deprecated `http.user_agent` added to the span by [`reqwest_otel_span`]
|
||||
#[deprecated]
|
||||
pub const HTTP_USER_AGENT: &str = "http.user_agent";
|
||||
|
||||
/// [`ReqwestOtelSpanBackend`] allows you to customise the span attached by
|
||||
/// [`TracingMiddleware`] to incoming requests.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue