Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve reliability of AppSignal initialization process
Since Puma detects running threads when preloading an application we need to stop it and then restart when each of the workers are forked. It was sort of working before because it detected when the PID of the process had changed and then restarted the thread itself.
- Loading branch information
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Stop the AppSignal agent thread and restart it when the workers are forked | ||
Appsignal.agent.stop_thread if defined?(Appsignal) && Appsignal.config.active? |
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