Add observability using the tracing crate

This commit is contained in:
2022-01-10 14:41:11 +01:00
parent cbdf35eb53
commit 067838b159
10 changed files with 364 additions and 192 deletions

View File

@@ -13,19 +13,23 @@ name = "contextswitch-api"
[dependencies]
contextswitch-types = { path = "../types" }
actix-web = "=4.0.0-beta.18"
actix-http = "=3.0.0-beta.17"
actix-web = "=4.0.0-beta.19"
actix-http = "=3.0.0-beta.18"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
serde = { version = "1.0.0", features = ["derive"] }
serde_json = "1.0"
uuid = { version = "0.8.0", features = ["serde"] }
chrono = { version = "0.4.0", features = ["serde"] }
mktemp = "0.4.0"
configparser = "3.0.0"
env_logger = "0.9.0"
dotenv = "0.15.0"
listenfd = "0.3.0"
tracing = { version = "0.1.0", features = ["log"] }
tracing-subscriber = { version = "0.3.0", features = ["std", "env-filter", "fmt", "json"] }
tracing-bunyan-formatter = "0.3.0"
tracing-log = "0.1.0"
tracing-actix-web = "=0.5.0-beta.9"
[dev-dependencies]
actix-rt = "2"
reqwest = "0.11.6"
tokio = "1"
once_cell = "1.0"
reqwest = "0.11.0"