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

Make config env, root path and options read only #1308

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Make config env, root path and options read only #1308

merged 3 commits into from
Sep 27, 2024

Conversation

tombruijn
Copy link
Member

Refactor specs to not modify config after init

Do like the actual apps that use AppSignal and don't modify the config after it's initialized. Set the config options using the build_config helper instead.

Improve docs for config sources API

The attribute docs were out of date and didn't cover all the attributes. Instead give them the same docs for all source attributes.

Make config env, root path and options read only

Not sure why these were an accessor, but they don't need to define writers to allow app to overwrite the config after AppSignal has started. That can cause problems and expectations that the changed config is picked up.

[skip changeset] as these are private APIs.

[skip review]

Do like the actual apps that use AppSignal and don't modify the config
after it's initialized. Set the config options using the `build_config`
helper instead.
The attribute docs were out of date and didn't cover all the attributes.
Instead give them the same docs for all source attributes.
Not sure why these were an accessor, but they don't need to define
writers to allow app to overwrite the config after AppSignal has
started. That can cause problems and expectations that the changed
config is picked up.

[skip changeset] as these are private APIs.
@tombruijn tombruijn self-assigned this Sep 27, 2024
@tombruijn tombruijn merged commit 274c387 into main Sep 27, 2024
122 checks passed
@tombruijn tombruijn deleted the public-api branch September 27, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant