Skip to content

Commit

Permalink
[ANE-1027] Reduce broker trace file size (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
nficca authored Sep 23, 2024
1 parent 6c25822 commit 97dd73b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.3.2

Features:
- Simplify trace output to reduce trace file size

## v0.3.1

Features:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/api/remote/git/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ fn parse_ls_remote(output: String) -> Vec<Reference> {
.collect()
}

#[tracing::instrument]
fn line_to_git_ref(line: &str) -> Option<Reference> {
let mut parsed = line.split_whitespace();
let commit = parsed.next()?;
Expand Down
3 changes: 2 additions & 1 deletion src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);

Expand Down

0 comments on commit 97dd73b

Please sign in to comment.