Table of Contents

Class TyphonActivitySource

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Provides the centralized ActivitySource for Typhon distributed tracing.

public static class TyphonActivitySource
Inheritance
TyphonActivitySource
Inherited Members

Remarks

Use this ActivitySource to create spans for database operations:

using var activity = TyphonActivitySource.Instance.StartActivity("Transaction.Commit");
activity?.SetTag("entity.count", entityCount);
// ... do work ...

Fields

Name

The name of the Typhon ActivitySource, used for OpenTelemetry configuration.

public const string Name = "Typhon.Engine"

Field Value

string

Version

The version of the ActivitySource.

public const string Version = "1.0.0"

Field Value

string

Properties

Instance

The singleton ActivitySource instance for all Typhon tracing.

public static ActivitySource Instance { get; }

Property Value

ActivitySource

Methods

StartActivity(string, ActivityKind)

Starts an activity (span) for a database operation.

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

Parameters

operationName string

The name of the operation (e.g., "Transaction.Commit").

kind ActivityKind

The kind of activity (default: Internal).

Returns

Activity

The started Activity, or null if no listener is registered.