diff --git a/CHANGELOG.md b/CHANGELOG.md index e96d70b..ed5e811 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.3.2 + +Features: +- Simplify trace output to reduce trace file size + ## v0.3.1 Features: diff --git a/Cargo.lock b/Cargo.lock index dbcfda1..a1b8857 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -265,7 +265,7 @@ dependencies = [ [[package]] name = "broker" -version = "0.3.1" +version = "0.3.2" dependencies = [ "aho-corasick 0.7.20", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index bdfea98..5b151d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "broker" -version = "0.3.1" +version = "0.3.2" edition = "2021" description = "The bridge between FOSSA and internal DevOps services" readme = "README.md" diff --git a/src/api/remote/git/repository.rs b/src/api/remote/git/repository.rs index 47f1c1f..c12ac81 100644 --- a/src/api/remote/git/repository.rs +++ b/src/api/remote/git/repository.rs @@ -342,7 +342,6 @@ fn parse_ls_remote(output: String) -> Vec { .collect() } -#[tracing::instrument] fn line_to_git_ref(line: &str) -> Option { let mut parsed = line.split_whitespace(); let commit = parsed.next()?; diff --git a/src/debug.rs b/src/debug.rs index 5cbcdd4..f03a054 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -140,7 +140,8 @@ impl Config { .with( tracing_subscriber::fmt::layer() .json() - .with_span_events(FmtSpan::FULL) + .flatten_event(true) + .with_span_events(FmtSpan::NEW | FmtSpan::CLOSE) .with_writer(sink), );