Class ObservationChatModelListener

java.lang.Object
dev.langchain4j.observation.listener.ObservationChatModelListener
All Implemented Interfaces:
ChatModelListener

@Experimental public class ObservationChatModelListener extends Object implements ChatModelListener
Will use observations and micrometer metrics to generate telemetry based on the ChatModelListener lifecycle.

Observations will handle request durations and tracing. Observation lifecycle and context management is handled here.

There is a Micrometer DistributionSummary responsible to record token usage.