improve code

This commit is contained in:
houseme
2025-03-16 16:33:52 +08:00
parent c3ca7960e9
commit ef162396cf
15 changed files with 724 additions and 206 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ workspace = true
[features]
default = ["file"]
kafka = ["dep:rdkafka", "dep:serde_json"]
kafka = ["dep:rdkafka"]
webhook = ["dep:reqwest"]
file = []
@@ -28,12 +28,13 @@ opentelemetry-semantic-conventions = { workspace = true, features = ["semconv_ex
serde = { workspace = true }
tracing = { workspace = true }
tracing-core = { workspace = true }
tracing-error = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing-subscriber = { workspace = true, features = ["fmt", "env-filter", "tracing-log", "time", "local-time", "json"] }
tokio = { workspace = true, features = ["sync", "fs", "rt-multi-thread"] }
rdkafka = { workspace = true, features = ["tokio"], optional = true }
reqwest = { workspace = true, optional = true, default-features = false }
serde_json = { workspace = true, optional = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
local-ip-address = { workspace = true }