Skip to content

Commit

Permalink
Update query client APIs (#454)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Hall <[email protected]>
  • Loading branch information
dmontagu and alexmojaki authored Sep 30, 2024
1 parent b519d49 commit 76b2703
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 143 deletions.
2 changes: 1 addition & 1 deletion logfire-api/logfire_api/experimental/query_client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ColumnDetails(TypedDict):
"""The details of a column in the row-oriented JSON-format query results."""
name: str
datatype: Any
bit_settings: str
nullable: bool

class ColumnData(ColumnDetails):
"""The data of a column in the column-oriented JSON-format query results."""
Expand Down
2 changes: 1 addition & 1 deletion logfire/experimental/query_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ColumnDetails(TypedDict):

name: str
datatype: Any
bit_settings: str
nullable: bool


class ColumnData(ColumnDetails):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucqKSpN1THkAgAPkIWfJgAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucqKSpN1THkAgAPkIWfJgAA
AA==
headers:
access-control-expose-headers:
Expand All @@ -29,18 +29,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-263b6bfa64dc44be3f58f4b0e850030a-dce4ce1f1c21487f-01
- 00-87439974834aa5d996b414d8894e45da-7ed4cb71e94cd1ef-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -63,7 +63,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -74,18 +74,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-4cd967a98d7da5aefb74931b5e1791da-f374614f494b132f-01
- 00-b046e8f28a1d97e3c9bdf4d379fe45e8-cd1d6c69f76f2012-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -108,7 +108,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -119,18 +119,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-38a1ad9bb2426224dd941d777ae1a568-8be52888bfe0205a-01
- 00-30655e23526195aeb75a192eb110d561-09d6dc7dc643aab8-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -153,7 +153,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucCANUZtHYfAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucCANUZtHYfAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -164,18 +164,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-9c016048fd844e49b095fe52567b9f94-b35101f536d6b5b9-01
- 00-00fead409dd0fe46308b19fc7afff8eb-4427c67de96c738c-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucqKSpN1THkAgAPkIWfJgAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucqKSpN1THkAgAPkIWfJgAA
AA==
headers:
access-control-expose-headers:
Expand All @@ -29,18 +29,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:33 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-2a27c780dccdf9cc4ba19a4c570a4749-d467e08ff341a4d4-01
- 00-ea6f925a8dabd0b77b2204aa3e709d30-25169a93033fada4-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -63,7 +63,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -74,18 +74,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-c192219a87ea208c88e25bdd7d495d07-ea35167c0637309f-01
- 00-80b22a05b72adfa0370318ba1d012eb0-8292434528086269-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -108,7 +108,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uQCAFnBUz8WAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -119,18 +119,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-bb49963ce29cb55d4207f8ee8813c2b6-3026334f415e266b-01
- 00-ef2b377579b8c5feb82e33e32b6ecf8c-1baa667e4555a5cc-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand All @@ -153,7 +153,7 @@ interactions:
response:
body:
string: !!binary |
H4sIAILu0WYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucCANUZtHYfAAAA
H4sIABHN9mYC/8ssjk+tSE4tKMnMz9NJzi/NK9HQ0uRKS8wpTtUxNucCANUZtHYfAAAA
headers:
access-control-expose-headers:
- traceresponse
Expand All @@ -164,18 +164,18 @@ interactions:
content-type:
- text/csv; charset=utf-8
date:
- Fri, 30 Aug 2024 16:08:34 GMT
- Fri, 27 Sep 2024 15:19:45 GMT
server:
- uvicorn
traceresponse:
- 00-3ba834af7af03f6cbf82744a266bbde7-3104fd2517724cc1-01
- 00-99e9a8040fe77b68524a2995a9962444-0bd9d1e821eb5529-01
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-api-version:
- IrAe09QtPMFmR9tG0nG94l9GFfbLxjXec2/mMxKUkoI=
x-logfire-project:
- 1flTOwUHOSSJqmjknvZl4Cphg4j7R1eYX7kz5RICs/4=
x-logfire-context:
- e2e-test/test-e2e-project
status:
code: 200
Expand Down
Loading

0 comments on commit 76b2703

Please sign in to comment.