Offer @traced macro when macros gain function body replacement capabilities #125
Labels
1 - triaged
Task makes sense, is well defined, and is ready to be worked on
Milestone
Typically we trace at function level by wrapping the whole implementation in a span, as demonstrated by the sample.
It makes me think if we can have an
@Traced
macro attached to functions, which handles the span automatically for users. Eventually such macro should be configurable (explicit tracer, span name, extracting context from parameters, etc.), but AFAIK Swift macros seem not having such level of expressiveness yet.The text was updated successfully, but these errors were encountered: