Skip to content

Conversation

@SAKURA-CAT
Copy link
Member

对除文件以外的所有上传实现批次上传,减轻后端压力

Added batching to the upload_scalar_metrics function to split uploads into chunks of configurable size (default 3000). This improves reliability and performance when uploading large numbers of scalar metrics.
Introduced MetricDict TypedDict for clearer type hints and refactored batching logic for metric, scalar, and column uploads into trace_metrics. Now batching is handled centrally with per_request_len parameter, simplifying upload_scalar_metrics and upload_columns. Added assertions for project and experiment IDs and improved error handling for column uploads.
@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin November 4, 2025 11:01
@SAKURA-CAT SAKURA-CAT self-assigned this Nov 4, 2025
@SAKURA-CAT SAKURA-CAT added the 🐛 bug Something isn't working label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants