Skip to content

Add json.escape_unicode option to service configuration#2131

Merged
patrick-stephens merged 4 commits into
fluent:masterfrom
owanio1992:fix/missing_doc_#10665
Nov 5, 2025
Merged

Add json.escape_unicode option to service configuration#2131
patrick-stephens merged 4 commits into
fluent:masterfrom
owanio1992:fix/missing_doc_#10665

Conversation

@owanio1992

@owanio1992 owanio1992 commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

feature source PR: fluent/fluent-bit#10665
This commit adds the json.escape_unicode option to the service configuration for both classic and YAML modes.
This option allows users to control the encoding of raw UTF-8 strings when serializing MessagePack records to JSON.

@owanio1992 owanio1992 requested review from a team as code owners November 1, 2025 07:36
@owanio1992 owanio1992 marked this pull request as draft November 1, 2025 07:39
@owanio1992 owanio1992 force-pushed the fix/missing_doc_#10665 branch from 50b5c77 to 35afdc1 Compare November 1, 2025 07:39
@owanio1992 owanio1992 changed the title Add json_encoding option to service configuration Add json.escape_unicode option to service configuration Nov 1, 2025
@owanio1992 owanio1992 marked this pull request as ready for review November 1, 2025 07:40

@cosmo0920 cosmo0920 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json.escape_unicode handles boolean value. So,we need to use with On/true or Off/false for specifying escaping non-ASCII characters with Unicode code points.

Comment thread administration/configuring-fluent-bit/classic-mode/configuration-file.md Outdated
Comment thread administration/configuring-fluent-bit/yaml/configuration-file.md Outdated
Comment thread administration/configuring-fluent-bit/yaml/service-section.md Outdated
@cosmo0920

Copy link
Copy Markdown
Contributor

@owanio1992 Could you add Signed-off line in your commit? Under the fluent organization repos, we request to use commit signs for every contributors.

@owanio1992 owanio1992 force-pushed the fix/missing_doc_#10665 branch 2 times, most recently from 7327cc7 to 99100bd Compare November 2, 2025 13:00
@esmerel

esmerel commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

I'll come back for a tech writing review once @cosmo0920 's requested changes are done =)

@cosmo0920 cosmo0920 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For technical perspective, it looks good.
But DCO still complains that the author and the commiter information differs like:

Commit sha: 99100bd, Author: owan, Committer: owan; Expected "owan chihhao.wang@zyxel.com.tw", but got "owanio1992 owan.io1992@gmail.com".

@eschabell eschabell self-assigned this Nov 4, 2025
@eschabell eschabell added waiting-for-user Waiting for user/contributors feedback or requested changes dco DCO failing labels Nov 4, 2025
@eschabell

Copy link
Copy Markdown
Collaborator

@owanio1992 if you can look at the DCO failures this can be reviewed by @esmerel.

@eschabell eschabell requested a review from esmerel November 4, 2025 13:52
@owanio1992 owanio1992 force-pushed the fix/missing_doc_#10665 branch 2 times, most recently from b745e02 to 2a4e588 Compare November 4, 2025 14:37
@owanio1992 owanio1992 marked this pull request as draft November 4, 2025 14:40
@owanio1992 owanio1992 force-pushed the fix/missing_doc_#10665 branch 5 times, most recently from 2e06f6b to 9daaeb3 Compare November 4, 2025 15:04
Signed-off-by: owanio1992 <owan.io1992@gmail.com>
@owanio1992 owanio1992 force-pushed the fix/missing_doc_#10665 branch from 9daaeb3 to 9c63970 Compare November 4, 2025 15:06
@owanio1992 owanio1992 marked this pull request as ready for review November 4, 2025 15:06
@owanio1992

Copy link
Copy Markdown
Contributor Author

@cosmo0920 I update description and default value, please review again
thank you

@esmerel esmerel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 comments, same question on each. otherwise this looks fine to me

Comment thread administration/configuring-fluent-bit/classic-mode/configuration-file.md Outdated
Comment thread administration/configuring-fluent-bit/yaml/configuration-file.md Outdated
Comment thread administration/configuring-fluent-bit/yaml/service-section.md Outdated

@cosmo0920 cosmo0920 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For technical side, it looks good to me. Thank you for your contribution.

owanio1992 and others added 3 commits November 5, 2025 13:26
Co-authored-by: Lynette  Miles <6818907+esmerel@users.noreply.github.com>
Signed-off-by: owan <owan.io1992@gmail.com>
…on-file.md

Co-authored-by: Lynette  Miles <6818907+esmerel@users.noreply.github.com>
Signed-off-by: owan <owan.io1992@gmail.com>
Co-authored-by: Lynette  Miles <6818907+esmerel@users.noreply.github.com>
Signed-off-by: owan <owan.io1992@gmail.com>
@patrick-stephens patrick-stephens merged commit ee2a27e into fluent:master Nov 5, 2025
7 checks passed
@eschabell eschabell removed waiting-for-user Waiting for user/contributors feedback or requested changes dco DCO failing labels Nov 5, 2025
@eschabell

Copy link
Copy Markdown
Collaborator

Fixes #2132.

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.

5 participants