Skip to content

Commit d8ef129

Browse files
committed
docs: get spans
1 parent 6655a9f commit d8ef129

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

api-reference/dwh/get_spans.mdx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Get Spans"
3+
api: "GET https://api.traceloop.com/api/v2/warehouse/spans"
4+
---
5+
6+
Get raw spans from the traceloop's datawarehouse, filtered by specific attributes.
7+
8+
9+
## Request Parameters
10+
11+
<ParamField query="from_timestamp" type="int64">
12+
From timestamp in milliseconds.
13+
</ParamField>
14+
15+
<ParamField query="limit" type="int">
16+
Maximum number of results to return. Default is 50, maximum is 1000.
17+
</ParamField>
18+
19+
<ParamField query="cursor" type="int">
20+
Pagination cursor. Default is 0.
21+
</ParamField>
22+
23+
<ParamField query="workflow" type="string">
24+
Filter spans by workflow name.
25+
</ParamField>
26+
27+
## Response
28+
29+
<ResponseField name="data" type="SpanDto[]">
30+
Array of span data objects.
31+
</ResponseField>
32+
33+
<ResponseField name="page_size" type="int">
34+
Number of items returned in the current page.
35+
</ResponseField>
36+
37+
<ResponseField name="total_results" type="int64">
38+
Total number of results available.
39+
</ResponseField>
40+
41+
<ResponseField name="next_cursor" type="string">
42+
Cursor for the next page of results.
43+
</ResponseField>

mint.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"group": "API Reference",
166166
"pages": ["api-reference/introduction"]
167167
},
168+
{
169+
"group": "Data Warehouse",
170+
"pages": ["api-reference/dwh/get_spans"]
171+
},
168172
{
169173
"group": "Tracing",
170174
"pages": [
@@ -182,9 +186,7 @@
182186
},
183187
{
184188
"group": "Costs",
185-
"pages": [
186-
"api-reference/costs/property_costs"
187-
]
189+
"pages": ["api-reference/costs/property_costs"]
188190
}
189191
],
190192
"redirects": [

0 commit comments

Comments
 (0)