Skip to content

Commit

Permalink
chore(deps): Bump the opentelemetry group (#13639)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: BugenZhao <[email protected]>
  • Loading branch information
4 people authored Feb 18, 2024
1 parent a256378 commit 5f8ce34
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 52 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ updates:
- "prost*"
opentelemetry:
patterns:
- "opentelemetry"
- "opentelemetry*"
- "tracing-opentelemetry"
mysql:
Expand Down
101 changes: 61 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git"
"profiling",
"stats",
], rev = "64a2d9" }
opentelemetry = "0.21"
opentelemetry-otlp = "0.14"
opentelemetry_sdk = { version = "0.21", default-features = false }
opentelemetry-semantic-conventions = "0.13"
tokio-util = "0.7"
tracing-opentelemetry = "0.22"

risingwave_backup = { path = "./src/storage/backup" }
risingwave_batch = { path = "./src/batch" }
Expand Down
2 changes: 1 addition & 1 deletion src/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ futures-async-stream = { workspace = true }
hdrhistogram = "7"
itertools = "0.12"
libc = "0.2"
opentelemetry = { version = "0.20", default-features = false, features = ["rt-tokio"], optional = true }
opentelemetry = { workspace = true, optional = true }
parking_lot = "0.12"
prometheus = { version = "0.13", features = ["process"] }
rand = "0.8"
Expand Down
5 changes: 3 additions & 2 deletions src/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ memcomparable = { version = "0.2", features = ["decimal"] }
num-integer = "0.1"
num-traits = "0.2"
number_prefix = "0.4.0"
opentelemetry = { version = "0.20", default-features = false }
opentelemetry = { workspace = true }
opentelemetry_sdk = { workspace = true }
parking_lot = "0.12"
parse-display = "0.9"
paste = "1"
Expand Down Expand Up @@ -110,7 +111,7 @@ toml = "0.8"
tonic = { workspace = true }
tracing = "0.1"
tracing-futures = { version = "0.2", features = ["futures-03"] }
tracing-opentelemetry = "0.21"
tracing-opentelemetry = { workspace = true }
tracing-subscriber = "0.3.17"
twox-hash = "1"
url = "2"
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/util/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::pin::Pin;
use std::task::{Context, Poll};

use opentelemetry::propagation::TextMapPropagator;
use opentelemetry::sdk::propagation::TraceContextPropagator;
use opentelemetry_sdk::propagation::TraceContextPropagator;
use tracing_opentelemetry::OpenTelemetrySpanExt;

/// Context for tracing used for propagating tracing information in a distributed system.
Expand Down
9 changes: 5 additions & 4 deletions src/utils/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ console-subscriber = "0.2.0"
either = "1"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
hostname = "0.3"
opentelemetry-otlp = { version = "0.13" }
opentelemetry-semantic-conventions = "0.12"
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
pprof = { version = "0.13", features = ["flamegraph"] }
risingwave_common = { workspace = true }
Expand All @@ -40,11 +38,14 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"fs"
] }
tracing = "0.1"
tracing-opentelemetry = "0.21"
tracing-opentelemetry = { workspace = true }
tracing-subscriber = { version = "0.3", features = ["fmt", "parking_lot", "std", "time", "local-time", "json"] }

[target.'cfg(not(madsim))'.dependencies]
opentelemetry = { version = "0.20", default-features = false, features = ["rt-tokio"] }
opentelemetry = { workspace = true }
opentelemetry-otlp = { workspace = true }
opentelemetry-semantic-conventions = { workspace = true }
opentelemetry_sdk = { workspace = true, features = ["rt-tokio"] } # only enable `rt-tokio` feature under non-madsim target
workspace-hack = { path = "../../workspace-hack" }

[lints]
Expand Down
5 changes: 3 additions & 2 deletions src/utils/runtime/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ pub fn init_risingwave_logger(settings: LoggerSettings) {
if let Some(endpoint) = settings.tracing_endpoint {
println!("opentelemetry tracing will be exported to `{endpoint}` if enabled");

use opentelemetry::{sdk, KeyValue};
use opentelemetry::KeyValue;
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk as sdk;
use opentelemetry_semantic_conventions::resource;

let id = format!(
Expand Down Expand Up @@ -435,7 +436,7 @@ pub fn init_risingwave_logger(settings: LoggerSettings) {
KeyValue::new(resource::SERVICE_VERSION, env!("CARGO_PKG_VERSION")),
KeyValue::new(resource::PROCESS_PID, std::process::id().to_string()),
])))
.install_batch(opentelemetry::runtime::Tokio)
.install_batch(sdk::runtime::Tokio)
.unwrap()
};

Expand Down
2 changes: 0 additions & 2 deletions src/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ num-iter = { version = "0.1", default-features = false, features = ["i128", "std
num-traits = { version = "0.2", features = ["i128", "libm"] }
openssl = { version = "0.10", features = ["vendored"] }
openssl-sys = { version = "0.9", default-features = false, features = ["vendored"] }
opentelemetry_api = { version = "0.20", features = ["logs", "metrics"] }
opentelemetry_sdk = { version = "0.20", features = ["logs", "metrics"] }
ordered-float = { version = "3" }
parking_lot = { version = "0.12", features = ["arc_lock", "deadlock_detection"] }
parking_lot_core = { version = "0.9", default-features = false, features = ["deadlock_detection"] }
Expand Down

0 comments on commit 5f8ce34

Please sign in to comment.