AgentPrismDiagnostics
AgentPrism.Core.dllDefines AgentPrism telemetry source and measurement names.
public static class AgentPrismDiagnosticsInheritance
Section titled “Inheritance”object ← AgentPrismDiagnostics
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”These names are stable. Consumers use them in OpenTelemetry configuration, so changing them is a breaking change.
Consumers continue to configure their own OTLP exporter. AgentPrism does not take over the pipeline. Example setup:
builder.Services.AddOpenTelemetry() .WithTracing(t => t.AddSource(AgentPrismDiagnostics.ActivitySourceName)) .WithMetrics(m => m.AddMeter(AgentPrismDiagnostics.MeterName));Fields
Section titled “Fields”ActivitySourceName
Section titled “ ActivitySourceName”Gets the AgentPrism ActivitySource name.
public const string ActivitySourceName = "AgentPrism"Field Value
Section titled “Field Value”CompactHistoryActivityName
Section titled “ CompactHistoryActivityName”Gets the span name that represents a context-compaction summarization call.
public const string CompactHistoryActivityName = "compact_history"Field Value
Section titled “Field Value”JudgeCostCounterName
Section titled “ JudgeCostCounterName”Gets the counter name for the judge’s own cost.
public const string JudgeCostCounterName = "agentprism.judge.cost"Field Value
Section titled “Field Value”JudgeScoreHistogramName
Section titled “ JudgeScoreHistogramName”Gets the histogram name for judge scores from 0 to 100.
public const string JudgeScoreHistogramName = "agentprism.judge.score"Field Value
Section titled “Field Value”MeterName
Section titled “ MeterName”Gets the AgentPrism Meter name.
public const string MeterName = "AgentPrism"Field Value
Section titled “Field Value”QuotaLimitGaugeName
Section titled “ QuotaLimitGaugeName”Gets the observable gauge that shows the configured quota-scope limit.
public const string QuotaLimitGaugeName = "agentprism.quota.limit"Field Value
Section titled “Field Value”QuotaUsageGaugeName
Section titled “ QuotaUsageGaugeName”Gets the observable gauge that shows quota-scope consumption in the current period.
public const string QuotaUsageGaugeName = "agentprism.quota.usage"Field Value
Section titled “Field Value”RunActivityName
Section titled “ RunActivityName”Gets the root span name that represents a run.
public const string RunActivityName = "agentprism.run"Field Value
Section titled “Field Value”RunCostCounterName
Section titled “ RunCostCounterName”Gets the monetary cost counter name per run.
public const string RunCostCounterName = "agentprism.run.cost"Field Value
Section titled “Field Value”RunCounterName
Section titled “ RunCounterName”Gets the completed-run counter name.
public const string RunCounterName = "agentprism.runs"Field Value
Section titled “Field Value”RunDurationName
Section titled “ RunDurationName”Gets the run-duration histogram name in seconds.
public const string RunDurationName = "agentprism.run.duration"Field Value
Section titled “Field Value”SkillScriptActivityName
Section titled “ SkillScriptActivityName”Gets the span name that represents a skill script execution.
public const string SkillScriptActivityName = "execute_skill_script"Field Value
Section titled “Field Value”SkillScriptToolName
Section titled “ SkillScriptToolName”Gets the tool name for skill script calls in metrics.
public const string SkillScriptToolName = "skill_script"Field Value
Section titled “Field Value”TokenCounterName
Section titled “ TokenCounterName”Gets the token counter name.
public const string TokenCounterName = "agentprism.tokens"Field Value
Section titled “Field Value”ToolCounterName
Section titled “ ToolCounterName”Gets the tool-invocation counter name.
public const string ToolCounterName = "agentprism.tool.invocations"Field Value
Section titled “Field Value”ToolDurationName
Section titled “ ToolDurationName”Gets the tool-call duration histogram name in seconds.
public const string ToolDurationName = "agentprism.tool.duration"