Cargo Features
reqwest-tracing has no features set by default.
[dependencies]
reqwest-tracing = { version = "0.5.4", features = ["opentelemetry_0_20", "opentelemetry_0_21", "opentelemetry_0_22", "opentelemetry_0_23", "opentelemetry_0_24", "opentelemetry_0_25", "opentelemetry_0_26", "deprecated_attributes"] }
- opentelemetry_0_20 = opentelemetry_0_20_pkg, tracing-opentelemetry_0_21_pkg
- opentelemetry_0_21 = opentelemetry_0_21_pkg, tracing-opentelemetry_0_22_pkg
- opentelemetry_0_22 = opentelemetry_0_22_pkg, tracing-opentelemetry_0_23_pkg
- opentelemetry_0_23 = opentelemetry_0_23_pkg, tracing-opentelemetry_0_24_pkg
- opentelemetry_0_24 = opentelemetry_0_24_pkg, tracing-opentelemetry_0_25_pkg
- opentelemetry_0_25 = opentelemetry_0_25_pkg, tracing-opentelemetry_0_26_pkg
- opentelemetry_0_26 = opentelemetry_0_26_pkg, tracing-opentelemetry_0_27_pkg
- deprecated_attributes
-
This feature ensures that both the old (deprecated) and new attributes are published simultaneously.
By doing so, we maintain backward compatibility, allowing existing code that relies on the old attributes to continue functioning while encouraging the transition to the new attributes.Affects
reqwest_otel_span_builder::HTTP_METHOD
,reqwest_otel_span_builder::HTTP_SCHEME
,reqwest_otel_span_builder::HTTP_HOST
,reqwest_otel_span_builder::HTTP_URL
,reqwest_otel_span_builder::NET_HOST_PORT
,reqwest_otel_span_builder::HTTP_STATUS_CODE
,reqwest_otel_span_builder::HTTP_USER_AGENT
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- opentelemetry_0_20_pkg opentelemetry_0_20?
-
Enables opentelemetry ^0.20.0
- opentelemetry_0_21_pkg opentelemetry_0_21?
-
Enables opentelemetry ^0.21.0
- opentelemetry_0_22_pkg opentelemetry_0_22?
-
Enables opentelemetry ^0.22.0
- opentelemetry_0_23_pkg opentelemetry_0_23?
-
Enables opentelemetry ^0.23.0
- opentelemetry_0_24_pkg opentelemetry_0_24?
-
Enables opentelemetry ^0.24.0
- opentelemetry_0_25_pkg opentelemetry_0_25?
-
Enables opentelemetry ^0.25.0
- opentelemetry_0_26_pkg opentelemetry_0_26?
-
Enables opentelemetry ^0.26.0
- tracing-opentelemetry_0_21_pkg opentelemetry_0_20?
-
Enables tracing-opentelemetry ^0.21.0
- tracing-opentelemetry_0_22_pkg opentelemetry_0_21?
-
Enables tracing-opentelemetry ^0.22.0
- tracing-opentelemetry_0_23_pkg opentelemetry_0_22?
-
Enables tracing-opentelemetry ^0.23.0
- tracing-opentelemetry_0_24_pkg opentelemetry_0_23?
-
Enables tracing-opentelemetry ^0.24.0
- tracing-opentelemetry_0_25_pkg opentelemetry_0_24?
-
Enables tracing-opentelemetry ^0.25.0
- tracing-opentelemetry_0_26_pkg opentelemetry_0_25?
-
Enables tracing-opentelemetry ^0.26.0
- tracing-opentelemetry_0_27_pkg opentelemetry_0_26?
-
Enables tracing-opentelemetry ^0.27.0