Skip to content
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

vdk-structlog: fix filtering of metadata fields for json #2874

Merged
merged 1 commit into from
Nov 14, 2023

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 <[email protected]>
@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
4 participants