Show / Hide Table of Contents

Class ActorTracing

Binds a specific ActorSystem with an OpenTracing.ITracer implementation.

Inheritance
object
ActorTracing
Implements
IExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phobos.Tracing
Assembly: Phobos.Tracing.dll
Syntax
public sealed class ActorTracing : IExtension

Constructors

ActorTracing(ExtendedActorSystem)

Creates a new ActorTracing instance />

Declaration
public ActorTracing(ExtendedActorSystem system)
Parameters
Type Name Description
ExtendedActorSystem system

The ActorSystem for which this tracer is being added.

Fields

PhobosActivitySourceName

The name of the Phobos.Tracing.ActorTracing.ActivitySource used by Phobos to generate trace events.

Declaration
public const string PhobosActivitySourceName = "Phobos"
Field Value
Type Description
string

Properties

Settings

The tracing settings.

Declaration
public TracingSettings Settings { get; }
Property Value
Type Description
TracingSettings

Tracer

The current OpenTelemetry Tracer used to create OpenTelemetry.Trace.TelemetrySpans, which wrap around Activity instances. This can be used for distributed tracing operations within actors and non-actor parts of your application.

Declaration
public Tracer Tracer { get; }
Property Value
Type Description
Tracer
Remarks

For more information about OpenTelemetry, please visit https://opentelemetry.io/

Methods

DefaultConfig()

Returns the default Config for the Phobos.Tracing plugin.

Declaration
public static Config DefaultConfig()
Returns
Type Description
Config

A Config object read from the embedded defaults defined in this DLL.

For(ActorSystem)

Gets the current ActorTracing instance registered with the ActorSystem.

Declaration
public static ActorTracing For(ActorSystem system)
Parameters
Type Name Description
ActorSystem system

The actor system.

Returns
Type Description
ActorTracing

An ActorTracing instance if one is registered. A default ActorTracing implementation that uses the NoOpTracer if none is currently registered.

Implements

IExtension
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