Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ Cargo.lock


# End of https://www.gitignore.io/api/rust,macos,visualstudiocode
.cursor
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tracing-subscriber = { version = "0.3.0", default-features = false, features = [
tracing-log = { version = "0.2.0", default-features = false, optional = true }
rustversion = "1.0.9"
smallvec = { version = "1.0", optional = true }
thiserror = { version = "2", default-features = false }

# Fix minimal-versions
lazy_static = { version = "1.0.2", optional = true }
Expand All @@ -37,7 +38,7 @@ lazy_static = { version = "1.0.2", optional = true }
async-trait = "0.1.56"
criterion = { version = "0.5.1", default-features = false, features = ["html_reports"] }
opentelemetry = { version = "0.30.0", features = ["trace", "metrics"] }
opentelemetry_sdk = { version = "0.30.0", default-features = false, features = ["trace", "rt-tokio", "experimental_metrics_custom_reader"] }
opentelemetry_sdk = { version = "0.30.0", default-features = false, features = ["trace", "rt-tokio", "experimental_metrics_custom_reader", "testing"] }
opentelemetry-stdout = { version = "0.30.0", features = ["trace", "metrics"] }
opentelemetry-otlp = { version = "0.30.0", features = ["metrics", "grpc-tonic"] }
opentelemetry-semantic-conventions = { version = "0.30.0", features = ["semconv_experimental"] }
Expand Down
4 changes: 1 addition & 3 deletions benches/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ where
let span = ctx.span(&id).expect("Span not found, this is a bug");
let mut extensions = span.extensions_mut();

if let Some(builder) = extensions.remove::<SpanBuilder>() {
builder.with_end_time(SystemTime::now());
}
extensions.remove::<SpanBuilder>();
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/opentelemetry-remote-context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn main() {
let app_root = span!(tracing::Level::INFO, "app_start");

// Assign parent trace from external context
app_root.set_parent(parent_context);
let _ = app_root.set_parent(parent_context);

// To include tracing context in client requests from _this_ app,
// use `context` to extract the current OpenTelemetry context.
Expand Down
Loading