Skip to content

AgentPrismDiagnostics

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Defines AgentPrism telemetry source and measurement names.

public static class AgentPrismDiagnostics

objectAgentPrismDiagnostics

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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));

Gets the AgentPrism ActivitySource name.

public const string ActivitySourceName = "AgentPrism"

string

Gets the span name that represents a context-compaction summarization call.

public const string CompactHistoryActivityName = "compact_history"

string

Gets the counter name for the judge’s own cost.

public const string JudgeCostCounterName = "agentprism.judge.cost"

string

Gets the histogram name for judge scores from 0 to 100.

public const string JudgeScoreHistogramName = "agentprism.judge.score"

string

Gets the AgentPrism Meter name.

public const string MeterName = "AgentPrism"

string

Gets the observable gauge that shows the configured quota-scope limit.

public const string QuotaLimitGaugeName = "agentprism.quota.limit"

string

Gets the observable gauge that shows quota-scope consumption in the current period.

public const string QuotaUsageGaugeName = "agentprism.quota.usage"

string

Gets the root span name that represents a run.

public const string RunActivityName = "agentprism.run"

string

Gets the monetary cost counter name per run.

public const string RunCostCounterName = "agentprism.run.cost"

string

Gets the completed-run counter name.

public const string RunCounterName = "agentprism.runs"

string

Gets the run-duration histogram name in seconds.

public const string RunDurationName = "agentprism.run.duration"

string

Gets the span name that represents a skill script execution.

public const string SkillScriptActivityName = "execute_skill_script"

string

Gets the tool name for skill script calls in metrics.

public const string SkillScriptToolName = "skill_script"

string

Gets the token counter name.

public const string TokenCounterName = "agentprism.tokens"

string

Gets the tool-invocation counter name.

public const string ToolCounterName = "agentprism.tool.invocations"

string

Gets the tool-call duration histogram name in seconds.

public const string ToolDurationName = "agentprism.tool.duration"

string