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

Add the route_stats option and make RouteSender respect envs #369

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Dec 3, 2018

RouteSender must respect the ignore_environments option because the current
behaviour is inconsistent (e.g. we collect route stats but don't send notices).

The route_stats option allows disabling the feature altogether, no matter what
environment is used. When enabled (the default), it will work only in allowed
environments. This should be useful for apps that don't have any routes, which
protects against unwanted Airbrake.notify_request calls. Low tier accounts that
don't support the feature should also be configuring this.

@kyrylo kyrylo force-pushed the optional-route-stats branch from b45992e to fdbc24d Compare December 3, 2018 13:46
`RouteSender` must respect the `ignore_environments` option because the current
behaviour is inconsistent (e.g. we collect route stats but don't send notices).

The `route_stats` option allows disabling the feature altogether, no matter what
environment is used. When enabled (the default), it will work only in allowed
environments. This should be useful for apps that don't have any routes, which
protects against unwanted `Airbrake.notify_request` calls. Low tier accounts
that don't support the feature should also be configuring this.
@kyrylo kyrylo force-pushed the optional-route-stats branch from fdbc24d to c41c5f3 Compare December 3, 2018 14:09
@kyrylo kyrylo merged commit e89381d into master Dec 3, 2018
@kyrylo kyrylo deleted the optional-route-stats branch December 3, 2018 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant