chore: remove deprecated items (we're making a breaking change anyway)

pull/141/head
Ethan Brierley 2024-04-10 08:39:20 +01:00 committed by Ethan Brierley
parent 09189ab63e
commit d401fc52e7
3 changed files with 2 additions and 29 deletions

View File

@ -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

View File

@ -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,
};

View File

@ -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.
///