Add a TODO to switch usage to an async function to push traces via the SDK once that is available.

This commit is contained in:
Hemang
2025-01-31 16:03:10 +01:00
parent 76644778a1
commit be934bc07c
+1
View File
@@ -28,6 +28,7 @@ def push_trace(
api_key = invariant_authorization.split("Bearer ")[1]
client = Client(api_url=api_url, api_key=api_key)
try:
# TODO: Change this to the async version once that is available
push_trace_response = client.create_request_and_push_trace(
messages=messages, dataset=dataset_name
)