File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" : [
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" : [
You can’t perform that action at this time.
0 commit comments