mistralM

Docs

Beta Observability Spans

API Observability (bêta) - spans.

POST /v1/observability/spans/search

Rechercher des spans

Rechercher des spans

Parameters

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

Exemple de requête

{}

Corps de la requête

search_expression
string | null

Responses

Réponse réussie

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

Valeur par défaut : ""

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

POST /v1/observability/spans/aggregate

Agréger des spans

Agréger des spans

Parameters

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

Exemple de requête

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

Corps de la requête

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

Valeur par défaut : 1000

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

Valeur par défaut : "asc"

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

Responses

Réponse réussie

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

POST /v1/observability/spans/evaluations/aggregate

Agréger les évaluations de spans

Agréger les évaluations de spans

Parameters

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

Exemple de requête

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

Corps de la requête

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

Valeur par défaut : 1000

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

Valeur par défaut : "asc"

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

Responses

Réponse réussie

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

POST /v1/observability/spans/evaluations/search

Rechercher des évaluations de spans

Rechercher des évaluations de spans

Parameters

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

Exemple de requête

{}

Corps de la requête

search_expression
string | null

Responses

Réponse réussie

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

Valeur par défaut : ""

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

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

Rechercher les dernières évaluations de spans

Rechercher les dernières évaluations de spans

Parameters

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

Exemple de requête

{}

Corps de la requête

search_expression
string | null

Responses

Réponse réussie

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

Valeur par défaut : ""

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

POST /v1/observability/pipeline-results/search

Rechercher des résultats de pipeline

Rechercher des résultats de pipeline

Parameters

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

Exemple de requête

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

Corps de la requête

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

Responses

Réponse réussie

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

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

Obtenir les définitions des champs de résultats de pipeline

Obtenir les définitions des champs de résultats de pipeline

Parameters

pipeline_id
stringpath* obligatoire

Responses

Réponse réussie

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

Clé d’attribut OpenTelemetry brute dont ce champ est issu, qu’il s’agisse d’un attribut de span (par ex. gen_ai.request.model pour request_model) ou d’un attribut de ressource (par ex. service.name pour service_name). None lorsque le champ est un champ OTLP natif (comme span_name ou trace_id) ou une map d’attributs imbriquée (comme span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* obligatoire
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">* obligatoire
type
string

Valeur par défaut : "ENUM"

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

Clé d’attribut OpenTelemetry brute dont ce champ est issu, qu’il s’agisse d’un attribut de span (par ex. gen_ai.request.model pour request_model) ou d’un attribut de ressource (par ex. service.name pour service_name). None lorsque le champ est un champ OTLP natif (comme span_name ou trace_id) ou une map d’attributs imbriquée (comme span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* obligatoire
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">* obligatoire
type
string

Valeur par défaut : "FLOAT"

GET /v1/observability/spans/fields

Obtenir les définitions des champs de spans

Obtenir les définitions des champs de spans

Responses

Réponse réussie

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

Clé d’attribut OpenTelemetry brute dont ce champ est issu, qu’il s’agisse d’un attribut de span (par ex. gen_ai.request.model pour request_model) ou d’un attribut de ressource (par ex. service.name pour service_name). None lorsque le champ est un champ OTLP natif (comme span_name ou trace_id) ou une map d’attributs imbriquée (comme span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* obligatoire
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">* obligatoire
type
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* obligatoire

GET /v1/observability/spans/evaluations/fields

Obtenir les définitions des champs d’évaluation de spans

Obtenir les définitions des champs d’évaluation de spans

Responses

Réponse réussie

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

Clé d’attribut OpenTelemetry brute dont ce champ est issu, qu’il s’agisse d’un attribut de span (par ex. gen_ai.request.model pour request_model) ou d’un attribut de ressource (par ex. service.name pour service_name). None lorsque le champ est un champ OTLP natif (comme span_name ou trace_id) ou une map d’attributs imbriquée (comme span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* obligatoire
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">* obligatoire
type
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* obligatoire

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

Obtenir les options d’un champ de span

Obtenir les options d’un champ de span

Parameters

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

Responses

Réponse réussie

options
array<string> | null* obligatoire

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

Obtenir les options d’un champ d’évaluation de span

Obtenir les options d’un champ d’évaluation de span

Parameters

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

Responses

Réponse réussie

options
array<string> | null* obligatoire