feat: add elasticsearch tracing subscriber

create lib/pk_core
This commit is contained in:
spiral
2022-07-10 01:15:03 -04:00
parent 5097eb9ce2
commit 1825a00248
4 changed files with 128 additions and 0 deletions

14
lib/pk_core/Cargo.toml Normal file
View File

@@ -0,0 +1,14 @@
[package]
name = "pk_core"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
chrono = "0.4.19"
reqwest = { version = "0.11.11", default-features = false, features = ["blocking", "rustls-tls"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json","std","env-filter"] }
tracing-appender = "0.2"