You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something that would also help when using emit in tests. It would be nice to have a span attribute that was tailored for tracing function execution:
The setup parameter is one we could add to emit::span that evaluates an expression before it does the internal span setup so you've got a chance to initialize emit. Then span_fn could expand to something like:
It might also be nice to include some unique identifier, like a hash of the full function name, on the emitted events so you can use them to build an aggregated flamegraph.
The text was updated successfully, but these errors were encountered:
KodrAus
changed the title
Add an instrument method for tracing function execution
Add an instrument attribute for tracing function execution
Oct 19, 2024
For #57
This is something that would also help when using
emit
in tests. It would be nice to have a span attribute that was tailored for tracing function execution:The
setup
parameter is one we could add toemit::span
that evaluates an expression before it does the internal span setup so you've got a chance to initializeemit
. Thenspan_fn
could expand to something like:If the function had arguments, those could be listed in a props collection to be included:
would expand to:
It might also be nice to include some unique identifier, like a hash of the full function name, on the emitted events so you can use them to build an aggregated flamegraph.
The text was updated successfully, but these errors were encountered: