@@ -68,6 +68,7 @@ def list(
6868 limit : typing .Optional [int ] = None ,
6969 user_id : typing .Optional [str ] = None ,
7070 name : typing .Optional [str ] = None ,
71+ tags : typing .Optional [typing .Union [str , typing .List [str ]]] = None ,
7172 ) -> Traces :
7273 """
7374 Get list of traces
@@ -80,14 +81,22 @@ def list(
8081 - user_id: typing.Optional[str].
8182
8283 - name: typing.Optional[str].
84+
85+ - tags: typing.Optional[typing.Union[str, typing.List[str]]]. Only traces that include all of these tags will be returned.
8386 """
8487 _response = self ._client_wrapper .httpx_client .request (
8588 "GET" ,
8689 urllib .parse .urljoin (
8790 f"{ self ._client_wrapper .get_base_url ()} /" , "api/public/traces"
8891 ),
8992 params = remove_none_from_dict (
90- {"page" : page , "limit" : limit , "userId" : user_id , "name" : name }
93+ {
94+ "page" : page ,
95+ "limit" : limit ,
96+ "userId" : user_id ,
97+ "name" : name ,
98+ "tags" : tags ,
99+ }
91100 ),
92101 headers = self ._client_wrapper .get_headers (),
93102 timeout = 60 ,
@@ -160,6 +169,7 @@ async def list(
160169 limit : typing .Optional [int ] = None ,
161170 user_id : typing .Optional [str ] = None ,
162171 name : typing .Optional [str ] = None ,
172+ tags : typing .Optional [typing .Union [str , typing .List [str ]]] = None ,
163173 ) -> Traces :
164174 """
165175 Get list of traces
@@ -172,14 +182,22 @@ async def list(
172182 - user_id: typing.Optional[str].
173183
174184 - name: typing.Optional[str].
185+
186+ - tags: typing.Optional[typing.Union[str, typing.List[str]]]. Only traces that include all of these tags will be returned.
175187 """
176188 _response = await self ._client_wrapper .httpx_client .request (
177189 "GET" ,
178190 urllib .parse .urljoin (
179191 f"{ self ._client_wrapper .get_base_url ()} /" , "api/public/traces"
180192 ),
181193 params = remove_none_from_dict (
182- {"page" : page , "limit" : limit , "userId" : user_id , "name" : name }
194+ {
195+ "page" : page ,
196+ "limit" : limit ,
197+ "userId" : user_id ,
198+ "name" : name ,
199+ "tags" : tags ,
200+ }
183201 ),
184202 headers = self ._client_wrapper .get_headers (),
185203 timeout = 60 ,
0 commit comments