Skip to content

fix: Override log body with structured object #123

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

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

obs-gh-enricogiorio
Copy link
Collaborator

Currently we were modifying the marshalled k8s object and then overriding the log body with its unmarshalled string representation.

This doesn't work well when the custom processor is not last in the pipeline, because other processors might have to index into the structured body to be able to extract values.

Since we need to move the transform processor after the custom processor in the agent configmap, we want to make sure that this processor leaves the log body as a structured object, rather than a plain string.

Description

OB-XXX Please explain the changes you made here.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@obs-gh-enricogiorio obs-gh-enricogiorio force-pushed the enrico/refactorTest branch 2 times, most recently from 9d48226 to 8b17349 Compare November 4, 2024 20:03
Currently we were modifying the marshalled k8s object and then
overriding the log body with its unmarshalled string representation.

This doesn't work well when the custom processor is not last in the
pipeline, because other processors might have to index into the
structured body to be able to extract values.

Since we need to move the transform processor after the custom processor
in the agent configmap, we want to make sure that this processor leaves
the log body as a structured object, rather than a plain string.
@obs-gh-enricogiorio obs-gh-enricogiorio merged commit 9755259 into main Nov 4, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants