Phobos
Enterprise Application Monitoring and Management for Akka.NET OSS
Published by Petabridge
  • last updated 25 day(s) ago
  • 2823 daily downloads
  • 1294856 total downloads
  • Latest version: 2.5.4

Phobos.Actor 1.2.0

Automatic Akka.NET tracing and monitoring integration as part of the Phobos Enterprise Framework.

Install-Package Phobos.Actor -Version 1.2.0
dotnet add package Phobos.Actor --version 1.2.0
<PackageReference Include="Phobos.Actor" Version="1.2.0"/>
paket add Phobos.Actor --version 1.2.0

Release Notes

Maintenance Release for Phobos 1.2** - [Resolved some `IScope` memory leaks occurring inside Phobos](https://github.com/petabridge/phobos-issues/issues/19) - these occured as a result of `IScope` being lost inside `async` contexts and because some `IScope`s were not properly disposed the actor had a different `IScope` set as its active scope. - Added new [`PhobosSetup.Create` method](https://phobos.petabridge.com/api/Phobos.Actor.PhobosSetup.html) which creates its own [`PhobosConfigBuilder`](https://phobos.petabridge.com/api/Phobos.Actor.Configuration.PhobosConfigBuilder.html), rather than requiring users to create and pass one in first. Significantly improved trace filtering, with the new `TraceConfigBuilder.IncludeMessagesAlreadyInTrace(bool includeInTrace)` method, which allows users to coimpletely drop any messages inside an active trace that don't match your `IFilterRules` - this is designed for high throughput scenarios where users really want to greatly reduce the amount of data being created by their tracing system. Here's an example of it in action: ```csharp var config = @"akka.actor.provider = ""Phobos.Actor.PhobosActorRefProvider,Phobos.Actor"""; var tracer = new MockTracer(new ActorScopeManager()); var phobosConfig = new PhobosConfigBuilder() .WithTracing(m => { m.SetTracer(tracer); // don't include messages in trace that don't satisfy other filters m.IncludeMessagesAlreadyInTrace(false); // only accept FilteredMessage types m.AddIncludeMessageFilter<FilteredMessage>(); }); // create PhobosSetup + BootstrapSetup for configuring ActorSystem var phobosSetup = PhobosSetup.Create(phobosConfig) .WithSetup(BootstrapSetup.Create().WithConfig(config)); sys = ActorSystem.Create("PhobosTest", phobosSetup); var actor = sys.ActorOf(Props.Create(() => new EchoActor()), "echo"); var actor2 = sys.ActorOf(act => { IActorRef sender = null; act.Receive<FilteredMessage>((f, ctx) => { sender = ctx.Sender; actor.Tell(f.Message); }); act.Receive<string>((str, ctx) => { sender.Tell(str, ctx.Self); }); }, "secondActor"); // send a message that WILL be filtered out actor2.Ask<string>(new FilteredMessage("bye"), TimeSpan.FromMilliseconds(100)).Wait(); Task.Delay(300).Wait(); // wait for activity in other threads to stop var spans = tracer.FinishedSpans(); spans.Count.Should().Be(1); // for the FilteredMessage only ```

Dependencies

.NETStandard

Versions

Version
Downloads
Last Updated
2645
25 day(s) ago
684
35 day(s) ago
87
41 day(s) ago
9635
124 day(s) ago
5336
160 day(s) ago
1982
194 day(s) ago
591
229 day(s) ago
3031
236 day(s) ago
72
284 day(s) ago
5362
307 day(s) ago
10725
367 day(s) ago
360
370 day(s) ago
7878
425 day(s) ago
6599
451 day(s) ago
758
454 day(s) ago
3934
454 day(s) ago
44
459 day(s) ago
1830
508 day(s) ago
4
509 day(s) ago
1776
553 day(s) ago
257
641 day(s) ago
144
714 day(s) ago
60203
773 day(s) ago
77
777 day(s) ago
42
781 day(s) ago
55
788 day(s) ago
16
802 day(s) ago
4203
825 day(s) ago
148
831 day(s) ago
54
832 day(s) ago
13582
832 day(s) ago
7
832 day(s) ago
439
858 day(s) ago
4
858 day(s) ago
12296
867 day(s) ago
456
901 day(s) ago
15
902 day(s) ago
2010
902 day(s) ago
101
908 day(s) ago
57
915 day(s) ago
6955
931 day(s) ago
444
944 day(s) ago
499
956 day(s) ago
7133
977 day(s) ago
1173
1013 day(s) ago
709
1015 day(s) ago
3259
1048 day(s) ago
2319
1069 day(s) ago
683
1077 day(s) ago
1810
1131 day(s) ago
1455
1147 day(s) ago
248
1153 day(s) ago
3407
1173 day(s) ago
5798
1217 day(s) ago
11056
1274 day(s) ago
99
1278 day(s) ago
88
1278 day(s) ago
88
1278 day(s) ago
88
1278 day(s) ago
561
1308 day(s) ago
212
1323 day(s) ago
1609
1344 day(s) ago
844
1379 day(s) ago
1252
1391 day(s) ago
80
1391 day(s) ago

Info

Statistics

  • 209368 total downloads
  • 1810 downloads of current version

Owners and Products

Petabridge Petabridge

Authors

Petabridge

Copyright

Copyright © 2017-2021 Petabridge

Petabridge