-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
A lot of functions are called new and they can be expensive, like getting a network db handle. it's very unclear what happens when a lot of news appear in your flamegraph.
For that there are 2 options that I see:
- Allow overriding from the derive attributes
#[timed::timed(printer = "info!", tracing=true, name="whatever")]- Also (not exclusive to the above), add full module path to this. instead of recording it as "new", record it as "foo::bar::new". There is a macro for this, not sure if it works https://doc.rust-lang.org/std/macro.module_path.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed