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

[BUG] Can't add custom filters #2421

Closed
th3ragex opened this issue Aug 16, 2024 · 0 comments · Fixed by #2426
Closed

[BUG] Can't add custom filters #2421

th3ragex opened this issue Aug 16, 2024 · 0 comments · Fixed by #2426
Labels
bug Something isn't working community triage

Comments

@th3ragex
Copy link

APM Agent version

The version of the Elastic.Apm nuget package used: 1.28.3

Describe the bug

After #2418 it's not possible to add custom filters anymore.

_allowFilterAdd is never set to true. It seems the only active filters are predefined filters added via internal SetUpFilters method.

private bool _allowFilterAdd;

To Reproduce

Call Agent.AddFilter method after Agent was initialized and expect true as return value .

Call Agent.AddFilter method before Agent gets initialized and expect the filter to be present in the filters list after Agent initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant