@@ -38,19 +38,32 @@ public class Cluster : IActorSystemExtension<Cluster>
3838
3939    public  async  Task < DiagnosticsEntry [ ] >  GetDiagnostics ( ) 
4040    { 
41-         var  now  =  new  DiagnosticsEntry ( "Cluster" ,  $ "Local Time",  DateTimeOffset . UtcNow ) ; 
42-         var  blocked  =  new  DiagnosticsEntry ( "Cluster" ,  "Blocked" ,  System . Remote ( ) . BlockList . BlockedMembers . ToArray ( ) ) ; 
41+         var  res  =  new  List < DiagnosticsEntry > ( ) ; 
4342
43+         var  now  =  new  DiagnosticsEntry ( "Cluster" ,  "Local Time" ,  DateTimeOffset . UtcNow ) ; 
44+         res . Add ( now ) ; 
45+         
46+         var  blocked  =  new  DiagnosticsEntry ( "Cluster" ,  "Blocked" ,  System . Remote ( ) . BlockList . BlockedMembers . ToArray ( ) ) ; 
47+         res . Add ( blocked ) ; 
48+         
4449        var  t  =  await  Gossip . GetState < ClusterTopology > ( GossipKeys . Topology ) ; 
4550
4651        var  topology  =  new  DiagnosticsEntry ( "Cluster" ,  "Topology" ,  t ) ; 
52+         res . Add ( topology ) ; 
4753
4854        var  h  =  await  Gossip . GetStateEntry ( GossipKeys . Heartbeat ) ; 
4955        var  heartbeats  =  h . Select ( heartbeat =>  new  DiagnosticsMemberHeartbeat ( heartbeat . Key ,  heartbeat . Value . Value . Unpack < MemberHeartbeat > ( ) ,  heartbeat . Value . LocalTimestamp ) ) . ToArray ( ) ; 
5056
5157        var  heartbeat  =  new  DiagnosticsEntry ( "Cluster" ,  "Heartbeat" ,  heartbeats ) ; 
58+         res . Add ( heartbeat ) ; 
59+ 
60+         var  idlookup  =  await  IdentityLookup . GetDiagnostics ( ) ; 
61+         res . AddRange ( idlookup ) ; 
62+ 
63+         var  provider  =  await  Provider . GetDiagnostics ( ) ; 
64+         res . AddRange ( provider ) ; 
5265
53-         return  new [ ]   {   now ,   blocked ,   topology ,   heartbeat   } ; 
66+         return  res . ToArray ( ) ; 
5467    } 
5568
5669    public  Cluster ( ActorSystem  system ,  ClusterConfig  config ) 
0 commit comments