Skip to content

[extension/text_encoding] Pass separators from config to codec#45272

Merged
atoulme merged 1 commit intoopen-telemetry:mainfrom
jon-signal:text_encoding_separator_config
Jan 10, 2026
Merged

[extension/text_encoding] Pass separators from config to codec#45272
atoulme merged 1 commit intoopen-telemetry:mainfrom
jon-signal:text_encoding_separator_config

Conversation

@jon-signal
Copy link
Copy Markdown
Contributor

This (partially) fixes #42797 by passing marshalling/unmarshalling separators from the text_encoding extension configuration to the textLogCodec. After this change, configured separators should work as expected. This change includes a new unit test to show that separators configuration is propagated as expected.

This pull request does not address the second part of of #42797 related to spurious line breaks because I think there's room for reasonable minds to disagree on a solution there. I'll open a separate pull request for that with the expectation that it may warrant more discussion.

@jon-signal jon-signal requested review from a team, MovieStoreGuy and atoulme as code owners January 7, 2026 17:46
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jan 7, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: jon-signal / name: Jon Chambers (4eaf343)

@github-actions github-actions Bot added the first-time contributor PRs made by new contributors label Jan 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 7, 2026

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

atoulme pushed a commit that referenced this pull request Jan 7, 2026
…d of lines (#45274)

As a companion to #45272, this partially fixes #42797 by avoiding
spurious newlines between blocks of log records. This change modifies
existing unit tests to demonstrate the new behavior.

Since tests already existed for this behavior, I recognize that the
existing behavior may already be working as intended. Even so, I offer
this in the spirit of fully addressing the concerns raise in #42797.
@jon-signal jon-signal force-pushed the text_encoding_separator_config branch from dd12ecb to 4eaf343 Compare January 7, 2026 22:53
@atoulme atoulme merged commit 9bade20 into open-telemetry:main Jan 10, 2026
191 checks passed
@github-actions github-actions Bot added this to the next release milestone Jan 10, 2026
@otelbot
Copy link
Copy Markdown
Contributor

otelbot Bot commented Jan 10, 2026

Thank you for your contribution @jon-signal! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

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.

[extension/encoding/textencoding] Marshaling and Unmarshaling Separator configurations are ignored by the extension

3 participants