forked from phoenix/litellm-mirror
(Feat) 273% improvement GCS Bucket Logger - use Batched Logging (#6679)
* use CustomBatchLogger for GCS * add GCS bucket logging type * use batch logging for GCs bucket * add gcs_bucket * allow setting flush_interval on CustomBatchLogger * set GCS_FLUSH_INTERVAL to 1s * fix test_key_logging * fix test_key_logging * add docs on new env vars
This commit is contained in:
parent
70aa85af1f
commit
eb92ed4156
9 changed files with 128 additions and 72 deletions
|
@ -1599,7 +1599,9 @@ async def test_key_logging(
|
|||
details=f"Logging test failed: {str(e)}",
|
||||
)
|
||||
|
||||
await asyncio.sleep(1) # wait for callbacks to run
|
||||
await asyncio.sleep(
|
||||
2
|
||||
) # wait for callbacks to run, callbacks use batching so wait for the flush event
|
||||
|
||||
# Check if any logger exceptions were triggered
|
||||
log_contents = log_capture_string.getvalue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue