Class EmbeddingModelMeterObservationHandler
java.lang.Object
org.springframework.ai.embedding.observation.EmbeddingModelMeterObservationHandler
- All Implemented Interfaces:
io.micrometer.observation.ObservationHandler<EmbeddingModelObservationContext>
public class EmbeddingModelMeterObservationHandler
extends Object
implements io.micrometer.observation.ObservationHandler<EmbeddingModelObservationContext>
Handler for generating metrics from embedding model observations.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.observation.ObservationHandler
io.micrometer.observation.ObservationHandler.AllMatchingCompositeObservationHandler, io.micrometer.observation.ObservationHandler.CompositeObservationHandler, io.micrometer.observation.ObservationHandler.FirstMatchingCompositeObservationHandler
-
Constructor Summary
ConstructorDescriptionEmbeddingModelMeterObservationHandler
(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onStop
(EmbeddingModelObservationContext context) boolean
supportsContext
(io.micrometer.observation.Observation.Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.observation.ObservationHandler
onError, onEvent, onScopeClosed, onScopeOpened, onScopeReset, onStart
-
Constructor Details
-
EmbeddingModelMeterObservationHandler
public EmbeddingModelMeterObservationHandler(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
onStop
- Specified by:
onStop
in interfaceio.micrometer.observation.ObservationHandler<EmbeddingModelObservationContext>
-
supportsContext
public boolean supportsContext(io.micrometer.observation.Observation.Context context) - Specified by:
supportsContext
in interfaceio.micrometer.observation.ObservationHandler<EmbeddingModelObservationContext>
-