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 | 10 | 8 day(s) ago | |
| 2.12.0 | 131 | 129 day(s) ago | |
| 2.11.3 | 150 | 150 day(s) ago | |
| 2.11.2 | 157 | 156 day(s) ago | |
| 2.11.1 | 156 | 157 day(s) ago | |
| 2.11.0 | 183 | 185 day(s) ago | |
| 2.10.5 | 211 | 210 day(s) ago | |
| 2.10.4 | 257 | 260 day(s) ago | |
| 2.10.3 | 256 | 260 day(s) ago | |
| 2.10.2 | 323 | 330 day(s) ago | |
| 2.10.1 | 339 | 347 day(s) ago | |
| 2.10.0 | 358 | 366 day(s) ago | |
| 2.9.1 | 367 | 373 day(s) ago | |
| 2.9.0 | 383 | 388 day(s) ago | |
| 2.8.5 | 463 | 462 day(s) ago | |
| 2.8.4 | 513 | 508 day(s) ago | |
| 2.8.3 | 515 | 555 day(s) ago | |
| 2.8.2 | 542 | 589 day(s) ago | |
| 2.8.1 | 509 | 590 day(s) ago | |
| 2.8.0 | 507 | 597 day(s) ago | |
| 2.7.0 | 507 | 604 day(s) ago | |
| 2.6.2 | 509 | 623 day(s) ago | |
| 2.6.1 | 506 | 630 day(s) ago | |
| 2.6.0 | 508 | 638 day(s) ago | |
| 2.5.4 | 533 | 799 day(s) ago | |
| 2.5.3 | 509 | 809 day(s) ago | |
| 2.5.2 | 507 | 815 day(s) ago | |
| 2.5.1 | 544 | 898 day(s) ago | |
| 2.5.0 | 514 | 934 day(s) ago | |
| 2.4.5 | 515 | 968 day(s) ago | |
| 2.4.4 | 510 | 1003 day(s) ago | |
| 2.4.3 | 508 | 1010 day(s) ago | |
| 2.4.2 | 520 | 1081 day(s) ago | |
| 2.4.1 | 612 | 1141 day(s) ago | |
| 2.4.0 | 507 | 1144 day(s) ago | |
| 2.3.1 | 633 | 1199 day(s) ago | |
| 2.3.0 | 675 | 1225 day(s) ago | |
| 2.2.1 | 512 | 1228 day(s) ago | |
| 2.2.0 | 518 | 1282 day(s) ago | |
| 2.2.0-beta2 | 441 | 1283 day(s) ago | |
| 2.1.1 | 511 | 1058 day(s) ago | |
| 2.1.0 | 513 | 1327 day(s) ago | |
| 2.1.0-beta2 | 440 | 1415 day(s) ago | |
| 2.1.0-beta1 | 440 | 1488 day(s) ago | |
| 2.0.6 | 555 | 1547 day(s) ago | |
| 2.0.5 | 510 | 1551 day(s) ago | |
| 2.0.4 | 511 | 1555 day(s) ago | |
| 2.0.3 | 511 | 1562 day(s) ago | |
| 2.0.3-beta1 | 441 | 1576 day(s) ago | |
| 2.0.2 | 525 | 1599 day(s) ago | |
| 2.0.1 | 510 | 1605 day(s) ago | |
| 2.0.0 | 507 | 1606 day(s) ago | |
| 2.0.0-beta4 | 439 | 1632 day(s) ago | |
| 2.0.0-beta3 | 440 | 1675 day(s) ago | |
| 2.0.0-beta2 | 439 | 1676 day(s) ago | |
| 2.0.0-beta1 | 441 | 1682 day(s) ago | |
| 1.6.1 | 514 | 1228 day(s) ago | |
| 1.6.0 | 523 | 1233 day(s) ago | |
| 1.5.1 | 550 | 1606 day(s) ago | |
| 1.5.0 | 508 | 1606 day(s) ago | |
| 1.5.0-beta1 | 440 | 1632 day(s) ago | |
| 1.4.2 | 629 | 1641 day(s) ago | |
| 1.4.1 | 568 | 1676 day(s) ago | |
| 1.4.0 | 510 | 1689 day(s) ago | |
| 1.3.3 | 556 | 1705 day(s) ago | |
| 1.3.2 | 510 | 1718 day(s) ago | |
| 1.3.1 | 505 | 1730 day(s) ago | |
| 1.3.0 | 705 | 1751 day(s) ago | |
| 1.2.5 | 530 | 1787 day(s) ago | |
| 1.2.4 | 624 | 1789 day(s) ago | |
| 1.2.3 | 784 | 1822 day(s) ago | |
| 1.2.2 | 564 | 1843 day(s) ago | |
| 1.2.1 | 506 | 1851 day(s) ago | |
| 1.2.0 | 1,073 | 1905 day(s) ago | |
| 1.1.4 | 633 | 1921 day(s) ago | |
| 1.1.3 | 514 | 1927 day(s) ago | |
| 1.1.2 | 757 | 1947 day(s) ago | |
| 1.1.1 | 960 | 1991 day(s) ago | |
| 1.1.0 | 1,178 | 2048 day(s) ago | |
| 1.0.6 | 590 | 2082 day(s) ago | |
| 1.0.5 | 591 | 2097 day(s) ago | |
| 1.0.4 | 875 | 2118 day(s) ago | |
| 1.0.3 | 587 | 2153 day(s) ago | |
| 1.0.2 | 673 | 2165 day(s) ago | |
| 1.0.1 | 590 | 2165 day(s) ago | |
| 0.8.0 | 587 | 2052 day(s) ago | |
| 0.7.2 | 591 | 2052 day(s) ago | |
| 0.7.1 | 592 | 2052 day(s) ago | |
| 0.7.0 | 588 | 2052 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 8 day(s) ago
- Project Site
- License Info
Statistics
- 45556 total downloads
- 10 downloads of current version
- 95.0 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge