# Path parameters
export experiment_id="3fd6b5e0-8910-4b1c-a7d0-5b84de329012"
# Curl command
curl -X POST "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/llm-obs/v1/experiments/${experiment_id}/events" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d @- << EOF
{
"data": {
"attributes": {
"metrics": [
{
"label": "faithfulness",
"metric_type": "score",
"span_id": "span-7a1b2c3d",
"timestamp_ms": 1705314600000
}
],
"spans": [
{
"dataset_id": "9f64e5c7-dc5a-45c8-a17c-1b85f0bec97d",
"duration": 1500000000,
"name": "llm_call",
"project_id": "a33671aa-24fd-4dcd-9b33-a8ec7dde7751",
"span_id": "span-7a1b2c3d",
"start_ns": 1705314600000000000,
"status": "ok",
"trace_id": "abc123def456"
}
]
},
"type": "events"
}
}
EOF