-
Notifications
You must be signed in to change notification settings - Fork 17
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
Undocumented "error" field appears in JSON logs #300
Comments
Hey @baterja! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! The "error" field in the JSON logs appears when there is an issue related to flag definitions, such as referencing a nonexisting segment. This is part of the error handling mechanism in the system, where specific errors are logged to provide more context about the issue. The logic for handling such errors is implemented in the To address the documentation bug, it would be beneficial to update the documentation to include the "error" field as a possible entry in the JSON logs. This ensures that users are aware of all potential fields that might appear in the logs, allowing them to capture and process important error details effectively. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hey @baterja thanks for the issue! In the above linked documentation (https://docs.flipt.io/configuration/observability#json) you can see a similar
We could do a better job of describing those keys though I agree. Some of those keys are also configurable, ( |
Thanks for transferring it to the documentation repo, I wasn't aware of its existence :) |
Fixes #300 Update JSON logs documentation to include 'error' field and explain log keys * Remove the example JSON log structure. * Add a section explaining what each key stands for. * Include possible values for the 'L' key. * Mention that the 'error' field may appear in the log. * Elaborate on the timestamp and message descriptions.
* Update JSON logs documentation to include 'error' field Fixes #300 Update JSON logs documentation to include 'error' field and explain log keys * Remove the example JSON log structure. * Add a section explaining what each key stands for. * Include possible values for the 'L' key. * Mention that the 'error' field may appear in the log. * Elaborate on the timestamp and message descriptions. * chore: Update observability.mdx * chore: Update observability.mdx * chore: Update observability.mdx
Hello! It's great how fast you react to any issue reported there, but are you sure it should be completed? That report mainly addressed the lack of a description of an "error" field in the JSON log (particularly the error log). I see you added descriptions of the "main" fields of the JSON but the "error" field existence is still not mentioned. |
@baterja ah I see. I misunderstood the original issue. you're right that we should document the addition of the |
Bug Description
It's only a documentation "bug".
JSON logs structure reported there in the docs:
https://docs.flipt.io/configuration/observability#json
doesn't contain all possible fields because practice shows that "error" field may appear in the log:
We were relying on only putting "M" field into our centralized logging system so we missed important error details.
Version Info
v1.50.0
Search
Steps to Reproduce
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: