Phobos.Hosting 2.13.0
Akka.Hosting prototype support for Phobos.
Install-Package Phobos.Hosting -Version 2.13.0
dotnet add package Phobos.Hosting --version 2.13.0
<PackageReference Include="Phobos.Hosting" Version="2.13.0" />
paket add Phobos.Hosting --version 2.13.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
- Phobos.Actor.Cluster (>=2.13.0)
- Akka.Cluster.Hosting (>=1.5.71)
netstandard2.0
- Phobos.Actor.Cluster (>=2.13.0)
- Akka.Cluster.Hosting (>=1.5.71)
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.13.0 Current | 6 | 2 day(s) ago | |
| 2.12.1 | 1,665 | 29 day(s) ago | |
| 2.12.0 | 15,838 | 149 day(s) ago | |
| 2.11.3 | 2,318 | 170 day(s) ago | |
| 2.11.2 | 279 | 177 day(s) ago | |
| 2.11.1 | 340 | 178 day(s) ago | |
| 2.11.0 | 1,773 | 206 day(s) ago | |
| 2.10.5 | 16,783 | 231 day(s) ago | |
| 2.10.4 | 6,335 | 281 day(s) ago | |
| 2.10.3 | 295 | 281 day(s) ago | |
| 2.10.2 | 28,517 | 350 day(s) ago | |
| 2.10.1 | 2,135 | 368 day(s) ago | |
| 2.10.0 | 1,815 | 387 day(s) ago | |
| 2.9.1 | 735 | 394 day(s) ago | |
| 2.9.0 | 1,182 | 409 day(s) ago | |
| 2.8.5 | 11,024 | 483 day(s) ago | |
| 2.8.4 | 4,314 | 528 day(s) ago | |
| 2.8.3 | 7,962 | 576 day(s) ago | |
| 2.8.2 | 3,658 | 610 day(s) ago | |
| 2.8.1 | 942 | 611 day(s) ago | |
| 2.8.0 | 2,088 | 617 day(s) ago | |
| 2.7.0 | 1,300 | 624 day(s) ago | |
| 2.6.2 | 1,693 | 644 day(s) ago | |
| 2.6.1 | 697 | 650 day(s) ago | |
| 2.6.0 | 1,725 | 658 day(s) ago | |
| 2.5.4 | 99,348 | 820 day(s) ago | |
| 2.5.3 | 1,320 | 830 day(s) ago | |
| 2.5.2 | 1,124 | 836 day(s) ago | |
| 2.5.1 | 18,859 | 919 day(s) ago | |
| 2.5.0 | 13,857 | 954 day(s) ago | |
| 2.4.5 | 2,635 | 988 day(s) ago | |
| 2.4.4 | 830 | 1023 day(s) ago | |
| 2.4.3 | 1,320 | 1030 day(s) ago | |
| 2.4.2 | 1,713 | 1102 day(s) ago | |
| 2.4.1 | 7,834 | 1162 day(s) ago | |
| 2.4.0 | 873 | 1165 day(s) ago | |
| 2.3.1 | 6,557 | 1220 day(s) ago | |
| 2.3.0 | 3,208 | 1246 day(s) ago | |
| 2.2.1 | 1,246 | 1249 day(s) ago | |
| 2.2.0 | 1,649 | 1302 day(s) ago | |
| 2.2.0-beta2 | 456 | 1304 day(s) ago | |
| 2.1.1 | 527 | 1079 day(s) ago | |
| 2.1.0 | 1,077 | 1347 day(s) ago | |
| 2.1.0-beta2 | 649 | 1436 day(s) ago | |
| 2.1.0-beta1 | 459 | 1509 day(s) ago | |
| 2.0.6 | 53,301 | 1568 day(s) ago | |
| 2.0.5 | 559 | 1571 day(s) ago | |
| 2.0.4 | 544 | 1576 day(s) ago | |
| 2.0.3 | 546 | 1583 day(s) ago | |
| 2.0.3-beta1 | 459 | 1596 day(s) ago | |
| 2.0.2 | 704 | 1620 day(s) ago | |
| 2.0.1 | 645 | 1626 day(s) ago | |
| 2.0.0 | 537 | 1627 day(s) ago | |
| 1.6.1 | 549 | 1249 day(s) ago | |
| 1.6.0 | 527 | 1254 day(s) ago | |
| 1.5.1 | 778 | 1627 day(s) ago | |
| 1.5.0-beta | 456 | 1627 day(s) ago |
**Phobos 2.x Maintenance Release**
**Bug Fixes**
- Fixed receive metrics (and the matching receive-span `messageType` attribute) to label the inner wrapped payload instead of the outer envelope type. Application code that unpacks `IWrappedMessage` envelopes can now get per-message breakdowns by the business message actually being processed, rather than the generic wrapper type. See [phobos-issues#96](https://github.com/petabridge/phobos-issues/issues/96).
- Fixed explicit child and runtime instrumentation settings being overridden for `Cluster.Sharding` entities. A child's own `WithInstrumentation` (and runtime settings) now takes precedence over settings propagated from its parent, so sharded/custom entities can opt out of or fine-tune tracing even when propagation is enabled. See [phobos-issues#98](https://github.com/petabridge/phobos-issues/issues/98).
Info
- last updated 2 day(s) ago
- Project Site
- License Info
Statistics
- 340565 total downloads
- 6 downloads of current version
- 59.0 KB package size
Owners and Products
Petabridge
Authors
Petabridge
Copyright
Copyright © 2017-2026 Petabridge