Skip to content

feat(gcs): Log payload, token, and request timing for GCS writes#289

Merged
fpacifici merged 1 commit intomainfrom
fpacifici/measure_sink
Mar 31, 2026
Merged

feat(gcs): Log payload, token, and request timing for GCS writes#289
fpacifici merged 1 commit intomainfrom
fpacifici/measure_sink

Conversation

@fpacifici
Copy link
Copy Markdown
Collaborator

Add millisecond timings to the GCS writer success log for three stages:
extracting payload bytes from the Python message (pybytes_to_bytes),
obtaining a GCP access token (including lazy provider init on first use),
and sending the upload HTTP request.

This makes it easier to see where time is spent when diagnosing slow GCS
writes without adding separate metrics or tracing spans.

Made with Cursor

Record elapsed milliseconds for pybytes_to_bytes, GCP token retrieval
(provider init and token fetch), and the HTTP upload send, and include
them on the successful-write info log for easier latency diagnosis.

Co-Authored-By: Cursor <noreply@cursor.com>
Made-with: Cursor
@fpacifici fpacifici requested a review from a team as a code owner March 31, 2026 12:53
@github-actions
Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (gcs) Log payload, token, and request timing for GCS writes by fpacifici in #289

Internal Changes 🔧

Deps

  • Bump pygments from 2.19.2 to 2.20.0 in /sentry_streams by dependabot in #286
  • Bump requests from 2.32.4 to 2.33.0 in /sentry_streams by dependabot in #287

🤖 This preview updates automatically when you update the PR.

@fpacifici fpacifici merged commit 24f5d76 into main Mar 31, 2026
23 checks passed
@fpacifici fpacifici deleted the fpacifici/measure_sink branch March 31, 2026 14:03
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.

2 participants