Phobos
Phobos
Enterprise Application Monitoring and Management for Akka.NET OSS
Published by Petabridge
  • last updated 35 day(s) ago
  • 2736 daily downloads
  • 1169151 total downloads
  • Latest version: 2.5.1

Phobos.Monitoring 1.2.0

High-performance monitoring and instrumentation library for .NET and .NET Core applications.

Install-Package Phobos.Monitoring -Version 1.2.0
dotnet add package Phobos.Monitoring --version 1.2.0
<PackageReference Include="Phobos.Monitoring" Version="1.2.0"/>
paket add Phobos.Monitoring --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
2394
35 day(s) ago
3541
71 day(s) ago
1524
105 day(s) ago
590
140 day(s) ago
2235
147 day(s) ago
48
195 day(s) ago
4859
218 day(s) ago
8760
278 day(s) ago
380
281 day(s) ago
7274
337 day(s) ago
6111
362 day(s) ago
750
365 day(s) ago
3375
365 day(s) ago
36
370 day(s) ago
1827
419 day(s) ago
2
420 day(s) ago
1753
464 day(s) ago
256
552 day(s) ago
142
626 day(s) ago
56543
684 day(s) ago
72
688 day(s) ago
39
692 day(s) ago
53
699 day(s) ago
14
713 day(s) ago
4197
736 day(s) ago
144
742 day(s) ago
20
743 day(s) ago
13576
743 day(s) ago
4
743 day(s) ago
437
769 day(s) ago
2
769 day(s) ago
12289
778 day(s) ago
454
813 day(s) ago
13
813 day(s) ago
2008
813 day(s) ago
99
819 day(s) ago
54
826 day(s) ago
6957
842 day(s) ago
440
855 day(s) ago
493
867 day(s) ago
7133
888 day(s) ago
1166
924 day(s) ago
705
926 day(s) ago
3242
959 day(s) ago
2315
980 day(s) ago
679
988 day(s) ago
1791
1042 day(s) ago
1452
1058 day(s) ago
243
1064 day(s) ago
3401
1084 day(s) ago
5787
1128 day(s) ago
11050
1185 day(s) ago
94
1189 day(s) ago
87
1189 day(s) ago
36616
1189 day(s) ago
556
1219 day(s) ago
209
1234 day(s) ago
1608
1255 day(s) ago
852
1290 day(s) ago
1235
1302 day(s) ago
89
1302 day(s) ago

Info

Statistics

  • 224075 total downloads
  • 1791 downloads of current version

Owners and Products

Petabridge Petabridge

Authors

Petabridge

Copyright

Copyright © 2017-2021 Petabridge

Petabridge