#Having trouble using Sentry with Modal functions

8 messages · Page 1 of 1 (latest)

lavish bison
#

Hi- I seem to be having trouble with Sentry tracing on Modal functions. My understanding is that I cannot just use the @serverless wrapper because my modal functions are all async. As such i have custom tooling for my functions. Some of my functions are showing up in the ui but some do not.

lavish bison
#

following up on this, is there a maximum transaction duration?

thorny sequoia
#

most likely the process is being killed before the SDK can send info to Sentry. You can add Sentry.flush() at the end of the execution (which is done automatically by the sentry wrapper)

#

we have a default limit of 30s for frontend spans (pageload/navigation) but not for backend spans.
note that each transaction is limited to 1000 child spans

lavish bison
#

what happens to transactions with > 1000 child spans? do only the first 1000 get captured?

also, I have a flush on the decorator. Its consistent which functions show up and which don't. all with the same decorator

#

I'll add that when i have sentry with debug=True, i see logs for the envelope being manually flushed before container shutdown.

thorny sequoia
#

the SDK itself will stop adding more spans after 1000

#

the SDK can send the event, but the server might still reject it.
you can look for dropped reasons on the stats and usage page