We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems that if you send multiple messages in the same buffer with different levels, here: https://github.com/xente/loki-logger-handler/blob/main/loki_logger_handler/loki_logger_handler.py#L112 All messages sent within a buffer will have the same label extracted, e.g. "level" extracted via:
label_keys={ "level", },
so, messages with level "DEBUG" and "INFO" will all have the label level set to "INFO", even if there is {level:"DEBUG"} in the raw message itself.
which can be fixed by changing this line: https://github.com/xente/loki-logger-handler/blob/main/loki_logger_handler/loki_logger_handler.py#L180
should be: key_list = sorted(labels.values()) instead of key_list = sorted(labels.keys())
key_list = sorted(labels.values())
key_list = sorted(labels.keys())
The text was updated successfully, but these errors were encountered:
It will be fixed on 1.0.2 version
Sorry, something went wrong.
@dnezic v 1.0.2 has been released.
xente
Successfully merging a pull request may close this issue.
Seems that if you send multiple messages in the same buffer with different levels, here:
https://github.com/xente/loki-logger-handler/blob/main/loki_logger_handler/loki_logger_handler.py#L112
All messages sent within a buffer will have the same label extracted, e.g. "level" extracted via:
so, messages with level "DEBUG" and "INFO" will all have the label level set to "INFO", even if there is {level:"DEBUG"} in the raw message itself.
which can be fixed by changing this line:
https://github.com/xente/loki-logger-handler/blob/main/loki_logger_handler/loki_logger_handler.py#L180
should be:
key_list = sorted(labels.values())
instead of
key_list = sorted(labels.keys())
The text was updated successfully, but these errors were encountered: