Phobos
Phobos
Enterprise Application Monitoring and Management for Akka.NET OSS
Published by Petabridge
  • last updated 12 day(s) ago
  • 1348 daily downloads
  • 899232 total downloads
  • Latest version: 2.4.2

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
81
12 day(s) ago
2894
72 day(s) ago
276
75 day(s) ago
2093
130 day(s) ago
2764
156 day(s) ago
215
159 day(s) ago
2019
159 day(s) ago
38
164 day(s) ago
1409
212 day(s) ago
1
214 day(s) ago
1328
257 day(s) ago
254
346 day(s) ago
141
419 day(s) ago
44745
478 day(s) ago
71
481 day(s) ago
36
486 day(s) ago
50
493 day(s) ago
13
506 day(s) ago
4188
530 day(s) ago
142
536 day(s) ago
48
537 day(s) ago
13546
537 day(s) ago
2
537 day(s) ago
436
562 day(s) ago
1
562 day(s) ago
10307
572 day(s) ago
453
606 day(s) ago
12
607 day(s) ago
2001
607 day(s) ago
98
613 day(s) ago
51
620 day(s) ago
6939
636 day(s) ago
437
649 day(s) ago
493
660 day(s) ago
7128
681 day(s) ago
1168
718 day(s) ago
704
720 day(s) ago
3254
753 day(s) ago
2312
774 day(s) ago
678
782 day(s) ago
1780
836 day(s) ago
1449
852 day(s) ago
243
858 day(s) ago
3402
878 day(s) ago
5793
921 day(s) ago
11051
979 day(s) ago
92
982 day(s) ago
83
982 day(s) ago
83
982 day(s) ago
83
982 day(s) ago
556
1013 day(s) ago
207
1028 day(s) ago
1603
1048 day(s) ago
838
1083 day(s) ago
1245
1096 day(s) ago
73
1096 day(s) ago

Info

Statistics

  • 141407 total downloads
  • 1780 downloads of current version

Owners and Products

Petabridge Petabridge

Authors

Petabridge

Copyright

Copyright © 2017-2021 Petabridge

Petabridge