You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I follow the example in docs for local scope with attachments I get a warning, and the message doesn't make it clear what I need to change. The example:
// Local Scope
SentrySdk.WithScope(scope =>
{
scope.AddAttachment("log.txt");
SentrySdk.CaptureMessage("my message");
});
The text was updated successfully, but these errors were encountered:
ripperdoc
changed the title
Sentry: (Warning) Push scope called in global mode, returning.
(Warning) Push scope called in global mode, returning.
Dec 6, 2021
Closing this as we removed the WithScope API from docs and this PR (getsentry/sentry-dotnet#1412) will introduce an alternative API. The warning is by design.
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
Sentry Unity 0.6.2
Steps to Reproduce
If I follow the example in docs for local scope with attachments I get a warning, and the message doesn't make it clear what I need to change. The example:
Expected Result
No warning.
Actual Result
I get a warning:
The text was updated successfully, but these errors were encountered: