Skip to content

fix: attach error reporting directly to logs; sourceLocation#4855

Merged
michaelkedar merged 1 commit into
google:masterfrom
michaelkedar:more-🪵
Feb 23, 2026

Hidden character warning

The head ref may contain hidden characters: "more-\ud83e\udeb5"
Merged

fix: attach error reporting directly to logs; sourceLocation#4855
michaelkedar merged 1 commit into
google:masterfrom
michaelkedar:more-🪵

Conversation

@michaelkedar

@michaelkedar michaelkedar commented Feb 19, 2026

Copy link
Copy Markdown
Member

Add a @type field to the error logs in Google cloud to send them to error reporting directly, instead of making a separate API call (see https://docs.cloud.google.com/error-reporting/docs/formatting-error-messages#log-text). This is what python was already doing.

Also, changed the sourceLocation field to the more complete key so it gets put into the top-level log instead of within the jsonPayload.

@google google deleted a comment from gemini-code-assist Bot Feb 19, 2026
@michaelkedar michaelkedar merged commit 2001ff4 into google:master Feb 23, 2026
21 checks passed
tymzd pushed a commit to tymzd/osv.dev that referenced this pull request Apr 13, 2026
…4855)

Add a `@type` field to the error logs in Google cloud to send them to
error reporting directly, instead of making a separate API call (see
https://docs.cloud.google.com/error-reporting/docs/formatting-error-messages#log-text).
This is what python was already doing.

Also, changed the `sourceLocation` field to the more complete key so it
gets put into the top-level log instead of within the jsonPayload.
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.

2 participants