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
Sentry currently warns against using IUserFactory and recommends users switch to ISentryUserFactory:
However, if you only implement and register ISentryUserFactory your custom code is never hit, because Sentry itself only looks for the obsolete IUserFactory implementation:
Implementing and registering ISentryUserFactory should work without having to continue implementing the obsolete IUserFactory interface.
Actual Result
No custom user code is hit when running with only a ISentryUserFactory implementation registered.
In order to allow users to transition away from IUserFactory, the underlying code in ScopeExtensions should look for implementations of ISentryUserFactory and reference them if registered.
The text was updated successfully, but these errors were encountered:
Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
6.0.0
OS
Linux
SDK Version
3.40.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
sentry-dotnet/src/Sentry.AspNetCore/ScopeExtensions.cs
Line 42 in 343d921
Expected Result
Implementing and registering ISentryUserFactory should work without having to continue implementing the obsolete IUserFactory interface.
Actual Result
No custom user code is hit when running with only a ISentryUserFactory implementation registered.
In order to allow users to transition away from IUserFactory, the underlying code in ScopeExtensions should look for implementations of ISentryUserFactory and reference them if registered.
The text was updated successfully, but these errors were encountered: