Read-only HTTP API for accessing AgentOps trace and span data
trace_id
(path, required): The unique identifier of the tracetrace_id
: Unique trace identifierproject_id
: Associated project IDtags
: Array of tags associated with the tracespans
: Array of span summaries within the tracespan_count
: Total number of spans in the tracesuccess_count
/fail_count
/indeterminate_count
: Status breakdown*_tokens
: Token usage breakdown by type*_cost
: Cost calculations in USDspan_id
(path, required): The unique identifier of the spanattributes
: Core span data (LLM calls, tool usage, etc.)resource_attributes
: Service and infrastructure metadataspan_attributes
: Custom attributes set by your applicationmcp_config.json
):
Python-based configuration:
auth
api_key
(string) - Your AgentOps project API keyget_project
get_trace
trace_id
(string) - The trace identifierget_trace_metrics
trace_id
(string) - The trace identifierget_span
span_id
(string) - The span identifierget_span_metrics
span_id
(string) - The span identifierAGENTOPS_API_KEY
: Your AgentOps project API keyHOST
: API endpoint (defaults to https://api.agentops.ai
)