Skip to content

Commit 8f4b5ba

Browse files
committed
fix: resolve hub
1 parent 99db5ac commit 8f4b5ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Sentry.AspNetCore/SentryMiddleware.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ public SentryMiddleware(
5353
_options = options?.Value;
5454
if (_options != null)
5555
{
56+
var hub = _hubAccessor();
5657
foreach (var callback in _options.ConfigureScopeCallbacks)
5758
{
58-
_sentry.ConfigureScope(callback);
59+
hub.ConfigureScope(callback);
5960
}
6061
}
6162
_hostingEnvironment = hostingEnvironment;

0 commit comments

Comments
 (0)