Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Adding on span error callbacks #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jondeandres
Copy link

I'd like to extend the functionality of Span._on_error to allow
integrating other tools with the error handling of the spans.

I don't think monkey patching is the good way to go on this, since also
Span._on_error is a private method.

Another approach would be having a exit_callbacks list to be executed
on each __exit__ call.

I am not sure this funcionality exists on other languages implementation
but it'd open the door to do more powerful integrtions with OpenTracing.

I'd like to extend the functionality of Span._on_error to allow
integrating other tools with the error handling of the spans.

I don't think monkey patching is the good way to go on this, since also
`Span._on_error` is a private method.

Another approach would be having a `exit_callbacks` list to be executed
on each `__exit__` call.

I am not sure this funcionality exists on other languages implementation
but it'd open the door to do more powerful integrtions with OpenTracing.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant