Skip to content

Commit 4c8d795

Browse files
authored
fix(spans): Get spans params (#121)
1 parent aa926ff commit 4c8d795

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

api-reference/warehouse/get_spans.mdx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ Retrieve spans from the data warehouse with flexible filtering and pagination op
1919
List of environment project IDs to filter by.
2020
</ParamField>
2121

22-
<ParamField query="fromTimestampSec" type="int64" required>
22+
<ParamField query="from_timestamp_sec" type="int64" required>
2323
Start time in Unix seconds timestamp.
2424
</ParamField>
2525

26-
<ParamField query="toTimestampSec" type="int64" required>
26+
<ParamField query="to_timestamp_sec" type="int64" required>
2727
End time in Unix seconds timestamp.
2828
</ParamField>
2929

30-
<ParamField query="workflowName" type="string">
30+
<ParamField query="workflow" type="string">
3131
Filter spans by workflow name.
3232
</ParamField>
3333

3434
<ParamField query="attributes" type="map[string]string">
3535
Key-value pairs of attributes to filter by.
3636
</ParamField>
3737

38-
<ParamField query="spanName" type="string">
38+
<ParamField query="span_name" type="string">
3939
Filter spans by span name.
4040
</ParamField>
4141

42-
<ParamField query="sortOrder" type="string">
42+
<ParamField query="sort_order" type="string">
4343
Sort order for results. Accepted values: `asc` or `desc`.
4444
</ParamField>
4545

@@ -61,14 +61,12 @@ Retrieve spans from the data warehouse with flexible filtering and pagination op
6161
</ParamField>
6262

6363
<ParamField query="filters" type="FilterCondition[]">
64-
Array of filter conditions to apply to the query.
65-
</ParamField>
64+
Array of filter conditions to apply to the query. Each filter should have `id`, `value`, and `operator` fields. Filters must be URL-encoded.
6665

67-
<ParamField query="logicalOperator" type="string">
68-
Logical operator to apply between filter conditions. Accepted values: `AND` or
69-
`OR`.
66+
Supported operators: `equals`, `not_equals`, `greater_than`, `less_than`, `exists`, `not_exists`, `contains`, `starts_with`
7067
</ParamField>
7168

69+
7270
## Response
7371

7472
Returns an array of Span objects:
@@ -101,7 +99,7 @@ Returns an array of Span objects:
10199
The trace state information.
102100
</ResponseField>
103101

104-
<ResponseField name="spanName" type="string">
102+
<ResponseField name="span_name" type="string">
105103
The name of the span.
106104
</ResponseField>
107105

0 commit comments

Comments
 (0)