Repository navigation
fix(mappers): preserve embedded CloudWatch span events - #522
Merged
liramon2 merged 1 commit intoNov 16, 2026
Merged
Conversation
ikenyal
requested a deployment
to
manual-approval
November 6, 2026 22:48 — with
GitHub Actions
Waiting
ikenyal
had a problem deploying
to
manual-approval
November 6, 2026 22:48 — with
GitHub Actions
Failure
ikenyal
marked this pull request as ready for review
November 6, 2026 23:42
ikenyal
requested a deployment
to
manual-approval
November 6, 2026 23:44 — with
GitHub Actions
Waiting
liramon2
approved these changes
Nov 13, 2026
This branch was successfully deployed
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.
Description
CloudWatchLogsParserrecognizes already-normalized spans, but its event-association step replaces theirspan_eventswith separately logged events (or an empty list). This silently drops events that were already attached to the span.Preserve the embedded events and append any separately logged events to a new list. This also avoids mutating the input records and preserves the current handling of missing, empty, or
Noneevent lists.Related Issues
None. This is a small bug fix found while checking the parser's documented normalized-span support.
Documentation PR
Not needed: this restores the existing documented behavior and adds no API or configuration.
Type of Change
Bug fix
Testing
hatch run prepareNoneembedded event lists, with and without separate events, and verify that input records remain unchanged. The two data-loss cases failed before the fix.hatch run test-integ) were not run; they require external providers/model endpoints. The local tests use mocks and do not call AWS or models.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.