Class SagaActivitySource
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 identifiersaga.type- Saga type nametimeout.id- Timeout identifiertimeout.type- Timeout message typetimeout.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
SourceVersion
The version of the activity source.
public const string SourceVersion = "1.0.0"
Field Value
Properties
Instance
Gets the underlying activity source for advanced scenarios.
public static ActivitySource Instance { get; }
Property Value
Methods
StartActivity(string, ActivityKind)
Starts a new activity with the specified name.
public static Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal)
Parameters
namestringThe name of the activity.
kindActivityKindThe kind of activity. Default is Internal.
Returns
- Activity
The started activity, or null if tracing is not enabled.