GEThttp://localhost:5173/api/v1/private/spans
Query Parameters
View in API Reference
Request
1// Get spans by project_name or project_id and optionally by trace_id and/or type (GET /v1/private/spans)
2const response = await fetch("http://localhost:5173/api/v1/private/spans", {
3 method: "GET",
4 headers: {},
5});
6
7const body = await response.json();
8console.log(body);
Response