Repository navigation
fix(logger): send the context fields of a Sentry report in sentryExtras - #1521
Merged
Woody4618 merged 2 commits intoNov 27, 2026
Merged
Conversation
`Logger` sends only `sentryExtras` to Sentry, so the event for a rejected push had the status code and no response body.
`Logger` sends only `sentryExtras` to Sentry, so 30 calls reported an event without the address, query or reason they passed as a plain field. The context type accepts `sentry` only with `sentryExtras`.
|
@askov is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issue was found. SummaryMoves diagnostic fields into
askov explicitly identified the loss of these fields from console output, and removal of the transaction log’s console-only Reviews (1) · Last reviewed commit: "fix(logger): reject a plain field in a c..." · Reviewed by Greptile |
C0mberry
approved these changes
Nov 27, 2026
Woody4618
approved these changes
Nov 27, 2026
Merged
via the queue into
solana-foundation:master
with commit Nov 27, 2026
99f172a
12 of 13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Sends the context fields of every
Loggercall that reports to Sentry insentryExtras, and makes a plain field in such a call a type error. A[log-drain] Loki push failed: 500event in Sentry carries no response body.Loggersends onlysentryExtrasto Sentry, and the route passed the body as a plaindetailfield.Changes
sentryExtrasinapp/api/log-drain/route.ts.Loggercontext type inapp/shared/lib/logger.ts, so a context withsentryaccepts onlysentryExtras.Logger.paniccontext tosentryExtras.Logger.errorandLogger.warncall that reports to Sentry intosentryExtras.urlfield from the failed-transaction log inuse-row-transaction.ts.Behavior Changes
Logger.errororLogger.warnnow carries the fields of the call, such asaddress,signature,query,reasonandstatus.[log-drain] Loki push failedevent now carries the first 300 characters of the Loki response body asdetail.Type of change
Testing
The change has no visible effect in the browser. The specs cover the shape of the
Loggercalls.Related Issues
Closes HOO-3017
Checklist
pnpm test,pnpm lint,pnpm typecheck)build:infoscript to update build information