beta.observability.traces

Get trace by id

Get trace by id

get/v1/observability/traces/{trace_id}

Path parameters

trace_idstring required

Response

Successful Response

customer_idstring required
organization_idstring required
workspace_idstring required
user_idstring required
trace_idstring required
root_span_idstring required
root_span_namestring required
start_timestring date-time required
end_timestring date-time required
duration_nsinteger required
service_namestring required
environmentstring required
conversation_idstring required
workflow_namestring required
agent_idstring required
agent_namestring required
status_code'Error' | 'Unset' required
error_countinteger required
span_countinteger required
gen_ai_span_countinteger required
llm_call_countinteger required
tool_call_countinteger required
retrieval_countinteger required
evaluation_countinteger required
input_tokensinteger required
output_tokensinteger required
cache_read_input_tokensinteger required
cache_creation_input_tokensinteger required
models_usedstring[] required
tools_usedstring[] required
first_turn_last_input_messagestring required
first_turn_last_output_messagestring required
last_turn_last_input_messagestring required
last_turn_last_output_messagestring required

Changes

Changed in 1 of the 3 revisions of this API.5

    • added the new OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS enum value to the detail/error_code/anyOf[subschema #1: ObservabilityErrorCode]/ response property for the response status 400

      response-property-enum-value-added

    • added the new OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS enum value to the detail/error_code/anyOf[subschema #1: ObservabilityErrorCode]/ response property for the response status 404

      response-property-enum-value-added

    • added the new OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS enum value to the detail/error_code/anyOf[subschema #1: ObservabilityErrorCode]/ response property for the response status 408

      response-property-enum-value-added

    • added the new OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS enum value to the detail/error_code/anyOf[subschema #1: ObservabilityErrorCode]/ response property for the response status 409

      response-property-enum-value-added

    • added the new OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS enum value to the detail/error_code/anyOf[subschema #1: ObservabilityErrorCode]/ response property for the response status 422

      response-property-enum-value-added

    This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog