Implement initialization for packages/logging

- Add initialization logic for the `rustfs-logging` crate.
- Provide examples for logging utilities.
- Include tests for logging and telemetry functionalities.
- Ensure proper configuration of dependencies in `Cargo.toml`.
This commit is contained in:
houseme
2025-02-21 13:46:35 +08:00
parent 391eb5b6f9
commit 03589201fb
9 changed files with 587 additions and 7 deletions
+9 -1
View File
@@ -13,6 +13,7 @@ members = [
"iam",
"crypto",
"cli/rustfs-gui",
"packages/logging",
]
resolver = "2"
@@ -59,6 +60,11 @@ lock = { path = "./common/lock" }
lazy_static = "1.5.0"
mime = "0.3.17"
netif = "0.1.6"
opentelemetry = { version = "0.28" }
opentelemetry_sdk = { version = "0.28" }
opentelemetry-stdout = { version = "0.28.0" }
opentelemetry-otlp = { version = "0.28" }
opentelemetry-semantic-conventions = { version = "0.28.0", features = ["semconv_experimental"] }
pin-project-lite = "0.2"
# pin-utils = "0.1.0"
prost = "0.13.4"
@@ -71,6 +77,7 @@ reqwest = { version = "0.12.12", default-features = false, features = ["rustls-t
rfd = "0.15.2"
rmp = "0.8.14"
rmp-serde = "1.3.0"
rustfs-logging = { path = "packages/logging", version = "0.0.1" }
s3s = { git = "https://github.com/Nugine/s3s.git", rev = "529c8933a11528c506d5fbf7c4c2ab155db37dfe", default-features = true, features = [
"tower",
] }
@@ -96,6 +103,7 @@ tracing = "0.1.41"
tracing-error = "0.2.1"
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "time"] }
tracing-appender = "0.2.3"
tracing-opentelemetry = "0.29"
transform-stream = "0.3.1"
url = "2.5.4"
uuid = { version = "1.12.1", features = [
@@ -108,4 +116,4 @@ axum = "0.7.9"
md-5 = "0.10.6"
workers = { path = "./common/workers" }
test-case = "3.3.1"
zip = "2.2.2"
zip = "2.2.2"