Skip to content

Commit 63d31cf

Browse files
committed
Pass HttpContext to listener
1 parent 7cad16c commit 63d31cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Grpc.AspNetCore.Server/Internal/HttpContextServerCallContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ public void Initialize(ISystemClock? clock = null)
394394
private void RaiseHostActivityChanged()
395395
{
396396
// Notify diagnostic listener that activity has been changed
397-
if (_diagnosticListener.IsEnabled() && _diagnosticListener.IsEnabled(GrpcServerConstants.HostActivityChanged))
397+
if (_diagnosticListener.IsEnabled() && _diagnosticListener.IsEnabled(GrpcServerConstants.HostActivityChanged, HttpContext))
398398
{
399-
_diagnosticListener.Write(GrpcServerConstants.HostActivityChanged, null);
399+
_diagnosticListener.Write(GrpcServerConstants.HostActivityChanged, HttpContext);
400400
}
401401
}
402402

0 commit comments

Comments
 (0)