@@ -234,6 +234,7 @@ def list(
234234 order_by : Optional [str ] | Omit = omit ,
235235 order_direction : str | Omit = omit ,
236236 page_number : int | Omit = omit ,
237+ task_id : Optional [str ] | Omit = omit ,
237238 trace_id : Optional [str ] | Omit = omit ,
238239 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239240 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -243,7 +244,7 @@ def list(
243244 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
244245 ) -> SpanListResponse :
245246 """
246- List all spans for a given trace ID
247+ List spans, optionally filtered by trace_id and/or task_id
247248
248249 Args:
249250 extra_headers: Send extra headers
@@ -267,6 +268,7 @@ def list(
267268 "order_by" : order_by ,
268269 "order_direction" : order_direction ,
269270 "page_number" : page_number ,
271+ "task_id" : task_id ,
270272 "trace_id" : trace_id ,
271273 },
272274 span_list_params .SpanListParams ,
@@ -485,6 +487,7 @@ async def list(
485487 order_by : Optional [str ] | Omit = omit ,
486488 order_direction : str | Omit = omit ,
487489 page_number : int | Omit = omit ,
490+ task_id : Optional [str ] | Omit = omit ,
488491 trace_id : Optional [str ] | Omit = omit ,
489492 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
490493 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -494,7 +497,7 @@ async def list(
494497 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
495498 ) -> SpanListResponse :
496499 """
497- List all spans for a given trace ID
500+ List spans, optionally filtered by trace_id and/or task_id
498501
499502 Args:
500503 extra_headers: Send extra headers
@@ -518,6 +521,7 @@ async def list(
518521 "order_by" : order_by ,
519522 "order_direction" : order_direction ,
520523 "page_number" : page_number ,
524+ "task_id" : task_id ,
521525 "trace_id" : trace_id ,
522526 },
523527 span_list_params .SpanListParams ,
0 commit comments