Phobos.TestKit 2.10.5
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.10.5
dotnet add package Phobos.TestKit --version 2.10.5
<PackageReference Include="Phobos.TestKit" Version="2.10.5" />
paket add Phobos.TestKit --version 2.10.5
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.10.5)
- Akka.TestKit.Xunit2 (>=1.5.59)
- FluentAssertions (>=6.12.0)
- OpenTelemetry.Exporter.InMemory (>=1.11.2)
- xunit (>=2.8.1)
netstandard2.0
- Phobos.Actor (>=2.10.5)
- Akka.TestKit.Xunit2 (>=1.5.59)
- FluentAssertions (>=6.12.0)
- OpenTelemetry.Exporter.InMemory (>=1.11.2)
- xunit (>=2.8.1)
| Version | Downloads | Last Updated |
|---|---|---|
| 2.10.5 Current | 2 | 15 hour(s) ago |
| 2.10.4 | 50 | 50 day(s) ago |
| 2.10.3 | 50 | 50 day(s) ago |
| 2.10.2 | 115 | 120 day(s) ago |
| 2.10.1 | 134 | 137 day(s) ago |
| 2.10.0 | 153 | 156 day(s) ago |
| 2.9.1 | 161 | 163 day(s) ago |
| 2.9.0 | 176 | 178 day(s) ago |
| 2.8.5 | 254 | 252 day(s) ago |
| 2.8.4 | 305 | 298 day(s) ago |
| 2.8.3 | 308 | 345 day(s) ago |
| 2.8.2 | 335 | 379 day(s) ago |
| 2.8.1 | 299 | 380 day(s) ago |
| 2.8.0 | 301 | 387 day(s) ago |
| 2.7.0 | 300 | 394 day(s) ago |
| 2.6.2 | 302 | 413 day(s) ago |
| 2.6.1 | 300 | 420 day(s) ago |
| 2.6.0 | 301 | 428 day(s) ago |
| 2.5.4 | 327 | 589 day(s) ago |
| 2.5.3 | 302 | 599 day(s) ago |
| 2.5.2 | 301 | 605 day(s) ago |
| 2.5.1 | 336 | 688 day(s) ago |
| 2.5.0 | 306 | 724 day(s) ago |
| 2.4.5 | 306 | 758 day(s) ago |
| 2.4.4 | 305 | 793 day(s) ago |
| 2.4.3 | 301 | 800 day(s) ago |
| 2.4.2 | 312 | 871 day(s) ago |
| 2.4.1 | 405 | 931 day(s) ago |
| 2.4.0 | 302 | 934 day(s) ago |
| 2.3.1 | 425 | 989 day(s) ago |
| 2.3.0 | 467 | 1015 day(s) ago |
| 2.2.1 | 303 | 1018 day(s) ago |
| 2.2.0 | 309 | 1072 day(s) ago |
| 2.2.0-beta2 | 232 | 1073 day(s) ago |
| 2.1.1 | 301 | 848 day(s) ago |
| 2.1.0 | 307 | 1117 day(s) ago |
| 2.1.0-beta2 | 232 | 1205 day(s) ago |
| 2.1.0-beta1 | 232 | 1278 day(s) ago |
| 2.0.6 | 349 | 1337 day(s) ago |
| 2.0.5 | 302 | 1341 day(s) ago |
| 2.0.4 | 301 | 1345 day(s) ago |
| 2.0.3 | 303 | 1352 day(s) ago |
| 2.0.3-beta1 | 233 | 1366 day(s) ago |
| 2.0.2 | 317 | 1389 day(s) ago |
| 2.0.1 | 300 | 1395 day(s) ago |
| 2.0.0 | 300 | 1396 day(s) ago |
| 2.0.0-beta4 | 232 | 1422 day(s) ago |
| 2.0.0-beta3 | 233 | 1465 day(s) ago |
| 2.0.0-beta2 | 232 | 1466 day(s) ago |
| 2.0.0-beta1 | 232 | 1472 day(s) ago |
| 1.6.1 | 305 | 1018 day(s) ago |
| 1.6.0 | 314 | 1023 day(s) ago |
| 1.5.1 | 342 | 1396 day(s) ago |
| 1.5.0 | 300 | 1396 day(s) ago |
| 1.5.0-beta1 | 232 | 1422 day(s) ago |
| 1.4.2 | 424 | 1431 day(s) ago |
| 1.4.1 | 360 | 1466 day(s) ago |
| 1.4.0 | 301 | 1479 day(s) ago |
| 1.3.3 | 348 | 1495 day(s) ago |
| 1.3.2 | 300 | 1508 day(s) ago |
| 1.3.1 | 300 | 1520 day(s) ago |
| 1.3.0 | 495 | 1541 day(s) ago |
| 1.2.5 | 321 | 1577 day(s) ago |
| 1.2.4 | 418 | 1579 day(s) ago |
| 1.2.3 | 576 | 1612 day(s) ago |
| 1.2.2 | 359 | 1633 day(s) ago |
| 1.2.1 | 301 | 1641 day(s) ago |
| 1.2.0 | 863 | 1695 day(s) ago |
| 1.1.4 | 425 | 1711 day(s) ago |
| 1.1.3 | 308 | 1717 day(s) ago |
| 1.1.2 | 548 | 1737 day(s) ago |
| 1.1.1 | 755 | 1781 day(s) ago |
| 1.1.0 | 969 | 1838 day(s) ago |
| 1.0.6 | 385 | 1872 day(s) ago |
| 1.0.5 | 382 | 1887 day(s) ago |
| 1.0.4 | 670 | 1908 day(s) ago |
| 1.0.3 | 382 | 1943 day(s) ago |
| 1.0.2 | 468 | 1955 day(s) ago |
| 1.0.1 | 383 | 1955 day(s) ago |
| 0.8.0 | 382 | 1842 day(s) ago |
| 0.7.2 | 382 | 1842 day(s) ago |
| 0.7.1 | 382 | 1842 day(s) ago |
| 0.7.0 | 381 | 1842 day(s) ago |
**Phobos 2.x Maintenance Release**
**Bug Fixes**
- Fixed potential memory allocation issue in stash/unstash span events where `ToString()` was called on messages instead of using the type name.
**Improvements**
- Upgraded to [Akka.NET v1.5.59](https://github.com/akkadotnet/akka.net/releases/tag/1.5.59) and Akka.Hosting v1.5.59 for latest stability and performance improvements
Info
- last updated 15 hour(s) ago
- Project Site
- License Info
Statistics
- 27552 total downloads
- 2 downloads of current version
- 90.6 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge