Complete log stream implementation

Sets up a watch channel to send tracing lines from tracing-subscriber to
receivers in a axum handler which streams Server Sent Events to any
number of connected /log/stream clients.
This commit is contained in:
2023-06-03 19:03:58 -04:00
parent 951d6d23e2
commit 6713a7a440
6 changed files with 66 additions and 8 deletions

3
Cargo.lock generated
View File

@@ -255,6 +255,7 @@ dependencies = [
"anyhow",
"argh",
"axum",
"bytes",
"chrono",
"dotenvy",
"feed-rs",
@@ -267,6 +268,7 @@ dependencies = [
"sqlx",
"thiserror",
"tokio",
"tokio-stream",
"tower",
"tower-http",
"tower-livereload",
@@ -2051,6 +2053,7 @@ dependencies = [
"futures-core",
"pin-project-lite",
"tokio",
"tokio-util",
]
[[package]]