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

Phobos.TestKit 1.4.2

Framework used for testing applications that have been instrumented using Phobos. Makes it feasible to test using data collected from actor traces, monitoring, and so forth.

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

Release Notes

Maintenance Release for Phobos 1.4** Resolved: [OpenTracing: Tracing breaks when using `Ask().PipeTo()`](https://github.com/petabridge/phobos-issues/issues/44) To have tracing in Phobos 1.4 work with `PipeTo()`, you will have to use `PipeTo(recipient, true)` and call the `Ask()` method inside an `async` method even when the `Ask()` method is not `await`ed. ```c# private class PipeToActor: ReceiveActor { public PipeToActor(bool useAsync, IActorRef otherActor) { ReceiveAsync<int>(o => { // Need to make sure that async context is preserved inside PipeTo otherActor.Ask("message").PipeTo(Self, true, Sender); return Task.CompletedTask; }); } } ``` The boolean parameter in the `PipeTo(IActorRef, true, IActorRef)` method sets `ConfigureAwait(true)` inside the `PipeTo()` operation - and this allows us to preserve the current `AsyncLocal<ISpan>` context. The `ReceiveAsync` method is also needed for proper async context propagation, which is what's needed in order to ensure that the `ISpan` created by the `PipeTo` method is properly correlated to the one created by the `Ask` method.

Dependencies

.NETStandard

Versions

Version
Downloads
Last Updated
7
35 day(s) ago
7
71 day(s) ago
7
105 day(s) ago
7
140 day(s) ago
3
147 day(s) ago
2
195 day(s) ago
14
218 day(s) ago
106
278 day(s) ago
4
281 day(s) ago
127
336 day(s) ago
169
362 day(s) ago
5
365 day(s) ago
7
365 day(s) ago
16
370 day(s) ago
11
419 day(s) ago
1
420 day(s) ago
9
464 day(s) ago
1
552 day(s) ago
1
625 day(s) ago
51
684 day(s) ago
4
688 day(s) ago
3
692 day(s) ago
5
699 day(s) ago
2
713 day(s) ago
19
736 day(s) ago
2
742 day(s) ago
2
743 day(s) ago
43
743 day(s) ago
2
743 day(s) ago
1
769 day(s) ago
1
769 day(s) ago
126
778 day(s) ago
2
812 day(s) ago
1
813 day(s) ago
61
813 day(s) ago
1
819 day(s) ago
3
826 day(s) ago
49
842 day(s) ago
2
855 day(s) ago
2
867 day(s) ago
197
888 day(s) ago
23
924 day(s) ago
120
926 day(s) ago
278
959 day(s) ago
61
980 day(s) ago
3
988 day(s) ago
565
1042 day(s) ago
127
1058 day(s) ago
10
1064 day(s) ago
250
1084 day(s) ago
457
1128 day(s) ago
671
1185 day(s) ago
83
1189 day(s) ago
84
1189 day(s) ago
84
1189 day(s) ago
84
1189 day(s) ago
87
1219 day(s) ago
84
1234 day(s) ago
372
1255 day(s) ago
84
1290 day(s) ago
169
1302 day(s) ago
84
1302 day(s) ago

Info

Statistics

  • 4863 total downloads
  • 126 downloads of current version

Owners and Products

Petabridge Petabridge

Authors

Petabridge

Copyright

Copyright © 2017-2021 Petabridge

Petabridge