Skip to content

feat(heroku): Add Heroku log drain attributes - #762

Closed
Dav1dde wants to merge 1 commit into
mainfrom
dav1d/heroku-log-drain
Closed

Dav1dde wants to merge 1 commit into
mainfrom
dav1d/heroku-log-drain

Conversation

@Dav1dde

@Dav1dde Dav1dde commented Nov 3, 2026

Copy link
Copy Markdown
Member

Description

Like #163 but for Heroku instead of Vercel.

Relay PR: getsentry/relay#6575

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Nov 3, 2026 9:46am UTC

Request Review

@Dav1dde
Dav1dde requested review from a team, giortzisg and nsdeschenes as code owners November 3, 2026 09:46
@github-actions

github-actions Bot commented Nov 3, 2026

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 ✨

Attributes

  • Add Vercel AI runtime and tool context attributes by isaacs and claude in #756
  • Register user.geo.subregion and deprecated sentry.user.geo.subregion by edwardgou-sentry in #753
  • Add faas.instance attribute by pabloDeputter in #748
  • Add faas.document.* attributes by pabloDeputter in #747
  • Add page.server_rendering.type attribute by s1gr1d in #740

Other

  • (heroku) Add Heroku log drain attributes by Dav1dde in #762
  • (metrics) Generate metric name constants under a metrics subpath by logaretm in #757

Bug Fixes 🐛

  • (attributes) Use response for tool_call_response in gen_ai.input.messages example by alexander-alderman-webb in #758

Internal Changes 🔧

  • Remove finish_reason from gen_ai.output.message example by alexander-alderman-webb in #759
  • Deprecate gen_ai.handoff op by alexander-alderman-webb in #754

🤖 This preview updates automatically when you update the PR.

@Dav1dde
Dav1dde requested a review from k-fish November 3, 2026 09:47

@alexander-alderman-webb alexander-alderman-webb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd encourage you not to add attributes that are already defined in OTel, since I don't think there's a reason for introducing all the attributes here.

"changelog": [
{
"version": "next",
"description": "Added heroku.router.method attribute"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some of the attributes you've added have OTel attributes that we should probably use instead.
In this case http.method.name (I believe?).

@Dav1dde

Dav1dde commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

That's a good question, what we should do here, unfortunately we already have a precedent with vercel where the vendor attributes are added 1:1 even if another otel attribute already exists.

@k-fish wdyt?

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

My main argument for following OTel here is that maintaining aliases for attributes with similar semantics has proven to be a pain (sometimes semantics are slightly different, PII config doesn't match, etc .).

@cleptric

cleptric commented Nov 3, 2026

Copy link
Copy Markdown
Member

If there is no reason to add external attributes we do not control, I would also not introduce new ones and instead try to make it work with existing attributes.

@k-fish

k-fish commented Nov 3, 2026

Copy link
Copy Markdown
Member

I can't remember if there is a strong reason in vercels case, but I can't think of what one would be. Let's do OTel for these and fix it later for vercel.

trevorturk added a commit to trevorturk/relay that referenced this pull request Nov 3, 2026
Write the router fields that are already defined in sentry-conventions or
OTel under their generic names instead of `heroku.router.*`, as agreed in
getsentry/sentry-conventions#762. Only Heroku-specific fields keep the
`heroku` namespace.

`at` no longer gets an attribute, it only sets the log level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Dav1dde Dav1dde mentioned this pull request Nov 5, 2026
4 of 5 tasks
@Dav1dde Dav1dde closed this Nov 5, 2026

This branch was successfully deployed

1 active deployment
Preview — 02fd995c Deployed Nov 3, 2026 by vercel[bot]
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.

4 participants