Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make size_limit (max run count per batch) globally configurable…
… via env var (#1358) ### Purpose Compression improves run throughput and memory usage, but performance is still slower than expected for power users due to excessive threads and small payloads. SDK users can improve the throughput for larger payloads and higher trace counts by making the run count batch ingest config globally configurable. ### Changes * Created an environment variable `LANGSMITH_BATCH_INGEST_SIZE_LIMIT` to configure run count. * This takes precedence over the `/info` api response and any value passed directly to the client batch ingest config. ### Tests / Benchmarks Setting a higher run count increased compressed runs throughput by **~80-100%** depending on run count and payload size.
- Loading branch information