Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.