mistralM

Docs

sideBar

Beta Observability Spans

(beta) Observability API - spans.

POST /v1/observability/spans/search

Search spans

Search spans

Parameters

from
date-time | nullquery
to
date-time | nullquery
page_size
integerquery
cursor
string | nullquery

Request Example

{}

Request Body

search_expression
string | null

Responses

Successful Response

spans
FeedResultGetSpan* required
FeedResultGetSpan
cursor
string | null
next
string | null
results
array<GetSpan>
GetSpan
agent_description
string* required
agent_id
string* required
agent_name
string* required
agent_version
string* required
conversation_id
string* required
customer_id
string* required
data_source_id
string* required
duration_ns
integer* required
end_time
date-time* required
error_type
string* required
input_messages
string* required
operation_name
string* required
organization_id
string* required
output_messages
string* required
output_type
string* required
parent_span_id
string* required
prompt_name
string* required
provider_name
string* required
request_choice_count
integer* required
request_encoding_formats
array<string>* required
request_frequency_penalty
number | null* required
request_max_tokens
integer* required
request_model
string* required
request_presence_penalty
number | null* required
request_seed
integer* required
request_stop_sequences
array<string>* required
request_temperature
number | null* required
request_top_k
number | null* required
request_top_p
number | null* required
resource_attributes
map<string>* required
response_finish_reasons
array<string>* required
response_id
string* required
response_model
string* required
scope_name
string* required
scope_version
string* required
service_account_id
string

Default Value: ""

service_name
string* required
span_attributes
map<string>* required
span_id
stringPattern: ^[0-9a-f]{16}$* required
span_kind
string* required
span_name
string* required
start_time
date-time* required
status_code
"Error" | "Ok" | "Unset"* required
status_message
string* required
system_instructions
string* required
tool_call_arguments
string* required
tool_call_id
string* required
tool_call_result
string* required
tool_definitions
string* required
tool_name
string* required
tool_type
string* required
trace_id
stringPattern: ^[0-9a-f]{32}$* required
trace_state
string* required
usage_cache_creation_input_tokens
integer* required
usage_cache_read_input_tokens
integer* required
usage_input_tokens
integer* required
usage_output_tokens
integer* required
user_id
string* required
workflow_name
string* required
workspace_id
string* required

POST /v1/observability/spans/aggregate

Aggregate spans

Aggregate spans

Parameters

from
date-time | nullquery
to
date-time | nullquery

Request Example

{
  "metric": {
    "aggregation": "count",
    "measure": "ipsum eiusmod"
  }
}

Request Body

dimensions
array<string>
limit
integerMin: 1Max: 10000

Default Value: 1000

metric
MetricDefinition* required
MetricDefinition
aggregation
"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99"* required
measure
string* required
order_by
array<OrderByClause> | null
OrderByClause
direction
"asc" | "desc"

Default Value: "asc"

field
string* required
search_expression
string | null
time_dimension
TimeDimension | null
TimeDimension
granularity
"auto" | "second" | "minute" | "hour" | "day" | "week" | "month"

Responses

Successful Response

data
array<AggregationRow>* required
AggregationRow
dimensions
map<any>
metric_name
string* required
metric_value
number | integer | date-time | null
time_bucket
date-time | null
meta
AggregationMeta* required
AggregationMeta
from_timestamp
date-time* required
granularity_seconds
integer | null
to_timestamp
date-time* required

POST /v1/observability/spans/evaluations/aggregate

Aggregate span evaluations

Aggregate span evaluations

Parameters

from
date-time | nullquery
to
date-time | nullquery

Request Example

{
  "metric": {
    "aggregation": "count",
    "measure": "ipsum eiusmod"
  }
}

Request Body

dimensions
array<string>
limit
integerMin: 1Max: 10000

Default Value: 1000

metric
MetricDefinition* required
MetricDefinition
aggregation
"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99"* required
measure
string* required
order_by
array<OrderByClause> | null
OrderByClause
direction
"asc" | "desc"

Default Value: "asc"

field
string* required
search_expression
string | null
time_dimension
TimeDimension | null
TimeDimension
granularity
"auto" | "second" | "minute" | "hour" | "day" | "week" | "month"

Responses

Successful Response

data
array<AggregationRow>* required
AggregationRow
dimensions
map<any>
metric_name
string* required
metric_value
number | integer | date-time | null
time_bucket
date-time | null
meta
AggregationMeta* required
AggregationMeta
from_timestamp
date-time* required
granularity_seconds
integer | null
to_timestamp
date-time* required

POST /v1/observability/spans/evaluations/search

Search span evaluations

Search span evaluations

Parameters

from
date-time | nullquery
to
date-time | nullquery
page_size
integerquery
cursor
string | nullquery

Request Example

{}

Request Body

search_expression
string | null

Responses

Successful Response

span_evaluations
FeedResultGetSpanEvaluation* required
FeedResultGetSpanEvaluation
cursor
string | null
next
string | null
results
array<GetSpanEvaluation>
GetSpanEvaluation
conversation_id
string* required
customer_id
string* required
evaluation_name
string* required
explanation
string* required
metadata
map<string>* required
organization_id
string* required
response_id
string* required
score_label
string* required
score_value
number* required
service_account_id
string

Default Value: ""

span_id
stringPattern: ^[0-9a-f]{16}$* required
timestamp
date-time* required
trace_id
stringPattern: ^[0-9a-f]{32}$* required
user_id
string* required
workspace_id
string* required

POST /v1/observability/spans/evaluations/search/latest

Search latest span evaluations

Search latest span evaluations

Parameters

from
date-time | nullquery
to
date-time | nullquery
page_size
integerquery
cursor
string | nullquery

Request Example

{}

Request Body

search_expression
string | null

Responses

Successful Response

span_evaluations
FeedResultGetSpanEvaluation* required
FeedResultGetSpanEvaluation
cursor
string | null
next
string | null
results
array<GetSpanEvaluation>
GetSpanEvaluation
conversation_id
string* required
customer_id
string* required
evaluation_name
string* required
explanation
string* required
metadata
map<string>* required
organization_id
string* required
response_id
string* required
score_label
string* required
score_value
number* required
service_account_id
string

Default Value: ""

span_id
stringPattern: ^[0-9a-f]{16}$* required
timestamp
date-time* required
trace_id
stringPattern: ^[0-9a-f]{32}$* required
user_id
string* required
workspace_id
string* required

POST /v1/observability/pipeline-results/search

Search pipeline results

Search pipeline results

Parameters

from
date-time | nullquery
to
date-time | nullquery
page_size
integerquery
cursor
string | nullquery

Request Example

{
  "pipeline_config_slugs": [
    "ipsum eiusmod"
  ]
}

Request Body

pipeline_config_slugs
array<string>Min Items: 1Max Items: 100* required
search_expression
string | null

Responses

Successful Response

pipeline_results
FeedResultGetPipelineResult* required
FeedResultGetPipelineResult
cursor
string | null
next
string | null
results
array<PipelineResult>
PipelineResult
duration_ns
integer* required
evaluated_at
date-time* required
judge_explanations
map<string>* required
judge_labels
map<string>* required
judge_scores
map<number>* required
operation_name
string* required
span_id
stringPattern: ^[0-9a-f]{16}$* required
span_name
string* required
tool_name
string* required
trace_id
stringPattern: ^[0-9a-f]{32}$* required

GET /v1/observability/pipelines/{pipeline_id}/results/fields

Get pipeline result field definitions

Get pipeline result field definitions

Parameters

pipeline_id
stringpath* required

Responses

Successful Response

field_definitions
array<OtelEnumFieldDefinition | OtelFloatFieldDefinition>* required
OtelEnumFieldDefinition
constraints
EnumConstraints | null
EnumConstraints
options
array<string> | null
group
string | null
label
string* required
name
string* required
source_attribute_key
string | null

Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. gen_ai.request.model for request_model) or a resource attribute (e.g. service.name for service_name). None when the field is a native OTLP field (like span_name or trace_id) or a nested attribute map (like span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* required
supported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* required
type
string

Default Value: "ENUM"

OtelFloatFieldDefinition
constraints
FloatConstraints | null
FloatConstraints
max
number | null
min
number | null
group
string | null
label
string* required
name
string* required
source_attribute_key
string | null

Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. gen_ai.request.model for request_model) or a resource attribute (e.g. service.name for service_name). None when the field is a native OTLP field (like span_name or trace_id) or a nested attribute map (like span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* required
supported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* required
type
string

Default Value: "FLOAT"

GET /v1/observability/spans/fields

Get span field definitions

Get span field definitions

Responses

Successful Response

field_definitions
array<OtelFieldDefinition>* required
OtelFieldDefinition
group
string | null
label
string* required
name
string* required
source_attribute_key
string | null

Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. gen_ai.request.model for request_model) or a resource attribute (e.g. service.name for service_name). None when the field is a native OTLP field (like span_name or trace_id) or a nested attribute map (like span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* required
supported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* required
type
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* required

GET /v1/observability/spans/evaluations/fields

Get span evaluation field definitions

Get span evaluation field definitions

Responses

Successful Response

field_definitions
array<OtelFieldDefinition>* required
OtelFieldDefinition
group
string | null
label
string* required
name
string* required
source_attribute_key
string | null

Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. gen_ai.request.model for request_model) or a resource attribute (e.g. service.name for service_name). None when the field is a native OTLP field (like span_name or trace_id) or a nested attribute map (like span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* required
supported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* required
type
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* required

GET /v1/observability/spans/fields/{field_name}/options

Get options for a span field

Get options for a span field

Parameters

field_name
stringpath* required
from
date-time | nullquery
to
date-time | nullquery

Responses

Successful Response

options
array<string> | null* required

GET /v1/observability/spans/evaluations/fields/{field_name}/options

Get options for a span evaluation field

Get options for a span evaluation field

Parameters

field_name
stringpath* required
from
date-time | nullquery
to
date-time | nullquery

Responses

Successful Response

options
array<string> | null* required