Phobos.TestKit 2.12.1
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 2.12.1
dotnet add package Phobos.TestKit --version 2.12.1
<PackageReference Include="Phobos.TestKit" Version="2.12.1" />
paket add Phobos.TestKit --version 2.12.1
Paket is a third-party, open source alternative to the NuGet client.
# Phobos

[Phobos](https://phobos.petabridge.com/)™ is an observability plugin for [Akka.NET](https://getakka.net/) that provides [OpenTelemetry](https://opentelemetry.io/)-based tracing, metrics, and log aggregation.
[Phobos is available for purchase on Sdkbin](https://sdkbin.com/publisher/petabridge/product/phobos)
## Installation
Phobos plugs directly into your Akka.NET `ActorSystem` and immediately starts providing automatic tracing, metrics, and log correlation without you having to write any instrumentation code yourself.
### 1 - Add the `Phobos.Hosting` NuGet Package
```shell
dotnet add package Phobos.Hosting
```
### 2 - Configure OpenTelemetry to Use Phobos Metrics and Tracing
```csharp
services // IServiceCollection
.AddOpenTelemetry()
.ConfigureResource(builder =>
{
builder
.AddEnvironmentVariableDetector()
.AddTelemetrySdk()
.AddServiceVersionDetector();
})
.UseOtlpExporter(OtlpExportProtocol.Grpc, new Uri(otlpEndpoint))
.WithMetrics(c =>
{
c.AddRuntimeInstrumentation()
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddPhobosInstrumentation(); // Phobos metrics
})
.WithTracing(c =>
{
c.AddHttpClientInstrumentation()
.AddAspNetCoreInstrumentation()
.AddEntityFrameworkCoreInstrumentation()
.AddSqlClientInstrumentation()
.AddPhobosInstrumentation(); // Phobos traces
});
```
### 3 - Add Phobos to Your `ActorSystem`
```csharp
public static IServiceCollection AddUserServiceAkka(this IServiceCollection services,
Action<AkkaConfigurationBuilder, IServiceProvider> additionalConfig)
{
return services.AddAkka(ActorSystemName, (builder, sp) =>
{
builder.AddUserServiceActors()
WithPhobos(AkkaRunMode.Local, configOptions => {});
additionalConfig.Invoke(builder, sp);
});
}
```
And you're done! Akka.NET traces / metrics / logs will now be automatically exported along with your ASP.NET Core, Entity Framework, SqlClient, HttpClient, and other .NET OpenTelemetry data!
For more detailed instructions, please see the [Phobos QuickStart Tutorial](https://phobos.petabridge.com/articles/quickstart.html)
## What Data Does Phobos Capture?
You can see our full list of automatically collected traces, metrics, and log events here: [https://phobos.petabridge.com/articles/captured-data.html](https://phobos.petabridge.com/articles/captured-data.html)
### Can I Configure What Phobos Collects?
Absolutely - [Phobos has finely tuneable noise control capabilities](https://phobos.petabridge.com/articles/trace-filtering.html) that allow you to configure what types of data Phobos collects fronm your application.
### What's the Performance Impact of Phobos on Akka.NET?
Tracing and metrics collection always have an amount of instrumentation overhead - you can [view our latest Phobos performance figures and best practices here](https://phobos.petabridge.com/articles/performance.html).
Copyright 2018-2025 [Petabridge](https://petabridge.com/), LLC
Loading README...
net8.0
- Phobos.Actor (>=2.12.1)
- Akka.TestKit.Xunit2 (>=1.5.71)
- FluentAssertions (>=6.12.0)
- OpenTelemetry.Exporter.InMemory (>=1.15.3)
- xunit (>=2.8.1)
netstandard2.0
- Phobos.Actor (>=2.12.1)
- Akka.TestKit.Xunit2 (>=1.5.71)
- FluentAssertions (>=6.12.0)
- OpenTelemetry.Exporter.InMemory (>=1.15.3)
- xunit (>=2.8.1)
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.12.1 Current | 0 | 1 hour(s) ago | |
| 2.12.0 | 122 | 120 day(s) ago | |
| 2.11.3 | 141 | 141 day(s) ago | |
| 2.11.2 | 148 | 148 day(s) ago | |
| 2.11.1 | 147 | 149 day(s) ago | |
| 2.11.0 | 174 | 177 day(s) ago | |
| 2.10.5 | 202 | 202 day(s) ago | |
| 2.10.4 | 248 | 251 day(s) ago | |
| 2.10.3 | 247 | 252 day(s) ago | |
| 2.10.2 | 314 | 321 day(s) ago | |
| 2.10.1 | 330 | 338 day(s) ago | |
| 2.10.0 | 349 | 358 day(s) ago | |
| 2.9.1 | 358 | 364 day(s) ago | |
| 2.9.0 | 374 | 379 day(s) ago | |
| 2.8.5 | 454 | 454 day(s) ago | |
| 2.8.4 | 504 | 499 day(s) ago | |
| 2.8.3 | 506 | 547 day(s) ago | |
| 2.8.2 | 533 | 581 day(s) ago | |
| 2.8.1 | 500 | 581 day(s) ago | |
| 2.8.0 | 498 | 588 day(s) ago | |
| 2.7.0 | 498 | 595 day(s) ago | |
| 2.6.2 | 500 | 615 day(s) ago | |
| 2.6.1 | 497 | 621 day(s) ago | |
| 2.6.0 | 499 | 629 day(s) ago | |
| 2.5.4 | 524 | 791 day(s) ago | |
| 2.5.3 | 500 | 801 day(s) ago | |
| 2.5.2 | 498 | 807 day(s) ago | |
| 2.5.1 | 535 | 890 day(s) ago | |
| 2.5.0 | 505 | 925 day(s) ago | |
| 2.4.5 | 506 | 959 day(s) ago | |
| 2.4.4 | 501 | 994 day(s) ago | |
| 2.4.3 | 499 | 1001 day(s) ago | |
| 2.4.2 | 511 | 1072 day(s) ago | |
| 2.4.1 | 603 | 1133 day(s) ago | |
| 2.4.0 | 498 | 1135 day(s) ago | |
| 2.3.1 | 624 | 1191 day(s) ago | |
| 2.3.0 | 666 | 1217 day(s) ago | |
| 2.2.1 | 503 | 1220 day(s) ago | |
| 2.2.0 | 509 | 1273 day(s) ago | |
| 2.2.0-beta2 | 432 | 1274 day(s) ago | |
| 2.1.1 | 502 | 1050 day(s) ago | |
| 2.1.0 | 504 | 1318 day(s) ago | |
| 2.1.0-beta2 | 431 | 1406 day(s) ago | |
| 2.1.0-beta1 | 431 | 1480 day(s) ago | |
| 2.0.6 | 546 | 1538 day(s) ago | |
| 2.0.5 | 501 | 1542 day(s) ago | |
| 2.0.4 | 502 | 1547 day(s) ago | |
| 2.0.3 | 502 | 1554 day(s) ago | |
| 2.0.3-beta1 | 432 | 1567 day(s) ago | |
| 2.0.2 | 516 | 1591 day(s) ago | |
| 2.0.1 | 501 | 1597 day(s) ago | |
| 2.0.0 | 498 | 1597 day(s) ago | |
| 2.0.0-beta4 | 430 | 1623 day(s) ago | |
| 2.0.0-beta3 | 431 | 1667 day(s) ago | |
| 2.0.0-beta2 | 430 | 1667 day(s) ago | |
| 2.0.0-beta1 | 432 | 1673 day(s) ago | |
| 1.6.1 | 505 | 1220 day(s) ago | |
| 1.6.0 | 514 | 1225 day(s) ago | |
| 1.5.1 | 541 | 1597 day(s) ago | |
| 1.5.0 | 499 | 1598 day(s) ago | |
| 1.5.0-beta1 | 431 | 1623 day(s) ago | |
| 1.4.2 | 620 | 1632 day(s) ago | |
| 1.4.1 | 559 | 1667 day(s) ago | |
| 1.4.0 | 501 | 1681 day(s) ago | |
| 1.3.3 | 547 | 1696 day(s) ago | |
| 1.3.2 | 501 | 1710 day(s) ago | |
| 1.3.1 | 496 | 1721 day(s) ago | |
| 1.3.0 | 696 | 1742 day(s) ago | |
| 1.2.5 | 521 | 1779 day(s) ago | |
| 1.2.4 | 615 | 1780 day(s) ago | |
| 1.2.3 | 775 | 1813 day(s) ago | |
| 1.2.2 | 555 | 1835 day(s) ago | |
| 1.2.1 | 497 | 1843 day(s) ago | |
| 1.2.0 | 1,064 | 1897 day(s) ago | |
| 1.1.4 | 624 | 1913 day(s) ago | |
| 1.1.3 | 505 | 1918 day(s) ago | |
| 1.1.2 | 748 | 1938 day(s) ago | |
| 1.1.1 | 951 | 1982 day(s) ago | |
| 1.1.0 | 1,169 | 2039 day(s) ago | |
| 1.0.6 | 581 | 2074 day(s) ago | |
| 1.0.5 | 582 | 2088 day(s) ago | |
| 1.0.4 | 866 | 2109 day(s) ago | |
| 1.0.3 | 578 | 2144 day(s) ago | |
| 1.0.2 | 664 | 2156 day(s) ago | |
| 1.0.1 | 581 | 2156 day(s) ago | |
| 0.8.0 | 578 | 2043 day(s) ago | |
| 0.7.2 | 582 | 2043 day(s) ago | |
| 0.7.1 | 583 | 2043 day(s) ago | |
| 0.7.0 | 579 | 2043 day(s) ago |
**Phobos 2.x Maintenance Release**
**Bug Fixes**
- Fixed Akka.Streams `StreamRef` transfers stalling or failing when `trace-all-system-actors` is enabled. With this setting on, stream stage actors become instrumented cells, and outgoing StreamRef protocol messages were wrapped in `SpanEnvelope`, which the receiving lightweight stage actor could not unwrap — causing the message to be silently dropped.
**Improvements**
- Upgraded to [Akka.NET v1.5.71](https://github.com/akkadotnet/akka.net/releases/tag/1.5.71) and [Akka.Hosting v1.5.71](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.71) for latest stability and performance improvements.
Info
- last updated 1 hour(s) ago
- Project Site
- License Info
Statistics
- 44754 total downloads
- 0 downloads of current version
- 95.0 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge