Skip to content

Conversation

@DeltaMichael
Copy link
Contributor

@DeltaMichael DeltaMichael commented Nov 3, 2023

Why?

Filtering by timestamp, level and vdk_job_name does not work for json formatting

What?

  • Introduce logic that inserts the correct fields in the json formatter log record
  • Move the metadata filters after the filters that add the job name
  • Fix bug in ConsoleMetadataFilters
  • Add timestamp to tests
  • Enable json tests

How was this tested?

Ran functional tests locally

What kind of change is this?

Bugfix

Follow-up

#2875

@DeltaMichael DeltaMichael linked an issue Nov 3, 2023 that may be closed by this pull request
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/structlog-json-filtering branch 2 times, most recently from e0372c1 to 274f352 Compare November 3, 2023 15:48
@DeltaMichael DeltaMichael linked an issue Nov 3, 2023 that may be closed by this pull request
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/structlog-json-filtering branch from 274f352 to 3416218 Compare November 3, 2023 15:56
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/structlog-json-filtering branch from 3416218 to 66047d8 Compare November 13, 2023 07:52
Why?

Filtering by timestamp, level and vdk_job_name does not work for json formatting

What?

- Introduce logic that inserts the correct fields in the json formatter log record
- Move the metadata filters after the filters that add the job name
- Fix bug in ConsoleMetadataFilters
- Add timestamp and function_name to tests
- Enable json tests
- Add possible values to README.md

How was this tested?

Ran functional tests locally

What kind of change is this?

Bugfix

Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/structlog-json-filtering branch from 66047d8 to b17d36a Compare November 14, 2023 08:51
@DeltaMichael DeltaMichael merged commit 8bc76fc into main Nov 14, 2023
@DeltaMichael DeltaMichael deleted the person/mdilyan/structlog-json-filtering branch November 14, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vdk-structlog: cannot remove timestamp when using json format Document all metadata fields that can be added to logs

5 participants