Skip to content

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Oct 3, 2025

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
Copy link

linear bot commented Oct 3, 2025

@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.

headers={"Content-Type": "application/json"},
)

# Check that the items are properly processed via items_consumer
Copy link
Member

Choose a reason for hiding this comment

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

What else?

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
Member 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.

@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
28 checks passed
@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