Class DefaultChatModelConvention
java.lang.Object
convention.DefaultChatModelConvention
- All Implemented Interfaces:
ChatModelConvention, io.micrometer.observation.KeyValuesConvention, io.micrometer.observation.ObservationConvention<ChatModelObservationContext>
This will decide how attributes will be extracted based on context data.
-
Field Summary
FieldsFields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringWill produce the span name according to gen-ai span name semantic conventions from OpenTelemetry.io.micrometer.common.KeyValuesio.micrometer.common.KeyValues@Nullable StringgetName()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChatModelConvention
supportsContext
-
Field Details
-
OPERATION_VALUE_CHAT
- See Also:
-
-
Constructor Details
-
DefaultChatModelConvention
public DefaultChatModelConvention()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.micrometer.observation.ObservationConvention<ChatModelObservationContext>
-
getContextualName
Will produce the span name according to gen-ai span name semantic conventions from OpenTelemetry.- Specified by:
getContextualNamein interfaceio.micrometer.observation.ObservationConvention<ChatModelObservationContext>- Parameters:
context- theChatModelObservationContext- Returns:
- The contextual name
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(ChatModelObservationContext context) - Specified by:
getLowCardinalityKeyValuesin interfaceio.micrometer.observation.ObservationConvention<ChatModelObservationContext>
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(ChatModelObservationContext context) - Specified by:
getHighCardinalityKeyValuesin interfaceio.micrometer.observation.ObservationConvention<ChatModelObservationContext>
-