-
Notifications
You must be signed in to change notification settings - Fork 47
fix: tracing deserialization #1163
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
fix: tracing deserialization #1163
Conversation
Signed-off-by: Sander Pick <sanderpick@gmail.com>
| #[serde_as] | ||
| #[derive(Debug, Deserialize, Clone, Default, strum::EnumString, strum::Display)] | ||
| #[strum(serialize_all = "snake_case")] | ||
| #[serde(rename_all = "lowercase")] |
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.
apparently #[strum(serialize_all = "snake_case")] only applies to and from string, not with serde.
| .with_list_parse_key("eth.tracing.file.domain_filter") | ||
| .with_list_parse_key("eth.tracing.file.events_filter"), |
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.
Are these necessary for the Eth API process? I think it should just reuse the general tracing configuration, and if we want to enable/disable Eth API tracing, we should have an Eth domain we can disable through the domain_filter.
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.
Nice, that sounds better. So maybe EthSettings should just have a subset of the tracing settings? as in:
pub domain_filter: Option<Vec<String>>,
pub events_filter: Option<Vec<String>>,
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.
I'm happy to make that change if sounds right... would prefer to do in a diff PR.
Signed-off-by: Sander Pick <sanderpick@gmail.com>
| max_log_files = 5 # Number of files to keep after rotation | ||
| rotation = "daily" # Options: minutely, hourly, daily, never | ||
| ## Optional: filter events by domain | ||
| domain_filter = "Bottomup, Consenesus, Mpool, Execution, Topdown, TracingError" |
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.
looking for instances of impl_traceables!, I didn't find one with "TracingError", but there was one with "System"
Co-authored-by: raulk <raul.kripalani@gmail.com>
domain_filterandevents_filtervia env