-
Notifications
You must be signed in to change notification settings - Fork 0
feat(logger): add init_tracing() for Kubernetes OTLP deployments (v0.8.0) #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c49df2d
0dedbe9
5f82786
c1c0f33
9b51ef4
6259df1
cea858e
b615a7d
c2fba2b
a673089
74a2a14
f54be6f
1676de6
ad0cb73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
| rust-version = "1.71.0" | ||
|
Comment on lines
5
to
8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 = [ | ||
|
|
||
| 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] | ||
|
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" } | ||
|
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 } | ||
|
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"] | ||
Uh oh!
There was an error while loading. Please reload this page.