Skip to content

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Oct 2, 2025

ref https://www.notion.so/sentry/Vercel-Log-Drain-2808b10e4b5d808c95f3ebcfe2b8828a

resolves https://linear.app/getsentry/issue/LOGS-387/add-feature-flag-for-vercel-log-drains-to-relay

We're adding support for vercel log drain: getsentry/sentry#91726. This PR adds a feature flag for this endpoint in Relay (actual endpoint implementation will come after this).

Sentry PR: getsentry/sentry#100854

@AbhiPrasad AbhiPrasad self-assigned this Oct 2, 2025
@AbhiPrasad AbhiPrasad requested a review from a team as a code owner October 2, 2025 23:37
@linear
Copy link

linear bot commented Oct 2, 2025

Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

Same question as here: getsentry/sentry#100854 (comment)

AbhiPrasad added a commit to getsentry/sentry that referenced this pull request Oct 3, 2025
@AbhiPrasad AbhiPrasad added this pull request to the merge queue Oct 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2025
@AbhiPrasad AbhiPrasad added this pull request to the merge queue Oct 3, 2025
Merged via the queue into master with commit 123c8be Oct 3, 2025
30 of 47 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-vercel-log-drain-endpoint-fflag branch October 3, 2025 16:22
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
ref
https://linear.app/getsentry/issue/LOGS-389/add-vercel-log-drain-endpoint-to-relay

This PR updates the `relay-ourlogs` create to add a `VercelLog` struct
and a `vercel_log_to_sentry_log` transform method.
`vercel_log_to_sentry_log` turns an incoming `VercelLog` json payload
structure into an instance of Sentry's `OurLog`.

I haven't hooked up the `vercel_log_to_sentry_log` function to an
endpoint and the rest of the processing pipeline on purpose, I want to
take our time to make sure we are all good with the transform taking
place.

Many of these attributes are new, I've opened a PR in the conventions
repo to document them accordingly:
getsentry/sentry-conventions#163. See this
notion doc for details about the schema and the transform:
https://www.notion.so/sentry/Vercel-Log-Drain-2808b10e4b5d808c95f3ebcfe2b8828a.
The attribute keys here align in naming as per
https://vercel.com/docs/drains/reference/logs.

After this PR merges in, I'll work on exposing this in a new
integrations endpoint, gated behind the feature flag introduced in
#5208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants