appsignal / appsignal-python

🟦 AppSignal for Python package
https://www.appsignal.com/
MIT License
6 stars 2 forks source link

Add helper to manually stop agent processes #222

Closed luismiramirez closed 2 months ago

luismiramirez commented 3 months ago

In some specific contexts such as serverless functions, the execution is stopped before the agent gets all the data to send it to AppSignal.

There's a new function that manually allows you to gracefully stop AppSignal's agent processes so all the data is flushed before the execution is closed.

Fixes: #221