Conversation
Wraps the Vercel AI SDK's generateText/streamText/embed calls with Raindrop instrumentation when RAINDROP_WRITE_KEY is set. Uses an injectable AI module override in AiSdkApi so the CLI can swap in the wrapped module without touching the adapter internals. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Documentation ReviewNo documentation updates needed. This PR adds an opt-in Raindrop observability integration that:
The existing Telemetry docs cover Continue's own anonymous telemetry collection. Third-party observability integrations like Raindrop are internal/enterprise features that don't need public documentation at this time. If Raindrop observability becomes a more prominent, documented feature with config.yaml support in the future, documentation can be added then. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
1 issue found across 7 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="extensions/cli/src/telemetry/raindropService.ts">
<violation number="1" location="extensions/cli/src/telemetry/raindropService.ts:13">
P2: Set CONTINUE_USE_AI_SDK only after Raindrop initialization succeeds (or clear it on failure). As written, a Raindrop init failure still forces OpenAI/Anthropic through AiSdkApi, which does not support completions/FIM and can break those paths.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Prevents routing through AiSdkApi if Raindrop initialization fails, which would break completions/FIM paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…xity The function exceeded the max complexity of 30 (was 36). Extracted PostHog reporting into a separate function. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Switch default smoke model from claude-3-haiku-20240307 to claude-3-5-haiku-latest for better rate limits. Add retry helpers (runHeadlessWithRetry, sendMessageAndWait) that detect rate-limit errors in responses and retry with exponential backoff (10s, 20s, 40s). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The -latest alias isn't recognized by the CI Anthropic API key. Use claude-3-5-haiku-20241022 explicitly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The CI Anthropic API key only has access to claude-3-haiku-20240307. The rate-limit resilience comes from the retry/backoff helpers instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
@raindrop-ai/ai-sdk, which auto-instruments Vercel AI SDKgenerateText/streamText/embedcallsAiSdkApiso the CLI can swap in a wrapped module without touching adapter internalsRAINDROP_WRITE_KEYenv var is set; zero impact otherwiseTest plan
RAINDROP_WRITE_KEY=test cn -p "hello"— no errors, no startup delay🤖 Generated with Claude Code
Continue Tasks: ✅ 7 no changes — View all
Summary by cubic
Adds Raindrop observability to the CLI by wrapping Vercel AI SDK calls. Opt-in via RAINDROP_WRITE_KEY; initializes before services with a hashed anonymous user ID, only routes through the AI SDK after successful init, shuts down cleanly, and improves smoke-test reliability with retry/backoff helpers (model unchanged due to CI constraints).
New Features
Bug Fixes
Written for commit 9b9bf16. Summary will update on new commits.