Phobos.Tracing 2.11.1
Distributed tracing support for Akka.NET ActorSystems.
Install-Package Phobos.Tracing -Version 2.11.1
dotnet add package Phobos.Tracing --version 2.11.1
<PackageReference Include="Phobos.Tracing" Version="2.11.1" />
paket add Phobos.Tracing --version 2.11.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
- Akka (>=1.5.63)
- Google.Protobuf (>=3.26.1)
- OpenTelemetry (>=1.11.2)
- Phobos.Actor.Common (>=1.1.2)
netstandard2.0
- Akka (>=1.5.63)
- Google.Protobuf (>=3.26.1)
- OpenTelemetry (>=1.11.2)
- Phobos.Actor.Common (>=1.1.2)
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.11.1 Current | 10 | 4 hour(s) ago | |
| 2.11.0 | 1,019 | 27 day(s) ago | |
| 2.10.5 | 5,088 | 53 day(s) ago | |
| 2.10.4 | 4,478 | 102 day(s) ago | |
| 2.10.3 | 104 | 103 day(s) ago | |
| 2.10.2 | 11,172 | 172 day(s) ago | |
| 2.10.1 | 2,404 | 189 day(s) ago | |
| 2.10.0 | 1,491 | 209 day(s) ago | |
| 2.9.1 | 563 | 215 day(s) ago | |
| 2.9.0 | 1,276 | 230 day(s) ago | |
| 2.8.5 | 11,317 | 305 day(s) ago | |
| 2.8.4 | 4,025 | 350 day(s) ago | |
| 2.8.3 | 8,121 | 398 day(s) ago | |
| 2.8.2 | 3,086 | 432 day(s) ago | |
| 2.8.1 | 986 | 432 day(s) ago | |
| 2.8.0 | 1,882 | 439 day(s) ago | |
| 2.7.0 | 1,144 | 446 day(s) ago | |
| 2.6.2 | 1,554 | 466 day(s) ago | |
| 2.6.1 | 496 | 472 day(s) ago | |
| 2.6.0 | 1,520 | 480 day(s) ago | |
| 2.5.4 | 95,353 | 642 day(s) ago | |
| 2.5.3 | 1,091 | 652 day(s) ago | |
| 2.5.2 | 950 | 658 day(s) ago | |
| 2.5.1 | 18,235 | 740 day(s) ago | |
| 2.5.0 | 15,111 | 776 day(s) ago | |
| 2.4.5 | 2,863 | 810 day(s) ago | |
| 2.4.4 | 946 | 845 day(s) ago | |
| 2.4.3 | 9,474 | 852 day(s) ago | |
| 2.4.2 | 9,588 | 923 day(s) ago | |
| 2.4.1 | 11,909 | 984 day(s) ago | |
| 2.4.0 | 710 | 986 day(s) ago | |
| 2.3.1 | 8,555 | 1042 day(s) ago | |
| 2.3.0 | 11,600 | 1068 day(s) ago | |
| 2.2.1 | 1,166 | 1070 day(s) ago | |
| 2.2.0 | 2,186 | 1124 day(s) ago | |
| 2.2.0-beta2 | 289 | 1125 day(s) ago | |
| 2.1.1 | 528 | 901 day(s) ago | |
| 2.1.0 | 2,129 | 1169 day(s) ago | |
| 2.1.0-beta2 | 543 | 1257 day(s) ago | |
| 2.1.0-beta1 | 429 | 1331 day(s) ago | |
| 2.0.6 | 65,889 | 1389 day(s) ago | |
| 2.0.5 | 426 | 1393 day(s) ago | |
| 2.0.4 | 393 | 1398 day(s) ago | |
| 2.0.3 | 408 | 1405 day(s) ago | |
| 2.0.3-beta1 | 300 | 1418 day(s) ago | |
| 2.0.2 | 4,555 | 1442 day(s) ago | |
| 2.0.1 | 500 | 1448 day(s) ago | |
| 2.0.0 | 390 | 1448 day(s) ago | |
| 2.0.0-beta4 | 726 | 1474 day(s) ago | |
| 2.0.0-beta3 | 743 | 1518 day(s) ago | |
| 2.0.0-beta2 | 300 | 1518 day(s) ago | |
| 2.0.0-beta1 | 388 | 1524 day(s) ago | |
| 1.6.1 | 4,563 | 1071 day(s) ago | |
| 1.6.0 | 448 | 1076 day(s) ago | |
| 1.5.1 | 13,977 | 1448 day(s) ago | |
| 1.5.0 | 359 | 1448 day(s) ago | |
| 1.5.0-beta1 | 289 | 1474 day(s) ago | |
| 1.4.2 | 12,904 | 1483 day(s) ago | |
| 1.4.1 | 2,362 | 1518 day(s) ago | |
| 1.4.0 | 409 | 1532 day(s) ago | |
| 1.3.3 | 7,310 | 1547 day(s) ago | |
| 1.3.2 | 794 | 1561 day(s) ago | |
| 1.3.1 | 851 | 1572 day(s) ago | |
| 1.3.0 | 7,478 | 1593 day(s) ago | |
| 1.2.5 | 1,519 | 1630 day(s) ago | |
| 1.2.4 | 1,055 | 1631 day(s) ago | |
| 1.2.3 | 3,605 | 1664 day(s) ago | |
| 1.2.2 | 2,673 | 1686 day(s) ago | |
| 1.2.1 | 1,034 | 1694 day(s) ago | |
| 1.2.0 | 2,321 | 1747 day(s) ago | |
| 1.1.4 | 1,812 | 1764 day(s) ago | |
| 1.1.3 | 596 | 1769 day(s) ago | |
| 1.1.2 | 3,755 | 1789 day(s) ago | |
| 1.1.1 | 6,148 | 1833 day(s) ago | |
| 1.1.0 | 11,409 | 1890 day(s) ago | |
| 1.0.6 | 910 | 1924 day(s) ago | |
| 1.0.5 | 563 | 1939 day(s) ago | |
| 1.0.4 | 1,960 | 1960 day(s) ago | |
| 1.0.3 | 1,205 | 1995 day(s) ago | |
| 1.0.2 | 1,589 | 2007 day(s) ago | |
| 1.0.1 | 442 | 2007 day(s) ago | |
| 0.7.0 | 36,490 | 1894 day(s) ago | |
| 0.6.1 | 440 | 1894 day(s) ago | |
| 0.6.0 | 487 | 1894 day(s) ago |
**Phobos 2.x Maintenance Release**
**Bug Fixes**
- Fixed trace context parent-child chain breaking when messages are buffered by `ShardRegionProxy` during shard allocation. Previously, `ShardingBufferMessageAdapter` failed to capture `UsableContext` as a fallback when `ActiveSpan` was null (the common case with default sharding filter settings), and `UnApply()` did not restore trace context before message delivery - causing distributed traces to lose their propagated context across ShardRegion/Proxy buffer flushes. See [#1487](https://github.com/petabridge/phobos/pull/1487).
**Improvements**
- Upgraded to [Akka.NET v1.5.63](https://github.com/akkadotnet/akka.net/releases/tag/1.5.63) and [Akka.Hosting v1.5.63](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.63) for latest stability and performance improvements.
Info
- last updated 4 hour(s) ago
- Project Site
- License Info
Statistics
- 462166 total downloads
- 10 downloads of current version
- 68.4 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge