How to use startSpan with generator functions #16503
Unanswered
PRESIDENT810
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our project uses redux-saga and we use generator functions very heavily. We are using @sentry/react v7 which works fine because
startTransaction
API because it returns a transaction object and doesn't use callback. However, after we upgrade it to v8,startTransaction
is gone and there's onlystartSpan
where it takes a callback in which you make changes to thespan
object.I find our code is is not compatible with this API at all. For example, we use Sentry to trace a network request in a generator function which looks like this:
With v8, it has to be
I assume it wouldn't work?
Is there any way to make use of the new tracing API with generator functions? If not, can we have a tracing API that doesn't require a callback function? Otherwise we can never upgrade Sentry beyond v8
Thanks
Beta Was this translation helpful? Give feedback.
All reactions