MLflow traces
Start a trace V3
Start a trace with v3 enhancements.
POST
/
api
/
3.0
/
mlflow
/
traces
Start a trace V3
curl --request POST \
--url https://mycluster.domino.tech/api/3.0/mlflow/traces \
--header 'Content-Type: application/json' \
--data '{
"trace": {}
}'import requests
url = "https://mycluster.domino.tech/api/3.0/mlflow/traces"
payload = { "trace": {} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({trace: {}})
};
fetch('https://mycluster.domino.tech/api/3.0/mlflow/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/3.0/mlflow/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trace' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/3.0/mlflow/traces"
payload := strings.NewReader("{\n \"trace\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/3.0/mlflow/traces")
.header("Content-Type", "application/json")
.body("{\n \"trace\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/3.0/mlflow/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"trace\": {}\n}"
response = http.request(request)
puts response.read_body{
"trace": {
"trace_info": {
"trace_id": "<string>",
"trace_location": {
"type": "TRACE_LOCATION_TYPE_UNSPECIFIED",
"mlflow_experiment": {
"experiment_id": "<string>"
},
"inference_table": {
"full_table_name": "<string>"
}
},
"state": "TRACE_STATUS_UNSPECIFIED",
"client_request_id": "<string>",
"request": "{\"x\":1,\"y\":2}",
"response": "3",
"request_preview": "{\"x\":1,\"y\":2}",
"response_preview": "3",
"request_time": "2025-09-03T19:36:13.792Z",
"execution_duration": "0.052s",
"trace_metadata": {
"mlflow.source.name": "sdktest.py",
"mlflow.source.type": "LOCAL",
"mlflow.sourceRun": "5d7bf43a73704e109d3e468842737bd7",
"mlflow.trace.sizeBytes": "1309"
},
"assessments": [
{
"assessment_id": "assessment-67890-fghij",
"assessor_name": "quality_evaluator_v1",
"assessment_type": "QUALITY",
"score": 0.85,
"timestamp_ms": 1640995800000,
"max_score": 1,
"comments": "High quality response with accurate information",
"metadata": {}
}
],
"tags": {
"question_topic": "DBSQL",
"domino.prog.metric.metric": "1",
"domino.prog.label.label": "good"
}
}
}
}{
"error_code": "INTERNAL_ERROR",
"message": "<string>"
}Was this page helpful?
⌘I
Start a trace V3
curl --request POST \
--url https://mycluster.domino.tech/api/3.0/mlflow/traces \
--header 'Content-Type: application/json' \
--data '{
"trace": {}
}'import requests
url = "https://mycluster.domino.tech/api/3.0/mlflow/traces"
payload = { "trace": {} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({trace: {}})
};
fetch('https://mycluster.domino.tech/api/3.0/mlflow/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/3.0/mlflow/traces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trace' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/3.0/mlflow/traces"
payload := strings.NewReader("{\n \"trace\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/3.0/mlflow/traces")
.header("Content-Type", "application/json")
.body("{\n \"trace\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/3.0/mlflow/traces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"trace\": {}\n}"
response = http.request(request)
puts response.read_body{
"trace": {
"trace_info": {
"trace_id": "<string>",
"trace_location": {
"type": "TRACE_LOCATION_TYPE_UNSPECIFIED",
"mlflow_experiment": {
"experiment_id": "<string>"
},
"inference_table": {
"full_table_name": "<string>"
}
},
"state": "TRACE_STATUS_UNSPECIFIED",
"client_request_id": "<string>",
"request": "{\"x\":1,\"y\":2}",
"response": "3",
"request_preview": "{\"x\":1,\"y\":2}",
"response_preview": "3",
"request_time": "2025-09-03T19:36:13.792Z",
"execution_duration": "0.052s",
"trace_metadata": {
"mlflow.source.name": "sdktest.py",
"mlflow.source.type": "LOCAL",
"mlflow.sourceRun": "5d7bf43a73704e109d3e468842737bd7",
"mlflow.trace.sizeBytes": "1309"
},
"assessments": [
{
"assessment_id": "assessment-67890-fghij",
"assessor_name": "quality_evaluator_v1",
"assessment_type": "QUALITY",
"score": 0.85,
"timestamp_ms": 1640995800000,
"max_score": 1,
"comments": "High quality response with accurate information",
"metadata": {}
}
],
"tags": {
"question_topic": "DBSQL",
"domino.prog.metric.metric": "1",
"domino.prog.label.label": "good"
}
}
}
}{
"error_code": "INTERNAL_ERROR",
"message": "<string>"
}