Skip to content

Commit fa8a7e0

Browse files
Improve tracing (#1318)
* Add opentelemetry OTLP export support * Rewrite top-level HTTP request handler - fix instrumentation * Flush spans before shutdown * Use OT "semantic conventions" for common fields commit-id:4f45746e
1 parent 2851e36 commit fa8a7e0

File tree

4 files changed

+372
-113
lines changed

4 files changed

+372
-113
lines changed

Cargo.lock

+218-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

josh-core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub fn get_change_id(commit: &git2::Commit, sha: git2::Oid) -> Change {
229229
change
230230
}
231231

232-
#[tracing::instrument(skip(transaction))]
232+
#[tracing::instrument(level = tracing::Level::TRACE, skip(transaction))]
233233
pub fn filter_commit(
234234
transaction: &cache::Transaction,
235235
filterobj: filter::Filter,

josh-proxy/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ tempdir = "0.3.7"
4444
gix = { workspace = true }
4545
juniper = { workspace = true }
4646
git2 = { workspace = true }
47+
opentelemetry-semantic-conventions = "0.14.0"
48+
opentelemetry-otlp = "0.13.0"

0 commit comments

Comments
 (0)