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
233 changes: 124 additions & 109 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crate/config_utils", "crate/logger", "crate/http_client"]
resolver = "2"

[workspace.package]
version = "0.7.2"
version = "0.8.0"
edition = "2021"
Comment thread
p0wline marked this conversation as resolved.
rust-version = "1.71.0"
Comment on lines 5 to 8

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not applicable. The 0.8.0 bump is intentional: the new init_tracing() public API is a backward-incompatible addition to the public surface (new types TelemetryGuards, new function, new error module), which warrants a minor version bump under semver. The PR title already reflects this with (v0.8.0); only the early description draft was stale.

authors = [
Expand Down
71 changes: 27 additions & 44 deletions crate/logger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,60 +1,43 @@
[package]
name = "cosmian_logger"
description = "Shared tracing and OTLP initialization for Rust services"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
description = "Logger helper"

[[example]]
name = "tracing_example"
required-features = ["full"]

[features]
default = []
full = [
"opentelemetry-otlp",
"opentelemetry-semantic-conventions",
"opentelemetry-stdout",
"opentelemetry_sdk",
"tracing-opentelemetry",
"syslog-tracing",
]
license.workspace = true

[dependencies]
Comment thread
Manuthor marked this conversation as resolved.
opentelemetry = { version = "0.29", features = ["trace", "metrics"] }
opentelemetry-otlp = { version = "0.29", features = [
"trace",
"metrics",
"integration-testing",
"grpc-tonic",
], optional = true }
opentelemetry-semantic-conventions = { version = "0.29", features = [
"semconv_experimental",
], optional = true }
opentelemetry-stdout = { version = "0.29", features = [
"trace",
"metrics",
], optional = true }
opentelemetry_sdk = { version = "0.29", default-features = false, features = [
"trace",
], optional = true }
syslog-tracing = { version = "0.3", optional = true }
opentelemetry = "0.32"
opentelemetry-appender-tracing = "0.32"
opentelemetry-otlp = { version = "0.32", features = [
"metrics",
"logs",
"grpc-tonic"
] }
opentelemetry-semantic-conventions = "0.32"
opentelemetry_sdk = { version = "0.32", features = [
"metrics",
"logs",
"rt-tokio"
] }
thiserror = { workspace = true }
syslog-tracing = "0.3"
tracing = { workspace = true }
tracing-opentelemetry = { version = "0.30", optional = true }
tracing-opentelemetry = { version = "0.33" }
Comment thread
p0wline marked this conversation as resolved.
tracing-subscriber = { workspace = true, features = [
"env-filter",
"fmt",
"ansi",
"ansi",
"env-filter",
"fmt",
"std"
] }

# tracing-appender uses the `symlink` crate for file rotation which does not compile on
# wasm32-unknown-unknown. Gate it to native targets only.
# tracing-appender uses platform-specific file rotation that does not compile on wasm32.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tracing-appender = { workspace = true }
Comment thread
Manuthor marked this conversation as resolved.

[dev-dependencies]
tokio = { version = "1.47", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }

[[example]]
name = "tracing_example"
required-features = ["full"]
Loading
Loading