-
Notifications
You must be signed in to change notification settings - Fork 26
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
Metadata Duplication #17
Comments
I should add, I'd be happy to do that work if it sounds good. |
I am using a workaround with a custom formatter:
However, I support your suggestion. |
Luckily, there's semver! This is currently 0.10 after all =) The version they're using will still exist. Anyone looking to upgrade will get the added benefit of correctly configuring their backends to include metadata in all their logs. |
That sounds excellent to me @novaugust, if you could send me a pull request with some info in the README like you suggested, I'll get the merged in and cut a release. |
Thanks @novaugust, this has been merged in and released with version |
Logster copies the
Logger.metadata
into its log message.However, the standard for logging metadata through a backend is to configure that backend's
metadata
option, specifying which keys should be printed.This means that with a correctly configured backend, like
logs will be produced that have
request_id
,trace_id
, andspan_id
logged twice: once in the message itself via Logster, and then again via the backend.Example
I think the easiest fix for this would be to revert the work in #6 and update the readme or changelog with a small guide on how to configure a backend to include metadata (removing the responsibility from Logster)
The text was updated successfully, but these errors were encountered: