Skip to content

002 plain text format#2

Merged
akurdyukov merged 3 commits intomasterfrom
002-plain-text-format
Feb 27, 2026
Merged

002 plain text format#2
akurdyukov merged 3 commits intomasterfrom
002-plain-text-format

Conversation

@akurdyukov
Copy link
Copy Markdown

No description provided.

akurdyukov and others added 3 commits February 27, 2026 21:58
… field exclusion

Add three new Builder methods: `.plain_text()` switches entry lines from
JSON to plain text, `.field_to_label(source, target)` promotes event/span
fields to Loki stream labels, and `.exclude_unmapped_fields()` drops
non-mapped fields from entry lines.

Internally, replace LevelMap<SendQueue> with HashMap<String, SendQueue>
to support dynamic label combinations. Rewrite on_event to collect fields
via Fields struct, extract dynamic labels, and branch on LogLineFormat.

Includes 15 new integration tests (28 total) covering plain text format,
field-to-label mapping with renaming/spans/metadata, validation errors,
and unmapped field exclusion in both JSON and plain text modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ish() method

These modules and the method became obsolete after the BackgroundTask refactor
(HashMap routing replaced LevelMap) and the on_event rewrite (Fields collector
replaced SerializeEventFieldMapStrippingLog). Also adds a plain text metadata
mapping integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@akurdyukov akurdyukov merged commit 9b8d2d4 into master Feb 27, 2026
4 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.

1 participant