Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Manually evaluate traces

POST/v1/private/manual-evaluation/tracesManually evaluate traces

Manually trigger evaluation rules on selected traces. Bypasses sampling and enqueues all specified traces for evaluation.

Request body

application/json
objectManualEvaluationRequest
entity_idsarray of string · uuidrequired

List of entity IDs (trace IDs or thread IDs) to evaluate

minItems 1

Show child attributes

minItems 1

entity_typestringrequired

Type of entity to evaluate (trace or thread)

one of "trace", "thread", "span"

project_idstring · uuidrequired

Project ID

rule_idsarray of string · uuidrequired

List of automation rule IDs to apply

minItems 1

Show child attributes

minItems 1

Example request
{
  "entity_ids": [
    "550e8400-e29b-41d4-a716-446655440000",
    "550e8400-e29b-41d4-a716-446655440001"
  ],
  "entity_type": "trace",
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "rule_ids": [
    "660e8400-e29b-41d4-a716-446655440000"
  ]
}

Responses

202Accepted - Evaluation request queued successfullyapplication/json
objectManualEvaluationResponse
entities_queuedinteger · int32

Number of entities queued for evaluation

rules_appliedinteger · int32

Number of rules that will be applied

Example response
{
  "entities_queued": 5,
  "rules_applied": 2
}
400Bad Request - Invalid request or missing automation rulesapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
404Not Found - Project not foundapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu