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

fix(logs): make built-in metadata consistent between fluentd and otel #2801

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Jan 17, 2023

Fix #2767 by moving sumologicschema processor earlier in the pipeline and using translated attributes in source metadata templates instead of native OpenTelemetry ones. In essence we revert part of #2635, and use the old FluentD settings for OT, instead of the other way around.

It turns out sourceprocessor can't set a source attribute to an empty string, it completely ignores empty templates. So in order to keep things consistent between OT and Fluentd, I needed to set these fields to empty strings in a separate processor. The alternative would be to not send them at all, which is probably fine, but this way we have the exact same output from both pipelines.

@swiatekm swiatekm force-pushed the fix/source-defaults branch 2 times, most recently from 04e1bf6 to 07e3e37 Compare January 17, 2023 16:19
@swiatekm swiatekm marked this pull request as ready for review January 17, 2023 16:19
@swiatekm swiatekm requested a review from a team as a code owner January 17, 2023 16:19
@swiatekm swiatekm enabled auto-merge (rebase) January 19, 2023 09:20
@swiatekm swiatekm merged commit c3aff6a into main Jan 19, 2023
@swiatekm swiatekm deleted the fix/source-defaults branch January 19, 2023 09:28
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.

Document that in case of fluentd metadata, source configuration has to be changed
2 participants