mirror of
https://github.com/langchain-ai/langsmith-collector-proxy.git
synced 2026-07-01 16:08:51 -04:00
[PR #1] [MERGED] fix: Cleanup stale map in a background goroutine. #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langsmith-collector-proxy/pull/1
Author: @angus-langchain
Created: 5/19/2025
Status: ✅ Merged
Merged: 5/19/2025
Merged by: @angus-langchain
Base:
main← Head:001-angus/ttl-spanmap-in-background📝 Commits (1)
5400b8bfix: Cleanup stale map in a background goroutine.📊 Changes
1 file changed (+29 additions, -12 deletions)
View changed files
📝
internal/translator/translator.go(+29 -12)📄 Description
Iterating over the span map and ttling every call to
Translate()adds significant overhead. We should cleanup all spans in a background thread outside of the hotpath.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.