Skip to content
2 changes: 1 addition & 1 deletion js/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ function castLogger<ToB extends boolean, FromB extends boolean>(
}

function constructLogs3Data(items: string[]) {
return `{"rows": ${constructJsonArray(items)}, "api_version": 2}`;
return `{"rows": ${constructJsonArray(items)}, "api_version": 2, "async": true}`;
}

function now() {
Expand Down
2 changes: 1 addition & 1 deletion py/src/braintrust/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def construct_json_array(items: Sequence[str]):

def construct_logs3_data(items: Sequence[str]):
rowsS = construct_json_array(items)
return '{"rows": ' + rowsS + ', "api_version": ' + str(DATA_API_VERSION) + "}"
return '{"rows": ' + rowsS + ', "api_version": ' + str(DATA_API_VERSION) + ', "async": true}'


def _check_json_serializable(event):
Expand Down
Loading