-
Notifications
You must be signed in to change notification settings - Fork 29
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
Missing filtrationMode bloats Loki labels #81
Comments
The current behavior is works as expected, as for me.
So I don't think this is the way we're going. Facing the performance issues, related to not using labels is a good point to go the Loki + this sink doc and read it |
Thank you for your time answering this 👍 |
About the 2nd point, yep, you are right, but in my practice we always left some values that should be mapped to labels and config was like I will think about the possibility to turn off labeling and how it could live with the other planned features |
@AntonPetrov83 the change of behavior was implemented in v8.0.0-beta.0 Now you explicitly specify what properties will be mapped to the labels. Rest will be appended in the body (by default formatter). If you will define no list - no labels would be created. More details in #99 |
Which version of Serilog.Sinks.Grafana.Loki are you using?
7.1.0
Which version of .NET are you using?
net5.0
Describe the bug
I left label filtration mode uninitialized during configuration and received labels I was not expected. This is because of current implementation:
I think this is a very bad design decision because overusing labels downgrades Loki performance. I suggest that the default behaviour of
IsAllowedByFilter
should be to returnfalse
.Currently it looks like it is not possible to ignore label filtration logics at all.
To Reproduce
Expected behavior
Log/SelfLog output or exception with stacktrace
No response
Application or code sample, which could be used to reproduce a bug
No response
Additional context
No response
I have read the documentation
The text was updated successfully, but these errors were encountered: