Class MotivTelemetry
- Namespace
- Motiv.Diagnostics
- Assembly
- Motiv.dll
Owns Motiv's OpenTelemetry primitives. Nothing is emitted unless a listener subscribes to the
Motiv activity source or meter, so instrumentation is inert by default.
public static class MotivTelemetry
- Inheritance
-
MotivTelemetry
- Inherited Members
Remarks
Subscribe with SourceName and MeterName rather than string literals — a mistyped name is not an error, it is silence.
builder.Services.AddOpenTelemetry()
.WithTracing(tracing => tracing.AddSource(MotivTelemetry.SourceName))
.WithMetrics(metrics => metrics.AddMeter(MotivTelemetry.MeterName));
Fields
MeterName
The name of Motiv's meter. Pass this to AddMeter to receive Motiv's evaluation metrics.
public const string MeterName = "Motiv"
Field Value
SourceName
The name of Motiv's activity source. Pass this to AddSource to receive Motiv's evaluation spans.
public const string SourceName = "Motiv"
Field Value
Properties
ExplanationDetail
Controls how much explanation text is attached to evaluation spans — the motiv.reason and
motiv.assertions tags. Defaults to Full for
backward compatibility; set it to None in deployments
where assertion text may embed data from the evaluated model. Applies process-wide, so set it once
at startup. See ExplanationDetail for the privacy and cost implications.
public static ExplanationDetail ExplanationDetail { get; set; }