Class DefaultImageModelObservationConvention
java.lang.Object
org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ImageModelObservationContext>
,ImageModelObservationConvention
public class DefaultImageModelObservationConvention
extends Object
implements ImageModelObservationConvention
Default conventions to populate observations for image model operations.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
protected io.micrometer.common.KeyValue
aiProvider
(ImageModelObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValues
requestImageFormat
(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context) protected io.micrometer.common.KeyValues
requestImageSize
(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context) protected io.micrometer.common.KeyValues
requestImageStyle
(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context) protected io.micrometer.common.KeyValue
requestModel
(ImageModelObservationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.image.observation.ImageModelObservationConvention
supportsContext
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
DefaultImageModelObservationConvention
public DefaultImageModelObservationConvention()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ImageModelObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ImageModelObservationContext>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(ImageModelObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ImageModelObservationContext>
-
aiOperationType
-
aiProvider
-
requestModel
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(ImageModelObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ImageModelObservationContext>
-
requestImageFormat
protected io.micrometer.common.KeyValues requestImageFormat(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context) -
requestImageSize
protected io.micrometer.common.KeyValues requestImageSize(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context) -
requestImageStyle
protected io.micrometer.common.KeyValues requestImageStyle(io.micrometer.common.KeyValues keyValues, ImageModelObservationContext context)
-