Skip to content

perf(logs): transform bodies before constructing LogEvent - #3767

Open
djwhitt wants to merge 5 commits into
perf/logevent-clean-payload-reusefrom
perf/logevent-body-transforms
Open

perf(logs): transform bodies before constructing LogEvent#3767
djwhitt wants to merge 5 commits into
perf/logevent-clean-payload-reusefrom
perf/logevent-body-transforms

Conversation

@djwhitt

@djwhitt djwhitt commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Run copy-field, key-value enrichment, and drop-field transforms directly against the body map.
  • Construct the final LogEvent once instead of allocating a new struct and {:ok, value} tuple at every stage.
  • Return immediately when all transform configurations are absent or already parsed as empty.
  • Specialize common binary-key path lookups while retaining get_in/2 as a fallback.
  • Reuse parent maps when a requested nested drop makes no change.

Stack

  1. perf(logs): reuse clean BigQuery-safe payloads #3765 — Reuse clean BigQuery-safe payloads
  2. perf(logs): transform bodies before constructing LogEvent #3767 — Transform bodies before constructing LogEvent
  3. perf(logs): normalize integer timestamps without digit lists #3768 — Normalize integer timestamps without digit lists
  4. perf(logs): fast-path common UTC ISO 8601 timestamps #3769 — Fast-path common UTC ISO 8601 timestamps

@djwhitt
djwhitt changed the base branch from perf/logevent-ingest-wrappers to perf/logevent-clean-payload-reuse August 4, 2026 00:47
@djwhitt
djwhitt marked this pull request as ready for review August 4, 2026 01:39
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