We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be cool to add at least:
But it would be great to also add tags, and as such, to add an extra macro derive attribute:
#[timed::timed(printer = "info!", tracing=true, tags = ["foo", "baz"])] fn main() { }
For this you'd need to modify:
#[derive(Debug, FromMeta)] struct MacroArgs { #[darling(default)] printer: Option<String>, #[darling(default)] tracing: Option<bool>, }
inside the macro crate: timed_prod_macros and add tags and process id and all the stuff to the Hop object
fn codegen_tracing(options: &MacroArgs, function_name: &str) -> (Option<Code>, Option<Code>) { // stuff.. timed::Trace::collect(timed::Hop { ph: timed::Phase::E, name: #function_name.to_string(), ts}); // }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be cool to add at least:
But it would be great to also add tags, and as such, to add an extra macro derive attribute:
For this you'd need to modify:
inside the macro crate: timed_prod_macros and add tags and process id and all the stuff to the Hop object
The text was updated successfully, but these errors were encountered: