Skip to content

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 added the chore A small task that takes a day or two at the most. label Sep 27, 2024
@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

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant