feat: add opt-in AgentPond tracing - #136
Open
marcusschiesser wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title:
Description:
AGENTPOND_ENABLED=true.AgentPond fits this path because SearChat already centralizes its OpenAI-compatible calls in
BaseOpenAIChat; the integration stays server-side, provider-neutral, and entirely opt-in.Configuration and privacy:
Tracing remains disabled by default. When enabled, spans are written only to the Files SDK store selected by the operator. OpenInference input and output values are redacted, so prompts, responses, API keys, and provider targets are not exported.
Validation:
yarn install --immutableyarn workspace deepsearcher buildyarn workspace server check-typesyarn workspace server test— 11/11 passedyarn workspace server exec eslint src/instrumentation.ts src/core/llm/agentpond.e2e.test.ts src/app.tsyarn build— all three workspaces builtEnd to end, the new test used SearChat's production
BaseOpenAIChatand OpenAI SDK against an in-process HTTP provider, receivedtraced answer, flushed the exporter, and synced the local Files SDK store withnpx agentpond sync.npx agentpond traces get b2d052f5425c9e48255435cb18d1286bread back anOpenAI Chat CompletionsLLM trace with modelgpt-test, token counts 2 prompt / 2 completion / 4 total, and both input and output recorded as__REDACTED__.Limitations:
Motivation:
Related Issues: