1 parent 7cad16c commit 63d31cfCopy full SHA for 63d31cf
1 file changed
src/Grpc.AspNetCore.Server/Internal/HttpContextServerCallContext.cs
@@ -394,9 +394,9 @@ public void Initialize(ISystemClock? clock = null)
394
private void RaiseHostActivityChanged()
395
{
396
// Notify diagnostic listener that activity has been changed
397
- if (_diagnosticListener.IsEnabled() && _diagnosticListener.IsEnabled(GrpcServerConstants.HostActivityChanged))
+ if (_diagnosticListener.IsEnabled() && _diagnosticListener.IsEnabled(GrpcServerConstants.HostActivityChanged, HttpContext))
398
399
- _diagnosticListener.Write(GrpcServerConstants.HostActivityChanged, null);
+ _diagnosticListener.Write(GrpcServerConstants.HostActivityChanged, HttpContext);
400
}
401
402
0 commit comments