diff --git a/reqwest-tracing/CHANGELOG.md b/reqwest-tracing/CHANGELOG.md index 1f8450f..ea3ebc9 100644 --- a/reqwest-tracing/CHANGELOG.md +++ b/reqwest-tracing/CHANGELOG.md @@ -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 diff --git a/reqwest-tracing/src/lib.rs b/reqwest-tracing/src/lib.rs index ad84f1b..7a8bae5 100644 --- a/reqwest-tracing/src/lib.rs +++ b/reqwest-tracing/src/lib.rs @@ -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, }; diff --git a/reqwest-tracing/src/reqwest_otel_span_builder.rs b/reqwest-tracing/src/reqwest_otel_span_builder.rs index ef2395e..c006d9d 100644 --- a/reqwest-tracing/src/reqwest_otel_span_builder.rs +++ b/reqwest-tracing/src/reqwest_otel_span_builder.rs @@ -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. ///