Skip to content

Commit

Permalink
feat(sdf,telemetry): add INFO level tracing span for every request
Browse files Browse the repository at this point in the history
This change introduces a new crate `telemetry-http` that implements a
`tower-http` trait (`MakeSpan`) which is used by SDF's axum every time
it begins to process an inbound HTTP request.

Signed-off-by: Fletcher Nichol <[email protected]>
  • Loading branch information
fnichol committed Jan 11, 2024
1 parent ed64aec commit 03154f4
Show file tree
Hide file tree
Showing 11 changed files with 588 additions and 445 deletions.
142 changes: 38 additions & 104 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ members = [
"lib/si-test-macros",
"lib/si-posthog-rs",
"lib/telemetry-application-rs",
"lib/telemetry-http-rs",
"lib/telemetry-rs",
"lib/veritech-client",
"lib/veritech-core",
Expand Down
1 change: 1 addition & 0 deletions lib/sdf-server/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rust_library(
"//lib/si-posthog-rs:si-posthog",
"//lib/si-settings:si-settings",
"//lib/si-std:si-std",
"//lib/telemetry-http-rs:telemetry-http",
"//lib/telemetry-rs:telemetry",
"//lib/veritech-client:veritech-client",
"//third-party/rust:async-recursion",
Expand Down
1 change: 1 addition & 0 deletions lib/sdf-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ si-std = { path = "../../lib/si-std" }
sodiumoxide = { workspace = true }
strum = { workspace = true }
telemetry = { path = "../../lib/telemetry-rs" }
telemetry-http = { path = "../../lib/telemetry-http-rs" }
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-tungstenite = { workspace = true }
Expand Down
Loading

0 comments on commit 03154f4

Please sign in to comment.