Skip to content

feat(spans): Add flusher log support to GCP log analyzer tool#109080

Merged
lvthanh03 merged 5 commits intomasterfrom
tony/flusher-logger-tool
Mar 5, 2026
Merged

feat(spans): Add flusher log support to GCP log analyzer tool#109080
lvthanh03 merged 5 commits intomasterfrom
tony/flusher-logger-tool

Conversation

@lvthanh03
Copy link
Member

@lvthanh03 lvthanh03 commented Feb 23, 2026

Extend the GCP log analyzer to parse and display flusher logger output
(spans.buffer.top_flush_operations_by_bytes) with --log-type flusher
flag.

This enables analyzing which traces are flushing the most bytes, shows the
number of spans flushed, and number of segments flushed, helping identify
traces that are most impactful on span buffer resources.

Also adds:

  • --pod flag for filtering by specific k8s pod name (e.g. getsentry-consumer-process-spans-production-abc123defg-abcde)

Example usage:

python -m sentry.spans.gcp_log_analyzer --log-type flusher --last-minutes 60

Extend the GCP log analyzer to parse and display flusher logger output
(spans.buffer.top_flush_operations_by_bytes) in addition to the existing
buffer logger support. This enables analyzing which traces are flushing
the most bytes, spans, and segments.

Changes:
- Add FlusherLogAnalyzer, FlusherTraceStats, FlusherSummaryStats
- Add FlusherTraceData, FlusherLogEntry, parse_top_flush_operations
- Add --log-type flag (buffer/flusher) to CLI
- Add --pod flag for filtering by specific k8s pod name
- Surface per-phase latency breakdown (load_ids, load_data, decompress)
  in flusher summary output

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 23, 2026
@lvthanh03 lvthanh03 marked this pull request as ready for review March 4, 2026 21:36
@lvthanh03 lvthanh03 requested review from a team as code owners March 4, 2026 21:36
@lvthanh03 lvthanh03 merged commit 5ba573d into master Mar 5, 2026
76 checks passed
@lvthanh03 lvthanh03 deleted the tony/flusher-logger-tool branch March 5, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants