feat: add provider-neutral telemetry adapters - #32
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis change adds protected, read-only telemetry health adapters for PostHog, Sentry, and New Relic, integrates provider configuration and health commands into the CLI, updates onboarding guidance and documentation, packages the helper, and adds coverage for validation, bounded responses, fallback behavior, and tamper detection. ChangesReviewed telemetry connections
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
/review |
PR Summary by QodoAdd provider-neutral read-only telemetry adapters (PostHog/Sentry/New Relic)
AI Description
Diagram
High-Level Assessment
Files changed (21)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
95 rules 1.
|
|
/improve |
|
Code review by qodo was updated up to the latest commit c4ae28e |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@bin/ultimate-agent-stack.mjs`:
- Around line 5463-5505: Bound the aggregate telemetry probe duration in the
provider results flow around runTelemetryReadonly and its callers commandStart
and commandDoctor. Use a shared overall deadline or shorter interactive
per-provider timeout so sequential provider checks cannot stall startup or
doctor commands for roughly three full probe timeouts; when the budget is
exhausted, return the existing repository-fallback result for remaining
providers.
- Around line 1777-1822: Extract the numeric-ID and bounded-identifier regexes
into shared constants, preserving the case-insensitive identifier behavior used
by the config validator. Replace the duplicated literals in
validateTelemetryProvider, parseTelemetrySpec, and
sanitizeTelemetryHealthResult, and update scripts/telemetry-readonly.mjs to
reuse the shared constants where available so all validation gates apply
identical rules.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 3c5e3ec5-9dd4-4423-8541-f1e7b914c97b
📒 Files selected for processing (21)
.codex-plugin/plugin.jsonREADME.mdSTARTER_PROMPT.mdassets/project-template/.agent-stack/HANDOFF.mdassets/project-template/AGENTS.mdbin/ultimate-agent-stack.mjsdocs/ADAPTERS.mddocs/ARCHITECTURE.mddocs/OPERATING_MANUAL.mddocs/SOURCES_AND_TRADEOFFS.mddocs/TRUST.mdevals/scenarios.jsonpackage.jsonscripts/packed-smoke.mjsscripts/telemetry-readonly.mjsskills/use-project-telemetry/SKILL.mdskills/use-project-telemetry/references/telemetry-providers.mdtest/agent-stack.test.mjstest/maintenance.test.mjstest/skill-eval.test.mjstest/telemetry-readonly.test.mjs
|
/improve |
|
Code review by qodo was updated up to the latest commit 9d1da73 |
|
/improve |
|
Code review by qodo was updated up to the latest commit a594884 |
|
/improve |
|
Code review by qodo was updated up to the latest commit 1ebea2b |
Summary
Validation
npm run release:check(145 tests, 14 behavioral contracts, dry pack, packed smoke)npx --yes node@22 --test(145 tests)npx --yes markdownlint-cli2@0.18.1 '**/*.md' '#node_modules'(59 files)\n-git diff --check\n\n## Deferred by design\n\nNative telemetry sessions, automatic capture, Agent Auth, and vendor-specific lock-in remain outside this change.Summary by CodeRabbit
New Features
telemetry-setupandtelemetry-healthcommands to configure credentials and verify provider identity, scope, and availability.Documentation
Security