-
-
Notifications
You must be signed in to change notification settings - Fork 21
Feature Request: with_event decorator #147
Copy link
Copy link
Open
Description
What are the thoughts on adding a new decorator alongside the main with_span decorator that handles adding a span event?
In our use of OpenTelemetry we noticed that we have some functions that we would like to trace, but only when it is called while in an already started span. We did not want to create a new span and introduce noise (in our situation). A with_event or with_span_event decorator that utilizes some of the same attribute parsing logic seems useful and makes sense to add into this library. I wouldn't mind implementing this as well.
Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels