Skip to content

Undocumented "error" field appears in JSON logs #300

@baterja

Description

@baterja

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:

{ 
  "L":"ERROR",
  "T":"2025-01-13T16:54:57Z",
  "M":"error getting file system from directory",
  "server":"grpc",
  "error":"flag <anonymised> rule 1 references unknown segment \"<anonymised>\""
}

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

  • I searched for other open and closed issues before opening this

Steps to Reproduce

  1. Use S3 as a flag definitions source.
  2. Add a flag definition with a rule that uses a nonexisting "segment"

Expected Behavior

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions