feat(docs): report demo reliability events to the Thesys console - #1091
Closed
devin-ai-integration[bot] wants to merge 1 commit into
Closed
feat(docs): report demo reliability events to the Thesys console#1091devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What
The docs site demos render LLM-generated UI but drop the OpenUI render/error events on the floor, so the demos produce no reliability signal. This wires
@openuidev/observability-cloud(the SDK the reliability docs tell users to install) into the demo routes so their generations show up on the Reliability dashboard.The integration is a single client component gated on a publishable client API key, so nothing changes — and nothing is sent — unless
NEXT_PUBLIC_THESYS_CLIENT_API_KEYis set in the deployment:Scoped to the demos only (
/demos,/demo/github,/chat,/compare) rather than the root layout, so marketing/docs page views don't generate ingest traffic.Changes
docs/components/reliability-observability.tsx— env-gated, idempotentObservability.initin a"use client"effect, rendersnull.app/demos,app/demo/github,app/chat,app/compare.@openuidev/observability-cloud: workspace:^todocs/package.json(+ lockfile).docs/README.md, including the warning not to reuse the server-sideTHESYS_API_KEY.Test Plan
Verified locally
pnpm --filter @openuidev/docs types:checkpasses.pnpm --filter @openuidev/docs lintandformat:checkreport only pre-existing failures; none of the touched files are flagged.Live ingest was not exercised — I don't have a client API key, so the only path verified is the no-key path (no init, no network calls).
Checklist
Link to Devin session: https://app.devin.ai/sessions/90646844560e454baad6b15c63417ec1
Open in Devin Desktop: https://app.devin.ai/desktop/session/90646844560e454baad6b15c63417ec1?variant=devin
Requested by: @zahlekhan