Is there any support to transport synchronously like HTTPTransport of raven (https://docs.sentry.io/clients/python/transports/#sync)? I could not find any support as far as I read code.
I want to transport synchronously for AWS Batch. AWS Batch can not send any exceptions in asynchronous way because it stop as soon as it raises exceptions.
We probably want to do something different there: Offer a method on the client that allows you to wait until all events are sent.
The AWS Lambda integration already hacks around this but I think we need something outside of the integration. We can't support every AWS product directly.
To elaborate, the reason we want to avoid having a blocking transport is because there is no reason to block on every single event sent. That can totally run in the background as long as we block at the end should there still be something in the queue.
@untitaker I believe I require synchronous support, as PythonAnywhere seems not to support threads. Hence, it looks like anyone who's using PA will no longer be able to use Sentry? Am I missing something?
@Brachamul Okay, we'll figure something out for the new SDK. In the meantime please use raven.
Google App Engine also has no background threads and so we have to stay on raven for now.
Hello @untitaker, is there a plan to figure something out, as you suggested ?
I'd love to be able to re-enable sentry on my pythonanywhere environments, but I'm not too keen on implementing raven since it's labeled "deprecated".
Thanks !
@Brachamul it's not a priority right now. Implementing the transport is straightforward, but I want to figure out how to change the default transport from an integration as well.
I'd accept a patch that implements it though.
tbh Python Anywhere is the only environment I am aware of that doesn't support threads. Even AWS Lambda supports threads. If we find out that Google Cloud Functions or some other of those kind of platforms doesn't have threads, the priorities might change.
Are there any updates on supporting this? I'm trying to upgrade from the raven package as well and need support for an instance where we use HTTPTransport when initializing the raven client, and while the SDK python documentation mentions transports it doesn't have any further detail on usage.
@neill is this for an env that doesn't have threads?
@neill to be clear, we are collecting data on how many environments this affects. Right now it seems to be only Python Anywhere.
We tried to use the Sentry SDK with our Google App Engine app, but ran into this issue. Is there any plan to support this?
@DavidGReid not sure if GAE supports threads but if it does the answer is the same as to https://github.com/getsentry/sentry-python/issues/181, use the generic serverless integration/decorator
Most helpful comment
We tried to use the Sentry SDK with our Google App Engine app, but ran into this issue. Is there any plan to support this?