Class DefaultChatClientObservationConvention
java.lang.Object
org.springframework.ai.chat.client.observation.DefaultChatClientObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ChatClientObservationContext>
,ChatClientObservationConvention
public class DefaultChatClientObservationConvention
extends Object
implements ChatClientObservationConvention
Default conventions to populate observations for chat client workflows.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
protected io.micrometer.common.KeyValue
aiProvider
(ChatClientObservationContext context) protected io.micrometer.common.KeyValues
chatClientAdvisorNames
(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) protected io.micrometer.common.KeyValues
chatClientAdvisorParams
(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
protected io.micrometer.common.KeyValue
stream
(ChatClientObservationContext context) protected io.micrometer.common.KeyValues
toolFunctionCallbacks
(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) protected io.micrometer.common.KeyValues
toolFunctionNames
(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext 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.chat.client.observation.ChatClientObservationConvention
supportsContext
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
DefaultChatClientObservationConvention
public DefaultChatClientObservationConvention() -
DefaultChatClientObservationConvention
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ChatClientObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ChatClientObservationContext>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(ChatClientObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ChatClientObservationContext>
-
aiOperationType
-
aiProvider
-
springAiKind
protected io.micrometer.common.KeyValue springAiKind() -
stream
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(ChatClientObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ChatClientObservationContext>
-
chatClientAdvisorNames
protected io.micrometer.common.KeyValues chatClientAdvisorNames(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) -
chatClientAdvisorParams
protected io.micrometer.common.KeyValues chatClientAdvisorParams(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) -
toolFunctionNames
protected io.micrometer.common.KeyValues toolFunctionNames(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context) -
toolFunctionCallbacks
protected io.micrometer.common.KeyValues toolFunctionCallbacks(io.micrometer.common.KeyValues keyValues, ChatClientObservationContext context)
-