Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore calls to start AppSignal twice #1217

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Ignore calls to start AppSignal twice #1217

merged 2 commits into from
Jul 26, 2024

Conversation

tombruijn
Copy link
Member

Ignore calls to start AppSignal twice

When AppSignal has started, ignore any calls to start it multiple times. If applications change the config after start, it should not start AppSignal again. This type of behavior can cause AppSignal boot loops as two configurations fight to be active.

Ignore config customization when started

For anyone who finds this private method, ignore any config changes on Appsignal._config = when AppSignal has already started.

This way Ruby applications in memory can't claim AppSignal is using one config when inspecting Appsignal.config, while it has started with another config.

When AppSignal has started, ignore any calls to start it multiple times.
If applications change the config after start, it should not start
AppSignal again. This type of behavior can cause AppSignal boot loops as
two configurations fight to be active.
For anyone who finds this private method, ignore any config changes on
`Appsignal._config =` when AppSignal has already started.

This way Ruby applications in memory can't claim AppSignal is using one
config when inspecting `Appsignal.config`, while it has started with
another config.
@tombruijn tombruijn self-assigned this Jul 26, 2024
@tombruijn tombruijn marked this pull request as ready for review July 26, 2024 13:00
@tombruijn tombruijn mentioned this pull request Jul 26, 2024
82 tasks
@tombruijn tombruijn merged commit 6643d7f into develop Jul 26, 2024
113 checks passed
@tombruijn tombruijn deleted the dont-start-twice branch July 26, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants