-
Notifications
You must be signed in to change notification settings - Fork 115
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
Proposing a formatter allow-list configuration #440
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Trends 🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this would apply for Python. The Python implementation is a very blunt instrument, we explicitly recommend users to do it manually for better control.
We may want to bring in other agent teams to see if this makes sense as a cross-agent option or if it should just be Java.
Checking with other agents - if no agent see how this may be relevant, we don't have to include it in the spec, it can be Java-agent-specific |
I think it would be a very rare, but possible, use case in Node.js-land. The following are limiters to a config like this being used by Node.js users:
|
Just to clarify - the entire purpose of |
An additional thing I just noticed now that I missed in my original review - we called this config Personally, I prefer |
@eyalkoren I don't have strong feelings on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me, although not relevant to the .NET agent.
Co-authored-by: Russ Cam <russ.cam@elastic.co>
OK, I will merge this with a clarification that this is currently only used in the Java agent, so it is there in case some other agent needs something similar when implementing this. |
It's easy to imagine cases where users would want some logs to be automatically reformatted, but not others.
We can choose different entities to filter upon, for example - loggers, but the formatting entity seems like a good candidate to provide a good default, as normally we would like to reformat plain-text or pattern-based formatters, but not format specific ones, like JSON/HTML/XML etc.
@basepi I already added this config to the Java agent, but not necessarily we want to align on that. I asked your review because you are the only one that implemented it so far, to see if you think it makes sense.