Phobos.Tracing 2.11.0
Distributed tracing support for Akka.NET ActorSystems.
Install-Package Phobos.Tracing -Version 2.11.0
dotnet add package Phobos.Tracing --version 2.11.0
<PackageReference Include="Phobos.Tracing" Version="2.11.0" />
paket add Phobos.Tracing --version 2.11.0
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.61)
- Google.Protobuf (>=3.26.1)
- OpenTelemetry (>=1.11.2)
- Phobos.Actor.Common (>=1.1.2)
netstandard2.0
- Akka (>=1.5.61)
- Google.Protobuf (>=3.26.1)
- OpenTelemetry (>=1.11.2)
- Phobos.Actor.Common (>=1.1.2)
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.13.1 | 721 | 34 day(s) ago | |
| 2.13.0 | 59 | 46 day(s) ago | |
| 2.12.1 | 4,866 | 73 day(s) ago | |
| 2.12.0 | 20,546 | 193 day(s) ago | |
| 2.11.3 | 3,064 | 214 day(s) ago | |
| 2.11.2 | 405 | 221 day(s) ago | |
| 2.11.1 | 407 | 222 day(s) ago | |
| 2.11.0 Current | 1,988 | 250 day(s) ago | |
| 2.10.5 | 20,975 | 275 day(s) ago | |
| 2.10.4 | 6,683 | 325 day(s) ago | |
| 2.10.3 | 327 | 325 day(s) ago | |
| 2.10.2 | 29,473 | 394 day(s) ago | |
| 2.10.1 | 2,644 | 412 day(s) ago | |
| 2.10.0 | 2,094 | 431 day(s) ago | |
| 2.9.1 | 795 | 437 day(s) ago | |
| 2.9.0 | 1,518 | 452 day(s) ago | |
| 2.8.5 | 11,811 | 527 day(s) ago | |
| 2.8.4 | 4,629 | 572 day(s) ago | |
| 2.8.3 | 8,501 | 620 day(s) ago | |
| 2.8.2 | 3,656 | 654 day(s) ago | |
| 2.8.1 | 1,207 | 654 day(s) ago | |
| 2.8.0 | 2,104 | 661 day(s) ago | |
| 2.7.0 | 1,364 | 668 day(s) ago | |
| 2.6.2 | 1,776 | 688 day(s) ago | |
| 2.6.1 | 714 | 694 day(s) ago | |
| 2.6.0 | 1,736 | 702 day(s) ago | |
| 2.5.4 | 116,168 | 864 day(s) ago | |
| 2.5.3 | 1,310 | 874 day(s) ago | |
| 2.5.2 | 1,166 | 880 day(s) ago | |
| 2.5.1 | 19,606 | 963 day(s) ago | |
| 2.5.0 | 25,974 | 998 day(s) ago | |
| 2.4.5 | 3,086 | 1032 day(s) ago | |
| 2.4.4 | 1,165 | 1067 day(s) ago | |
| 2.4.3 | 10,108 | 1074 day(s) ago | |
| 2.4.2 | 12,718 | 1146 day(s) ago | |
| 2.4.1 | 12,125 | 1206 day(s) ago | |
| 2.4.0 | 932 | 1208 day(s) ago | |
| 2.3.1 | 8,775 | 1264 day(s) ago | |
| 2.3.0 | 13,150 | 1290 day(s) ago | |
| 2.2.1 | 1,382 | 1293 day(s) ago | |
| 2.2.0 | 2,402 | 1346 day(s) ago | |
| 2.2.0-beta2 | 509 | 1348 day(s) ago | |
| 2.1.1 | 749 | 1123 day(s) ago | |
| 2.1.0 | 2,349 | 1391 day(s) ago | |
| 2.1.0-beta2 | 759 | 1480 day(s) ago | |
| 2.1.0-beta1 | 645 | 1553 day(s) ago | |
| 2.0.6 | 66,117 | 1612 day(s) ago | |
| 2.0.5 | 641 | 1615 day(s) ago | |
| 2.0.4 | 608 | 1620 day(s) ago | |
| 2.0.3 | 627 | 1627 day(s) ago | |
| 2.0.3-beta1 | 515 | 1640 day(s) ago | |
| 2.0.2 | 4,770 | 1664 day(s) ago | |
| 2.0.1 | 716 | 1670 day(s) ago | |
| 2.0.0 | 609 | 1671 day(s) ago | |
| 2.0.0-beta4 | 942 | 1696 day(s) ago | |
| 2.0.0-beta3 | 959 | 1740 day(s) ago | |
| 2.0.0-beta2 | 516 | 1741 day(s) ago | |
| 2.0.0-beta1 | 603 | 1747 day(s) ago | |
| 1.6.1 | 4,779 | 1293 day(s) ago | |
| 1.6.0 | 664 | 1298 day(s) ago | |
| 1.5.1 | 14,250 | 1671 day(s) ago | |
| 1.5.0 | 573 | 1671 day(s) ago | |
| 1.5.0-beta1 | 503 | 1696 day(s) ago | |
| 1.4.2 | 13,243 | 1705 day(s) ago | |
| 1.4.1 | 2,576 | 1741 day(s) ago | |
| 1.4.0 | 626 | 1754 day(s) ago | |
| 1.3.3 | 7,524 | 1770 day(s) ago | |
| 1.3.2 | 1,010 | 1783 day(s) ago | |
| 1.3.1 | 1,065 | 1794 day(s) ago | |
| 1.3.0 | 7,695 | 1815 day(s) ago | |
| 1.2.5 | 1,733 | 1852 day(s) ago | |
| 1.2.4 | 1,274 | 1854 day(s) ago | |
| 1.2.3 | 3,825 | 1886 day(s) ago | |
| 1.2.2 | 2,889 | 1908 day(s) ago | |
| 1.2.1 | 1,249 | 1916 day(s) ago | |
| 1.2.0 | 2,535 | 1970 day(s) ago | |
| 1.1.4 | 2,029 | 1986 day(s) ago | |
| 1.1.3 | 810 | 1991 day(s) ago | |
| 1.1.2 | 3,970 | 2012 day(s) ago | |
| 1.1.1 | 6,362 | 2055 day(s) ago | |
| 1.1.0 | 11,628 | 2112 day(s) ago | |
| 1.0.6 | 1,124 | 2147 day(s) ago | |
| 1.0.5 | 779 | 2162 day(s) ago | |
| 1.0.4 | 2,175 | 2182 day(s) ago | |
| 1.0.3 | 1,420 | 2217 day(s) ago | |
| 1.0.2 | 1,805 | 2229 day(s) ago | |
| 1.0.1 | 657 | 2229 day(s) ago | |
| 0.7.0 | 36,707 | 2116 day(s) ago | |
| 0.6.1 | 654 | 2116 day(s) ago | |
| 0.6.0 | 763 | 2116 day(s) ago |
**Phobos 2.x Release**
**New Feature: Log-Trace Correlation**
Phobos 2.11.0 introduces first-class log-trace correlation, enabling automatic synchronization between actor logs and distributed traces. This allows you to navigate seamlessly between logs and traces in observability platforms like Seq, Grafana Loki, and Datadog.
See the full documentation: [Log-Trace Correlation](https://phobos.petabridge.com/articles/log-trace-correlation.html)
Setup requires one step: add `AddAkkaTraceCorrelation()` to your OpenTelemetry logging pipeline (before your exporters).
**Deprecation: AppendLogsToTrace Default Changed to Off**
The `phobos.tracing.append-logs-to-trace` setting now defaults to `off`. This feature, which appended actor log messages as events to active trace spans, has been deprecated in favor of OpenTelemetry trace correlation via [`AddAkkaTraceCorrelation()`](https://phobos.petabridge.com/articles/log-trace-correlation-migration.html).
The new approach provides:
- Proper first-class log records instead of span events
- Full structured/semantic logging support
- Better querying and filtering in observability platforms
- No more `FormatException` issues with semantic log templates
For migration instructions, see: [Log-Trace Correlation Migration Guide](https://phobos.petabridge.com/articles/log-trace-correlation-migration.html)
Users who depend on the old behavior can re-enable it with `phobos.tracing.append-logs-to-trace = on` in HOCON or `.SetAppendLogsToTrace(true)` in the `PhobosConfigBuilder`, but this is not recommended.
**Improvements**
- Upgraded to [Akka.NET v1.5.61](https://github.com/akkadotnet/akka.net/releases/tag/1.5.61) and [Akka.Hosting v1.5.61](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.61)
Info
- last updated 250 day(s) ago
- Project Site
- License Info
Statistics
- 585660 total downloads
- 1988 downloads of current version
- 68.7 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge