Table of Contents

Class ActivitySources

Namespace
JD.AI.Telemetry
Assembly
JD.AI.Telemetry.dll

Central ActivitySource definitions for JD.AI distributed tracing. All instrumentation in JD.AI uses these named sources so that a single AddSource(ActivitySources.AllSourceNames) call registers them all.

public static class ActivitySources
Inheritance
ActivitySources
Inherited Members

Fields

Agent

Traces agent turns, spawning, and lifecycle operations.

public static readonly ActivitySource Agent

Field Value

ActivitySource

AgentSourceName

Source name for agent-level spans (turns, spawning, compaction).

public const string AgentSourceName = "JD.AI.Agent"

Field Value

string

AllSourceNames

All source names — pass to .AddSource() when configuring OTel.

public static readonly string[] AllSourceNames

Field Value

string[]

Providers

Traces provider API calls and retries.

public static readonly ActivitySource Providers

Field Value

ActivitySource

ProvidersSourceName

Source name for provider API call spans.

public const string ProvidersSourceName = "JD.AI.Providers"

Field Value

string

Sessions

Traces session persistence operations.

public static readonly ActivitySource Sessions

Field Value

ActivitySource

SessionsSourceName

Source name for session-persistence spans.

public const string SessionsSourceName = "JD.AI.Sessions"

Field Value

string

Tools

Traces individual tool invocations.

public static readonly ActivitySource Tools

Field Value

ActivitySource

ToolsSourceName

Source name for tool-invocation spans.

public const string ToolsSourceName = "JD.AI.Tools"

Field Value

string