public static ILogger WithServiceProperties()

in src/Middleware/Grpc/Common/Helpers.cs [29:36]


    public static ILogger WithServiceProperties(this ILogger logger, string fullMethodName)
    {
        var (serviceName, methodName) = ExtractServiceAndMethod(fullMethodName);
        return logger
                .ForContext(Constants.ServiceFieldKey, serviceName)
                .ForContext(Constants.MethodFieldKey, methodName)
                .ForContext(Constants.ProtocolKey, Constants.ProtocolValueGrpc);
    }