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

Externally hosted exclusion rules #16

Open
RobinHoutevelts opened this issue Aug 23, 2023 · 1 comment
Open

Externally hosted exclusion rules #16

RobinHoutevelts opened this issue Aug 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@RobinHoutevelts
Copy link
Contributor

Summary

This modules supports dropping unwanted logs through the excluded_exceptions and excluded_tags config options.
However, we (Wieni, the web agency) want the possibility to consolidate some exclusions for our entire organization.

For example when we identify a new tag or exception that we want to exclude, we don't want to have to update the wmsentry config in all our projects.
As a workaround we used inbound filters, but that's only available when you have a Business subscription at Sentry. We moved to a Teams subscription so are looking for a new workaround.

Proposal

A new exclusion_remote_config option where you can enter a url to fetch extra exclusion config.

exclusion_remote_config: 'https://s3.eu-central-1.amazonaws.com/org-wmsentry-config/wmsentry.config.yaml'

The content at https://s3.eu-central-1.amazonaws.com/org-wmsentry-config/wmsentry.config.yaml is:

excluded_exceptions:
  - Drupal\my_module\Exception\SomeException
excluded_tags:
  - tag: channel
    value: 'some channel'

If we want to add a new excluded exception to all our projects, we would only need to update the yaml file stored on S3.
Cron will check if the yaml file on s3 has changed and will reconfigure wmsentry if needed.

@RobinHoutevelts RobinHoutevelts added the enhancement New feature or request label Aug 23, 2023
@RobinHoutevelts RobinHoutevelts self-assigned this Aug 23, 2023
@spoit
Copy link
Member

spoit commented Aug 24, 2023

Why S3 and not.. github?

@RobinHoutevelts RobinHoutevelts removed their assignment Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants