Repository navigation
feat(contexts): Hide client-related highlights in backend issues - #88539
Conversation
| contexts: { | ||
| client_os: { | ||
| type: 'client_os', | ||
| type: 'os', |
There was a problem hiding this comment.
Maybe I'm missing something here but it seems like client_os is really only an alias and is never used as a type. At least Relay and the SDK only use os
There was a problem hiding this comment.
I'll need to double check this, what the spec says, if this is a bug in Relay or if this is actually valid according to the spec (having a key different from the type).
There was a problem hiding this comment.
Okay, so this is actually correct, nice:
The contexts type can be used to define arbitrary contextual data on the event. It accepts an object of key/value pairs. The key is the “alias” of the context and can be freely chosen. However, as per policy, it should match the type of the context unless there are two values for a type. You can omit type if the key name is the type.
Type should be os, key client_os.
|
Can we re-order this, showing node version before os? |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
) If a backend error is thrown in a Meta-Framework, the issue includes `client_os` and `os` in the event context. However, the highlights should only show data relevant to the backend. Also, the runtime is more important than OS, so it's reordered. Also fixes an issue in a test from #86857 as `client_os` is not a context type, but only an alias fixes: getsentry/projects#801 part of: #85732 **Follow-up PR** - #88536 --- ### Before  or when it ran locally (server is macOS as well)  ### After  or locally: 
If a backend error is thrown in a Meta-Framework, the issue includes
client_osandosin the event context. However, the highlights should only show data relevant to the backend.Also, the runtime is more important than OS, so it's reordered.
Also fixes an issue in a test from #86857 as
client_osis not a context type, but only an aliasfixes: https://github.com/getsentry/projects/issues/801
part of: #85732
Follow-up PR
Before
or when it ran locally (server is macOS as well)
After
or locally: