-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ANE-1027] Reduce broker trace file size #146
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO, these are the span events we really care about. From the docs:
From my analysis, I noticed that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Correct!
Good insight, I agree completely. Really, the "new" and "close" events are all we need for latency measures. |
||
.with_writer(sink), | ||
); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing A LOT of traces. The function above (
parse_ls_remote
) calls this function for every single reference in the repo, and that can be a lot (tensorflow has 44,567 for example). I don't think we need a span created for each of these.