Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
MentorTelemetry class
The MentorTelemetry class of Novior.MentorAgent.Observability: MentorAgent's OpenTelemetry MentorTelemetry.ActivitySource and MentorTelemetry.Meter (roadmap…
On this page
MentorAgent's OpenTelemetry MentorTelemetry.ActivitySource and MentorTelemetry.Meter (roadmap #8), created from MentorOptions.ObservabilitySourceName. Registered only when EnableObservability is on; the host subscribes with .AddSource(name).AddMeter(name) and an exporter (App Insights / Aspire / OTLP). The chat client and embedding generator emit standard GenAI-convention spans/metrics via UseOpenTelemetry(); these instruments add MentorAgent-level turn/tool/error spans and counters on top.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Observability. Package: Novior.MentorAgent.
public sealed class MentorTelemetry : IDisposable
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorTelemetry(string sourceName)
Properties
Section titled “Properties”ActivitySource
Section titled “ActivitySource”public ActivitySource ActivitySource { get; }
Errors
Section titled “Errors”public Counter<long> Errors { get; }
GuardrailBlocks
Section titled “GuardrailBlocks”public Counter<long> GuardrailBlocks { get; }
public Meter Meter { get; }
ToolCalls
Section titled “ToolCalls”public Counter<long> ToolCalls { get; }
public Counter<long> Turns { get; }
Methods
Section titled “Methods”Dispose
Section titled “Dispose”public void Dispose()
StartActivity
Section titled “StartActivity”public Activity? StartActivity(string name)
Starts a MentorAgent span, or returns null when nobody is listening.
