From 9f456086313fbc6d5f82f6be5f7d5796efadc65e Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Thu, 30 May 2024 17:16:33 +0000 Subject: [PATCH] chore: update all dependencies --- Cargo.toml | 14 +++++++------- crates/ark/core/src/tracer.rs | 6 ++---- crates/kubegraph/vm/local/src/lib.rs | 5 +++-- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0e6cb893..c73cd10a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,7 +93,7 @@ actix-web = { version = "4.6", default-features = false, features = [ "macros", "rustls", ] } -actix-web-opentelemetry = { version = "0.17", features = ["metrics"] } +actix-web-opentelemetry = { version = "0.18", features = ["metrics"] } anyhow = { version = "1.0", features = ["backtrace"] } arrow = { version = "51" } # should be synced with deltalake and lancedb argon2 = { version = "0.5" } @@ -154,18 +154,18 @@ octocrab = { version = "0.38", default-features = false, features = [ opencv = { version = "0.92", default-features = false, features = [ "clang-runtime", ] } -opentelemetry = { version = "0.22", features = ["logs", "metrics", "trace"] } -opentelemetry-appender-tracing = { version = "0.3", features = [ +opentelemetry = { version = "0.23", features = ["logs", "metrics", "trace"] } +opentelemetry-appender-tracing = { version = "0.4", features = [ # "experimental_metadata_attributes", "logs_level_enabled", ] } -opentelemetry-otlp = { version = "0.15", features = [ +opentelemetry-otlp = { version = "0.16", features = [ "logs", "metrics", "trace", ] } -opentelemetry-proto = { version = "0.5", features = ["with-serde", "zpages"] } -opentelemetry_sdk = { version = "0.22", features = [ +opentelemetry-proto = { version = "0.6", features = ["with-serde", "zpages"] } +opentelemetry_sdk = { version = "0.23", features = [ "logs_level_enabled", "metrics", "rt-tokio", @@ -255,7 +255,7 @@ tonic = { version = "0.11", features = [ "gzip", ] } # should be synced with opentelemetry-proto tracing = { version = "0.1" } -tracing-opentelemetry = { version = "0.23", features = [ +tracing-opentelemetry = { version = "0.24", features = [ "metrics", "tracing-log", ] } # should be synced with opentelemetry diff --git a/crates/ark/core/src/tracer.rs b/crates/ark/core/src/tracer.rs index 1eae2416..863eaec0 100644 --- a/crates/ark/core/src/tracer.rs +++ b/crates/ark/core/src/tracer.rs @@ -54,10 +54,8 @@ fn init_once_opentelemetry(export: bool) { .logging() .with_exporter(init_otlp_pipeline()) .install_batch(Runtime) - .map(|logger| { - ::opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge::new( - logger.provider(), - ) + .map(|ref provider| { + ::opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge::new(provider) }) .expect("failed to init a logger") } diff --git a/crates/kubegraph/vm/local/src/lib.rs b/crates/kubegraph/vm/local/src/lib.rs index 1dd53434..d5962205 100644 --- a/crates/kubegraph/vm/local/src/lib.rs +++ b/crates/kubegraph/vm/local/src/lib.rs @@ -330,10 +330,11 @@ mod tests { async fn simulate_simple_with_function() { use kube::api::ObjectMeta; use kubegraph_api::{ + annotator::NetworkAnnotationSpec, frame::DataFrame, function::{ dummy::NetworkFunctionDummySpec, NetworkFunctionCrd, NetworkFunctionKind, - NetworkFunctionMetadata, NetworkFunctionSpec, + NetworkFunctionSpec, }, graph::{Graph, GraphData, GraphFilter, GraphMetadata, GraphScope, NetworkGraphDB}, problem::{ProblemSpec, VirtualProblemAnalyzer}, @@ -379,7 +380,7 @@ mod tests { }, spec: NetworkFunctionSpec { kind: NetworkFunctionKind::Dummy(NetworkFunctionDummySpec {}), - metadata: NetworkFunctionMetadata { + metadata: NetworkAnnotationSpec { filter: Some( "src != sink and src.supply > 0 and src.supply > sink.supply".into(), ),