-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature flag for deprecated fields (#167)
* Add feature flag for deprecated fields * revert editor format * rename flag * remove unnecessary cfg not * add comment and publish old and new attributes on request_span macro * add comment * update changelog * Update reqwest-tracing/CHANGELOG.md Co-authored-by: Ethan Brierley <[email protected]> * bump version --------- Co-authored-by: Ethan Brierley <[email protected]>
- Loading branch information
1 parent
cb21214
commit 4ce8119
Showing
5 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "reqwest-tracing" | ||
version = "0.5.1" | ||
version = "0.5.2" | ||
authors = ["Rodrigo Gryzinski <[email protected]>"] | ||
edition = "2018" | ||
description = "Opentracing middleware for reqwest." | ||
|
@@ -14,7 +14,10 @@ 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"] | ||
|
||
# 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. | ||
deprecated_attributes = [] | ||
|
||
[dependencies] | ||
reqwest-middleware = { version = "0.3.0", path = "../reqwest-middleware" } | ||
|
@@ -42,7 +45,7 @@ getrandom = { version = "0.2.0", features = ["js"] } | |
tokio = { version = "1.0.0", features = ["macros"] } | ||
tracing_subscriber = { package = "tracing-subscriber", version = "0.3.0" } | ||
wiremock = "0.6.0" | ||
reqwest = { version = "0.12.0", features = ["rustls-tls"]} | ||
reqwest = { version = "0.12.0", features = ["rustls-tls"] } | ||
|
||
opentelemetry_sdk_0_21 = { package = "opentelemetry_sdk", version = "0.21.0", features = ["trace"] } | ||
opentelemetry_sdk_0_22 = { package = "opentelemetry_sdk", version = "0.22.0", features = ["trace"] } | ||
|
@@ -51,3 +54,4 @@ opentelemetry_stdout_0_1 = { package = "opentelemetry-stdout", version = "0.1.0" | |
opentelemetry_stdout_0_2 = { package = "opentelemetry-stdout", version = "0.2.0", features = ["trace"] } | ||
opentelemetry_stdout_0_3 = { package = "opentelemetry-stdout", version = "0.3.0", features = ["trace"] } | ||
opentelemetry_stdout_0_4 = { package = "opentelemetry-stdout", version = "0.4.0", features = ["trace"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters