Class ActivitySources
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
AgentSourceName
Source name for agent-level spans (turns, spawning, compaction).
public const string AgentSourceName = "JD.AI.Agent"
Field Value
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
ProvidersSourceName
Source name for provider API call spans.
public const string ProvidersSourceName = "JD.AI.Providers"
Field Value
Sessions
Traces session persistence operations.
public static readonly ActivitySource Sessions
Field Value
SessionsSourceName
Source name for session-persistence spans.
public const string SessionsSourceName = "JD.AI.Sessions"
Field Value
Tools
Traces individual tool invocations.
public static readonly ActivitySource Tools
Field Value
ToolsSourceName
Source name for tool-invocation spans.
public const string ToolsSourceName = "JD.AI.Tools"