Table of Contents

Class SagaActivitySource

Namespace
Excalibur.Saga
Assembly
Excalibur.Saga.dll

OpenTelemetry activity source for saga operations, providing distributed tracing capabilities.

public static class SagaActivitySource
Inheritance
SagaActivitySource
Inherited Members

Remarks

This activity source is used by saga infrastructure to create spans for:

  • Timeout scheduling operations
  • Timeout delivery service execution
  • Individual timeout deliveries
  • SqlServer store operations

Tag Conventions:

  • saga.id - Saga instance identifier
  • saga.type - Saga type name
  • timeout.id - Timeout identifier
  • timeout.type - Timeout message type
  • timeout.due_at - When timeout was due (ISO 8601)

Fields

SourceName

The name of the activity source: "Excalibur.Dispatch.Sagas".

public const string SourceName = "Excalibur.Dispatch.Sagas"

Field Value

string

SourceVersion

The version of the activity source.

public const string SourceVersion = "1.0.0"

Field Value

string

Properties

Instance

Gets the underlying activity source for advanced scenarios.

public static ActivitySource Instance { get; }

Property Value

ActivitySource

Methods

StartActivity(string, ActivityKind)

Starts a new activity with the specified name.

public static Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal)

Parameters

name string

The name of the activity.

kind ActivityKind

The kind of activity. Default is Internal.

Returns

Activity

The started activity, or null if tracing is not enabled.