Class LMKitTelemetry
OpenTelemetry identifiers for LM-Kit instrumentation. Use these constants when configuring your OpenTelemetry pipeline (e.g., AddSource/AddMeter).
public static class LMKitTelemetry
- Inheritance
-
LMKitTelemetry
- Inherited Members
Fields
- ActivitySourceName
The ActivitySource name used by LM-Kit for GenAI spans.
- InstrumentationVersion
LM-Kit instrumentation version emitted on spans/metrics.
- OperationEmbeddings
GenAI operation name for embeddings.
- OperationExecuteTool
GenAI operation name for tool execution.
- OperationInvokeAgent
GenAI operation name for agent invocation.
- OperationTextCompletion
GenAI operation name for text completion.
- ProviderName
GenAI provider name used in telemetry.
- TokenTypeInput
Token type for input tokens.
- TokenTypeOutput
Token type for output tokens.
Methods
- EnsureInstrumentsCreated()
Forces eager creation of the LM-Kit Meter and its instruments. Call this once at host startup (e.g. before the first HTTP request is served) so observability consumers using MeterListener see the full instrument catalog immediately instead of only after the first inference. Calling this repeatedly is safe; the instruments are created exactly once.