Show / Hide Table of Contents

Class OpenTelemetryConfig

Extension methods to make it seamless to install Phobos into OpenTelemetry.Trace.TracerProviderBuilder or OpenTelemetry.Metrics.MeterProviderBuilder instances on the fly.

Inheritance
object
OpenTelemetryConfig
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phobos.Actor
Assembly: Phobos.Actor.dll
Syntax
public static class OpenTelemetryConfig

Methods

AddPhobosInstrumentation(MeterProviderBuilder)

Subscribes to Phobos' Meter.

Declaration
public static MeterProviderBuilder AddPhobosInstrumentation(this MeterProviderBuilder builder)
Parameters
Type Name Description
MeterProviderBuilder builder

The OTel OpenTelemetry.Metrics.MeterProviderBuilder we're going to attach Phobos metrics to.

Returns
Type Description
MeterProviderBuilder

The original OpenTelemetry.Metrics.MeterProviderBuilder. This is a fluent interface.

AddPhobosInstrumentation(TracerProviderBuilder, bool)

Subscribes to Phobos' ActivitySource.

Declaration
public static TracerProviderBuilder AddPhobosInstrumentation(this TracerProviderBuilder builder, bool compressShardTraces = false)
Parameters
Type Name Description
TracerProviderBuilder builder

The OTel OpenTelemetry.Trace.TracerProviderBuilder we're going to attach Phobos traces to.

bool compressShardTraces

When set to true, adds an OTel processor that will compress traces through the sharding system to hide the internal sharding actors. Defaults to false.

Returns
Type Description
TracerProviderBuilder

The original OpenTelemetry.Trace.TracerProviderBuilder. This is a fluent interface.

In this article

Phobos®

APM for Akka.NET Applications

© 2025 Petabridge®

All rights reserved

Product
  • Purchase Phobos
  • Contact Sales
  • Phobos Quick Start Guide
  • Phobos Features
  • API Documentation
  • Release Notes
Resources
  • Akka.NET Documentation
  • Petabridge Blog
  • Akka.NET Support Plans
  • Akka.NET Consulting Services
  • Akka.NET Training
Connect
  • Petabridge Website
  • GitHub
  • Twitter
  • LinkedIn
  • YouTube
  • Contact Us
Privacy Policy
Built with ♥ by Petabridge