Skip to content
Get started

List distinct service names visible to the caller

traces.list_services(TraceListServicesParams**kwargs) -> TraceListServicesResponse
GET/api/traces/services/

The single trace-data viewset — one Span table, two read shapes.

ParametersExpand Collapse
agent: Optional[str]
formatuuid
duration_ns_gte: Optional[int]
duration_ns_lte: Optional[int]
has_error: Optional[bool]
iteration: Optional[str]
formatuuid
job: Optional[str]
formatuuid
kind: Optional[int]
max_duration_ms: Optional[float]
min_duration_ms: Optional[float]
name: Optional[str]
operation: Optional[str]
ordering: Optional[str]

Which field to use when ordering the results.

page: Optional[int]

A page number within the paginated result set.

project: Optional[str]
formatuuid
received_at_gte: Optional[Union[str, datetime]]
formatdate-time
received_at_lte: Optional[Union[str, datetime]]
formatdate-time
service_name: Optional[str]
service_name_in: Optional[SequenceNotStr[str]]

Multiple values may be separated by commas.

span_id: Optional[str]
span_type: Optional[Literal["llm_call", "tool_call"]]
  • llm_call - Llm Call
  • tool_call - Tool Call
Accepts one of the following:
"llm_call"
"tool_call"
start_time_ns_gte: Optional[int]
start_time_ns_lte: Optional[int]
status_code: Optional[int]
trace_id: Optional[str]
ReturnsExpand Collapse
class TraceListServicesResponse:
count: int
results: List[str]
List distinct service names visible to the caller
from overmind_lab import OvermindLab

client = OvermindLab()
response = client.traces.list_services()
print(response.count)
{
  "count": 123,
  "results": [
    "string"
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}
Returns Examples
{
  "count": 123,
  "results": [
    "string"
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}