OpenTelemetryObserver

constructor(openTelemetry: OpenTelemetry = GlobalOpenTelemetry.get(), recordContent: Boolean = false, maxContentLength: Int = ConversationAttributes.DEFAULT_MAX_LENGTH)

Parameters

openTelemetry

where the spans go. The default is the instance that the OpenTelemetry Java agent or GlobalOpenTelemetry.set registered, which records nothing when there is none.

recordContent

records the messages of each model call and the input and result of each tool call. Off by default, because they can hold personal data.

maxContentLength

the most characters of each text that recordContent records.