Skip to content

feat(ourlog): Add vercel log drain endpoint - #5212

Merged
AbhiPrasad merged 10 commits into
masterfrom
abhi-vercel-log-drain-endpoint
Oct 15, 2025
Merged

AbhiPrasad merged 10 commits into
masterfrom
abhi-vercel-log-drain-endpoint

Conversation

@AbhiPrasad

@AbhiPrasad AbhiPrasad commented Oct 3, 2025 •

Copy link
Copy Markdown
Contributor

resolves https://linear.app/getsentry/issue/LOGS-389/add-vercel-log-drain-endpoint-to-relay

Building on top of the vercel log transform added in #5209, this PR adds an endpoint for the vercel log drain.

This endpoint is featured flagged, you can see the options automator PR here: https://github.com/getsentry/sentry-options-automator/pull/5367

@AbhiPrasad AbhiPrasad self-assigned this Oct 3, 2025
@linear

linear Bot commented Oct 3, 2025

Copy link
Copy Markdown

@AbhiPrasad
AbhiPrasad force-pushed the abhi-vercel-log-drain-endpoint branch from 837b7d7 to 1dac424 Compare October 5, 2025 02:20
@AbhiPrasad
AbhiPrasad force-pushed the abhi-vercel-log-drain-integration branch from 3810607 to ec8cfbf Compare October 6, 2025 23:24
Base automatically changed from abhi-vercel-log-drain-integration to master October 8, 2025 18:02
@AbhiPrasad
AbhiPrasad force-pushed the abhi-vercel-log-drain-endpoint branch 6 times, most recently from 771fc43 to c95f053 Compare October 9, 2025 12:29
@AbhiPrasad
AbhiPrasad force-pushed the abhi-vercel-log-drain-endpoint branch from c95f053 to d25fc99 Compare October 9, 2025 12:30
@AbhiPrasad
AbhiPrasad marked this pull request as ready for review October 9, 2025 12:30
@AbhiPrasad
AbhiPrasad requested a review from a team as a code owner October 9, 2025 12:30
cursor[bot]

This comment was marked as outdated.

Comment thread tests/integration/fixtures/__init__.py Resolved
Comment thread tests/integration/test_vercel_logs.py Resolved
Comment thread tests/integration/test_vercel_logs.py Outdated
headers={"Content-Type": "application/json"},
)

# Check that the items are properly processed via items_consumer

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What else?

Comment thread tests/integration/test_vercel_logs.py Resolved
Comment thread tests/integration/test_vercel_logs.py Resolved
Comment thread tests/integration/test_vercel_logs.py Resolved
cursor[bot]

This comment was marked as outdated.

}

if count == 0 {
relay_log::debug!("Failed to parse any logs from vercel log drain payload");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does output when you get empty arrays, but this is unexpected from the log drain endpoint.

After implementing this I also realized that we could return the count from expand, and use that accordingly, we can make a similar refactor to the otlp integration.

Comment thread relay-server/src/integrations/mod.rs Resolved
Comment thread tests/integration/fixtures/__init__.py Resolved
Comment thread tests/integration/test_vercel_logs.py Resolved
Comment thread relay-server/src/integrations/mod.rs Resolved
Comment thread relay-server/src/integrations/mod.rs Resolved
@AbhiPrasad
AbhiPrasad enabled auto-merge October 15, 2025 13:12
@AbhiPrasad
AbhiPrasad added this pull request to the merge queue Oct 15, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 15, 2025
@AbhiPrasad
AbhiPrasad enabled auto-merge October 15, 2025 14:30
@AbhiPrasad
AbhiPrasad added this pull request to the merge queue Oct 15, 2025
auto-merge was automatically disabled October 15, 2025 14:58

Pull Request is not mergeable

Merged via the queue into master with commit b770e71 Oct 15, 2025
@AbhiPrasad
AbhiPrasad deleted the abhi-vercel-log-drain-endpoint branch October 15, 2025 14:59
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.

3 participants