You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added initial actor telemetry for #6293
* added basic telemetry tests for local actors
* added spec to validate that `RemoteActorRef` doesn't influence counters
* updated `SpawnActorBenchmarks` to include telemetry impact
* converted telemetry events into `sealed class`es with `internal` constructors
* removed `Reason`
Copy file name to clipboardExpand all lines: src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.verified.txt
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,12 @@ namespace Akka.Actor
314
314
public static readonly Akka.Actor.IActorRef NoSender;
315
315
public static readonly Akka.Actor.Nobody Nobody;
316
316
}
317
+
public sealed class ActorRestarted : Akka.Actor.IActorTelemetryEvent, Akka.Actor.INoSerializationVerificationNeeded, Akka.Actor.INotInfluenceReceiveTimeout
318
+
{
319
+
public System.Type ActorType { get; }
320
+
public System.Exception Reason { get; }
321
+
public Akka.Actor.IActorRef Subject { get; }
322
+
}
317
323
public class ActorSelection : Akka.Actor.ICanTell
318
324
{
319
325
public ActorSelection() { }
@@ -340,13 +346,23 @@ namespace Akka.Actor
340
346
public Akka.Actor.ActorSelectionMessage Copy(object message = null, Akka.Actor.SelectionPathElement[] elements = null, System.Nullable<bool> wildCardFanOut = null) { }
341
347
public override string ToString() { }
342
348
}
349
+
public sealed class ActorStarted : Akka.Actor.IActorTelemetryEvent, Akka.Actor.INoSerializationVerificationNeeded, Akka.Actor.INotInfluenceReceiveTimeout
350
+
{
351
+
public System.Type ActorType { get; }
352
+
public Akka.Actor.IActorRef Subject { get; }
353
+
}
343
354
public class ActorStashPlugin : Akka.Actor.ActorProducerPluginBase
344
355
{
345
356
public ActorStashPlugin() { }
346
357
public override void AfterIncarnated(Akka.Actor.ActorBase actor, Akka.Actor.IActorContext context) { }
347
358
public override void BeforeIncarnated(Akka.Actor.ActorBase actor, Akka.Actor.IActorContext context) { }
348
359
public override bool CanBeAppliedTo(System.Type actorType) { }
349
360
}
361
+
public sealed class ActorStopped : Akka.Actor.IActorTelemetryEvent, Akka.Actor.INoSerializationVerificationNeeded, Akka.Actor.INotInfluenceReceiveTimeout
362
+
{
363
+
public System.Type ActorType { get; }
364
+
public Akka.Actor.IActorRef Subject { get; }
365
+
}
350
366
public abstract class ActorSystem : Akka.Actor.IActorRefFactory, System.IDisposable
351
367
{
352
368
protected ActorSystem() { }
@@ -988,6 +1004,11 @@ namespace Akka.Actor
988
1004
{
989
1005
Akka.Actor.IStash Stash { get; set; }
990
1006
}
1007
+
public interface IActorTelemetryEvent : Akka.Actor.INoSerializationVerificationNeeded, Akka.Actor.INotInfluenceReceiveTimeout
1008
+
{
1009
+
System.Type ActorType { get; }
1010
+
Akka.Actor.IActorRef Subject { get; }
1011
+
}
991
1012
public interface IAdvancedScheduler : Akka.Actor.IActionScheduler, Akka.Actor.IRunnableScheduler { }
0 commit comments