-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper to manually stop agent processes
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.
- Loading branch information
1 parent
1042266
commit cd581bf
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.changesets/new-helper-to-manually-stop-all-agent-processes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
bump: patch | ||
type: add | ||
--- | ||
|
||
New helper to manually stop all agent processes. | ||
|
||
Some specific contexts as serverless functions require to ensure all the data is sent to AppSignal before finishing. To achieve this, a new method (`appsignal.stop_agent_processes()`) gracefully stops all AppSignal processes so the data is not lost when wrapping up the app or function execution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters