Log Outputs
Last updated
Last updated
Copyright © 2023 Arize AI, Inc
Most auto-instrumentors automatically populate the output field without requiring manual logging. This section reviews manual instrumentation of output.
In the tracing tab, our table view looks for the span attributes "output.value"
(or SpanAttributes.OUTPUT_VALUE
or SemanticConventions.OUTPUT_VALUE
) for to populate the Output column.
When viewing a single span, there are two output fields that are highlighted. Output messages are captured by the SpanAttributes.LLM_OUTPUT_MESSAGES
key. This enables you to view the full message returned.
This example code shows how you can log outputs as well. This follows a similar convention to input logging: