-
-
Notifications
You must be signed in to change notification settings - Fork 30
fix(sentry-java): Contexts belong on the Scope #240
Conversation
|
Also, if I'm not mistaken, this still doesn't make this feature-equivalent to Sentry .NET where the scope also includes the |
|
In dotnet and the docs we mention requests is part of the scope, not the contexts. |
marandaneto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided. :(
Why do we need that? is it for GA as well?
|
There's no description because I thought the title was self explanatory. Here's python: C#: |
marandaneto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but CI is not happy, need to fix it.
ok got it, but we already talked about it a few times in the past and also recently with @HazAT, it was never needed, at least for GA, why do we need now? Another thing, if |
It's not needed for GA, this can stay on a branch that we use for the
Yeah we need to do clone on all of them, since those might be changed on the new scope and it's typed stuff, known types. So this PR can't be merged until we do that. Also doesn't need to be merged at all until |
agreed, cool stuff, we can work on it later on then! |
| this.extra.remove(key); | ||
| } | ||
|
|
||
| public @NotNull Contexts getContexts() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we want to expose the whole Contexts, but rather just add items to it
This is work to get
sentry-corewhere it can be the base ofsentry-javaand its integrations.The long term goal is to merge this repo into
sentry-javainstead on a orphan branch and keep the1.7work on a branch for bug fixing.Still WIP. Contexts needs a deep copy of the known types.
If it's App, Device etc, we need to call
clone()instead of just bringing the reference over.This was done here:
https://github.com/getsentry/sentry-dotnet-protocol/blob/afd65b92ed7122a628dc3631711b407f56e9a8a8/src/Sentry.Protocol/Context/Contexts.cs#L60