Skip to content

docs: fill gaps found in the site audit (release health, AI Insights, APM upload, system traces) - #170

Open
dsheikherev wants to merge 2 commits into
mainfrom
docs/fill-gaps-from-site-audit
Open

dsheikherev wants to merge 2 commits into
mainfrom
docs/fill-gaps-from-site-audit

Conversation

@dsheikherev

@dsheikherev dsheikherev commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes gaps and internal inconsistencies that an audit of docs.bugsee.com against the website and the product turned up. Every statement is backed by source. Things I could not confirm are left out and listed at the end. A second commit fixes accuracy problems that a clean-context review of the first commit found.

Evidence revisions: Android SDK v7.6.0 (2a88ea7fb), iOS SDK release-7.1.0 (afbddbc5), bugsee-appserver main (e2bdaef), bugsee-background-worker main (e7f395c), viewer (dashboard) main (223f40db1), bugsee-for-ai origin/main (2a05661).

⛔ Blockers: team decision needed before merge

The Release health page documents what the backend computes. Two parts of that computation probably don't match what people will assume the numbers mean. The team should decide whether to hold the page, add a caveat, or fix the product first. This PR adds no caveat for either.

  1. On Android 7.x, sessions are close to new installs only.
    • The backend counts a session only on POST /sessions (bugsee-appserver code/components/app/session/session.service.js:1129-1137, 1172-1174; code/components/shared/statistics/index.js:119-156).
    • Android SDK 7.6.0 skips that request whenever it has a stored access token (library/src/main/java/com/bugsee/library/communication/BugseeCommunicationManager.java:412-420).
    • iOS fetches on every launch, on purpose ("A stored token is NOT a reason to skip the fetch", BugseeDev/BugseeLib/BugseeLib/BGSNetworkManager.m:481).
    • So for Android 7.x apps, the Sessions chart (and with it Crash-free sessions) counts roughly first launches, not launches. The page says only "each time the Bugsee SDK on a device opens a session with Bugsee".
  2. Simulators and review devices are excluded from sessions, but their reports still count.
    • Sessions count only for live devices (session.service.js:225-249, 1129, 1172).
    • Crash reports and the extra session/user a report can add have no device-type filter (app/issue/issue.service.js:1352-1365; statistics/index.js:167-253). A crash from a simulator lowers crash-free numbers without adding a session.
    • The page states this as is.

1. Android 7.x called "beta"

  • docs/ai/plugins/index.md: "iOS, Android (and Android 7.x beta)" becomes "iOS and Android (7.x, plus separate skills for apps still on 6.x)".
  • Evidence: 7.0.0 is the first stable 7.x release (docs/sdk/android/release-notes.md, "7.0.0 (June 23 2026)"). bugsee-for-ai SKILL_TREE.md lists bugsee-android-sdk and bugsee-ios-sdk as "7.x — the current SDK", with separate -6x skills.
  • No other page calls Android 7.x beta. The remaining "beta" labels are React Native 7.x (still beta), release history, and a quoted plugin warning.

2. Standalone APM upload: not active on Android either

  • The upload job is commented out, waiting for the backend, so mUploadJob is always null: android/sdk performance/BugseePerformanceCoordinator.java:220-231.
  • Adaptive sampling is skipped while there is no upload job: :757-792.
  • iOS agrees: BugseeOptions.h:481-483, 489-494 ("not currently wired").
  • The sample draw is still recorded in reports on Android. The root span carries bugsee.sampled and bugsee.sample_rate (performance/otlp/OtlpTraceEncoder.java:354-358; BugseePerformanceCoordinator.java:429-434). iOS does not serialize it.

Changed:

  • sdk/android/performance.mdx: options table, and "Two data paths" becomes "Where performance data goes", which now says the draw is recorded.
  • sdk/android/configuration/overview.mdx, migration.mdx, faq.md.
  • sdk/android/extensibility/custom-extensions.mdx. NoOpTransaction is also returned before launch and after stop (BugseePerformanceCoordinator.java:422-424).
  • sdk/react_native/performance.mdx:
    • :119: adaptive promotion happens only on iOS (ios/sdk Performance/BGSPerformanceCoordinator.m:497).
    • :217: the sample rate no longer "changes nothing that is sent", because on Android the draw is recorded.

3. Release health: new page dashboard/release-health

  • Where it is:
    • The per-app Overview, first item in the app's navigation, #/apps/<key>/overview (viewer elements-application-sections-nav.component.html:5). Its Stability chart: application-overview-view.component.html:220-230.
    • The org-wide Cross-application overview, the row at the top of the applications list (features/application/list/application-list.component.ts:65-74, .html:1-12).
  • Formulas: (sessions − crashes) / sessions and (users − crashed users) / users, ×100, rounded to one decimal, floored at 0, and 100% with no data (code/components/shared/statistics/formatter.js:26-33).
  • Session, user, crash, crashed user:
    • session.service.js:225-249, 1129-1137, 1172-1174.
    • statistics/index.js:119-156, 182-239.
    • issue.service.js:1330-1349.
  • Reports of any type can add a session and a user when the device record was last updated on another day (issue.service.js:1352-1365, no type check; statistics/index.js:193-198). Every report updates that record (issue.service.js:166-181, 1049; the session model's timestamps, dao/models/session.js:67-71). So handled errors and bug reports can move the crash-free numbers. The page now says so.
  • Version and build:
    • Grouping uses iOS BGSEnvironment.m:35-37 and Android EnvironmentInfoProvider.java:201-202.
    • With "All versions", the totals are not summed across versions (statistics/index.js:356-369).
    • Ordering is by version number only when every version has 1–3 numeric parts; otherwise it is by first appearance (code/utils.js:1061-1076, 1125-1146).
  • Days:
    • The time zone is a fixed GMT offset with no daylight saving time (viewer core/constants/values/timezones.constant.ts; appserver code/utils.js:1031-1038).
    • A session's day is the day it is received; a report's day is its creation date (issue.service.js:1352).
    • Ranges and the 3-day minimum: .html:7-62, 160-163.
  • Overview sharing: viewer app settings .html:290-338; backend application.service.js:1804.

4. AI Insights: new page dashboard/ai-insights, plus a link from ai/index.md

  • Availability and limit:
    • Every plan except Lite, plus trials (issue.service.js:3096-3102; viewer recording.view.html:81-85).
    • The monthly limit counts every request that starts a run, failed runs and retries included. The only refund is when scheduling fails (issue.service.js:3233-3268, 3272; issue.ai-process/complete.js:185-215).
    • The limit message shown is the dashboard's own text (elements-recording-ai-process.component.ts:588-598), because the backend replaces the error message with the number (issue.service.js:3138).
  • Output:
    • Classification, confidence, fix and SDK notes: worker ai/insights.py:91-221, 656-689.
    • Confidence is the model's own 0–1 value, only clamped (:493-500).
    • The fix diff shows only on an exact single match with a replacement of at most 20 lines (:533-538, 596-634).
    • Citations: jobs/issues.py:640-677; viewer core/utils/vcs.ts:222-242.
  • What is sent: listed from ai/insights.py:342-490 (generate_prompt) and jobs/issues.py:680-849. Device IDs are removed (:349-355), the instruction window is native crashes only, and logs are capped at 40 entries and 24 KB.
  • Repository connection:
    • GitHub App with Contents and Metadata read: vcs-insights/providers/github.js:414-424.
    • GitLab read_api: providers/gitlab.js:200-216.
    • Access token: viewer elements-shared-vcs-source.component.html:256-290. It is described as needing only read access for the same calls; no scope is enforced in code.
    • The revision is the build SHA, then the version tag, then the default branch (ai/insights_source.py:152-168, 715-733). The page links vcs-metadata.
  • UI/UX analysis:
    • It needs the report's video; without one the worker writes nothing (jobs/issues.py:336-340).
    • The dashboard stops waiting after 60 s (elements-recording-ai-process.component.ts:677-708).
    • The request still counts toward the limit (issue.service.js:3272).

5. From the website agent's audit

  • System traces: new sections on sdk/ios/events-and-traces.mdx and sdk/android/events-and-traces.mdx, plus a bullet on both overview pages.
    • iOS: producers Capture/Providers/TracesSystem/BGSCaptureSystemTraceProducers.m:1301-1339; cellular, Wi-Fi, orientation, brightness and fold state are behind #if TARGET_OS_IOS, so not on tvOS or visionOS.
    • iOS opt-in gates: disk :129, Bluetooth :200, Wi-Fi :1266, carrier names :1187. Capture disk-space states: :73-87, 960-1000.
    • iOS conditions:
      • CoreTelephony is resolved at runtime only (Shared/Trackers/BGSTrackerTelephony.m:80-84).
      • CoreNFC must be linked (:1239-1243).
      • Bluetooth needs existing permission, and Bugsee never prompts (BGSBluetooth.m:60-98).
    • iOS sampling: 1 s polling (BGSCaptureDataProviderSystemTrace.m:18), paused in the background (:195-215).
    • Android: producers and API gates in capture/providers/traces_system/BugseeCaptureTraceProducersProvider.java:65-112.
    • Android hinge angle needs API 30 (shared/trackers/device/FoldStateMonitor.java:523, HingeAngleSource.java:20).
    • Android Wi-Fi fields come from shared/trackers/BugseeTrackerWifi.java:1160-1205, 1388-1443; no option turns them off.
  • Android breadcrumbs are off by default (options/OptionsDescriptors.java:107 at v7.6.0). Fixed sdk/android/privacy/breadcrumbs.mdx, which said on by default and showed how to turn it off. Also fixed sdk/android/breadcrumbs.mdx ("automatically") and marked the overview bullet opt-in, as the iOS overview already does. Custom breadcrumbs need the option too (Bugsee.java:1405-1420; BugseeCaptureDataProviderBreadcrumb.java:367).
  • JavaScript (beta) and Rust (preview): two lines on docs/index.md with links to the public repos and npm. No SDK docs.

Left out, or for the team to decide

  • Naming the AI model provider. The worker uses Anthropic's API or Amazon Bedrock (bugsee-background-worker ai/client.py:5-17). The page says only "an AI model". Naming it is a team or legal call.
  • GitHub Enterprise and self-hosted GitLab. The dashboard's access-token step and the website say an access token works for them. But the worker reads files only from api.github.com, gitlab.com and api.bitbucket.org (ai/insights_source.py:200-227, 640-693), and the clone URL is never used for fetching. The page does not claim self-hosted support. The dashboard hint and the website need fixing, or the worker needs host support.
  • /bugsee_fix MCP prompt: not documented. The appserver MCP server registers tools only (code/components/mcp/server/index.js, environment.js), with no prompt on any branch or in its history. It is claimed by the website (src/pages/mcp-server.tsx:41) and bugsee-for-ai (README.md:69, AGENTS.md:69, skills/bugsee-fix-issues/SKILL.md:99-101).
  • Notification relay "Beta" label: the dashboard shows a Beta badge (viewer elements-application-sections-nav.component.html:26), but the iOS and Android docs don't call it beta. Unchanged; the team should pick one.
  • AI Insights quota failure, shown as a bare number. When the quota check fails on an issue with no earlier result, revertClaim stores the error message, which is the limit (for example "30"). The failed state then shows that number as the error text (issue.service.js:3250-3253; complete.js:73-83).
  • Follow-ups in other repos (not edited here):
    • bugsee-for-ai: the generated docs/ai/agent-skills/sdk/android/v7/SKILL.md:317 calls PerformanceSampleRate the "Standalone-upload probability" without saying the upload is inactive. That file is mirrored from bugsee-for-ai, so fix it there.
    • Android SDK: the Javadoc of CaptureBreadcrumbs says "Default value is true" (contracts/options/Options.java:421-424 at v7.6.0), but the registered default is false.
    • npm: the @bugsee/* latest tag still points to 0.1.0-beta.4, while beta is 0.1.0-beta.8.
  • Release notes left as history: Android 7.0.0-beta6 says adaptive sampling "automatically tune[s] transaction sampling" (docs/sdk/android/release-notes.md:1345). The repo has no convention for annotating past entries, so it is unchanged.
  • Not documented, by choice:
    • the default AI Insights limit (config/default.js:190), because plans override it;
    • Bitbucket, which is offered only outside production (viewer elements-shared-vcs-source.component.ts:93-115);
    • the 15-minute stale-run reclaim (complete.js:12), which the dashboard does not expose.

Checks

  • npx cspell "docs/**/*.md" "docs/**/*.mdx" -c cspell.json: 0 issues. Added Dalvik, RSSI and Passpoint.
  • npm ci, npm run test:mirror, npm run check-skills and npm run build all pass. The build uses onBrokenLinks/onBrokenAnchors: 'throw'.

🤖 Generated with Claude Code

- AI plugins: Android 7.x is stable; drop the "beta" label.
- Android APM: the standalone performance upload is not active in
  SDK 7.6.0, as on iOS and React Native. Say so on the performance,
  configuration, migration, FAQ and custom-extensions pages.
- Dashboard: new Release health page (crash-free sessions and users on
  the app Overview) and AI Insights page, from the backend, worker and
  dashboard source.
- iOS and Android: list the system traces the SDKs record on their own.
- Home: point to the JavaScript (beta) and Rust (preview) SDK repos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I459feac4cd64ef6b80d937d9e97e38579db1ab8a
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff887521-2df7-4de2-9824-862367f32dcd
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@claude

claude Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Claude finished @dsheikherev's task in 33s —— View job


Review of #170: fill gaps from the site audit

I read the full diff against origin/main and checked it against the rest of the docs. I did not run cspell or npm run build; I'm relying on the PR's own report that both pass. I also can't read the Android SDK, iOS SDK, appserver, worker or viewer repos from here, so I have not independently verified the source line references.

Findings

I found no bugs or blocking issues. I'm not posting any inline findings, because none of what follows has a failure scenario behind it. These are the checks I ran:

  • Links and anchors: #where-performance-data-goes exists in performance.mdx. The old #two-data-paths anchor has no remaining references. /sdk/ios/configuration#disk-space and /cli/builds both resolve, and #system-traces exists on both events-and-traces pages.
  • Navigation: both new dashboard pages are in sidebars.ts, and ai/index.md links to AI Insights. Nothing links to Release health yet. That's fine, but you could add a cross-link from an overview page.
  • APM consistency: the Android wording now matches the existing iOS and React Native pages ("reserved for a standalone upload that is not active yet"). A grep found no other Android, KMP, Flutter, Unity or .NET page that still describes a live standalone upload.
  • Front matter and spell check: the new pages have title, description, sidebar_position and slug. Dalvik is added to cspell.json, as CLAUDE.md requires.

Notes for the team

These are the PR's own open items. I agree they're worth resolving, but they don't block the merge.

  1. Android session semantics (release-health.md:167): the page says a session is counted "each time the Bugsee SDK on a device opens a session". The PR description says Android 7.6.0 can skip POST /sessions when it reuses a stored token, and iOS does not. If that's true, the sentence over-promises for Android 7.x, and crash-free sessions would mean something different per platform. I'd confirm the SDK behavior before merging, or soften the sentence.
  2. Agent skill drift: docs/ai/agent-skills/sdk/android/v7/SKILL.md:317 still calls PerformanceSampleRate a "Standalone-upload probability". It's generated, so the fix belongs in bugsee-for-ai. Until that lands, the skill and the Android page will disagree about whether the upload is active.
  3. Date-sensitive wording: "as of 7.6.0" and "not active yet" will go stale when the backend ships. The text is accurate today. It's worth a reminder to revisit it when the standalone upload is enabled.
  4. Minor: docs/index.md now has two blank lines before ## Features, and the ## Sampling and upload modes heading now covers options that do nothing. Both are cosmetic.

Summary

  • Overall risk: Low. These are documentation-only changes, apart from a one-word spell-check dictionary addition and the sidebar entries.
  • Merge recommendation: Approve once item 1 is confirmed. If it isn't, soften that one sentence and merge.
  • Most important: confirm the Android session-counting behavior, then fix the generated Android skill upstream.
  • Positives:
    • The PR cites its evidence revisions, keeps internal-only details out of the docs, and lists what it deliberately left out.
    • The "would"/"not active yet" wording for the APM options is accurate.
    • The /bugsee_fix MCP prompt is left undocumented because the server doesn't register it.

@dsheikherev
dsheikherev requested a review from krassx November 20, 2026 10:26
- Release health: reports of any type can add sessions and users;
  correct navigation (per-app Overview, Cross-application overview);
  fixed-offset time zone; exact version ordering rule.
- AI Insights: real quota message and what counts; complete list of
  what is sent; when a fix shows as a diff; what confidence means;
  access token scope; UI/UX analysis needs a video.
- System traces: Android hinge angle API 30, full Wi-Fi fields; iOS
  CoreTelephony/CoreNFC/Bluetooth permission conditions, visionOS,
  background pause, disk-space capture states.
- Android breadcrumbs are off by default.
- APM: the sample draw is recorded in reports on Android; RN sampled
  property and NoOpTransaction cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I9dfac65e021dfc01b1169a1a212b9740be7ecd02
@claude

claude Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Claude finished @dsheikherev's task in 36s —— View job


Re-review of #170 after the latest push

I read the full diff against origin/main, including the second commit (79a3597, "fix accuracy issues found in review"). I did not run cspell or npm run build, and I can't read the SDK, appserver, worker or viewer repos from here. I haven't independently verified the source line references. The only checks were grep and read passes over the docs.

New findings

None. I have no inline comments, because none of what follows has a failure scenario.

Checks on the latest commit

  • Breadcrumbs default: 79a3597 changes the Android breadcrumb pages from "on by default" to "off by default".
    • This agrees with the CaptureBreadcrumbs row in configuration/overview.mdx:138 (default false), the Android release note ("opt-in via CaptureBreadcrumbs") and the iOS overview ("opt-in").
    • A grep found no remaining "on by default" claim for Android breadcrumbs.
    • The PR description doesn't mention this change. Consider adding a line to it so the reviewer sees it.
  • APM wording:
    • The React Native, Android performance, configuration, migration, FAQ and custom-extensions pages now agree: the standalone upload is "not active yet", and sampling does not change what is captured or sent.
    • No stale references remain in other SDK sections. #two-data-paths has no references left.
    • The bugsee.sampled and bugsee.sample_rate attribute claims appear on both the Android and React Native pages and match each other.
  • System traces: both tables now carry API-level gates, the Satellite row and the opt-in split on iOS. They are consistent with the overview bullets and anchors.
  • Navigation and spell check: both new dashboard pages are in sidebars.ts, and the new RSSI/Passpoint terms are in cspell.json.

Earlier items and their status

  1. Android session semantics (docs/dashboard/release-health.md:22) — still open. The page says a session is counted "each time the Bugsee SDK on a device opens a session". Your PR description says Android 7.6.0 can skip POST /sessions when it reuses a stored token, and iOS posts on every launch. If that's intended, crash-free sessions are not "per launch" on Android 7.x. Please confirm this, or soften the sentence to something like "each time a session is registered with Bugsee".
  2. Agent skill drift — still open, upstream. docs/ai/agent-skills/sdk/android/v7/SKILL.md still calls PerformanceSampleRate a "Standalone-upload probability". The fix belongs in bugsee-for-ai. Until it lands and the sync PR merges, the skill and the Android page disagree.
  3. Cosmetic — still open. docs/index.md has two blank lines before ## Features. The Android ## Sampling and upload modes heading now covers options that don't do anything yet. The heading is also referenced nowhere, so renaming it is safe.
  4. Staleness reminder. "As of 7.6.0" and "not active yet" appear in several Android pages. Revisit them all when the backend ships the upload.

Summary

  • Overall risk: Low. These are documentation-only changes, apart from the sidebar entries and the spell-check dictionary words.
  • Merge recommendation: Approve once item 1 is confirmed or the sentence is softened. Nothing else blocks the merge.
  • Most important: confirm the Android session-counting behavior, then fix the generated skill upstream.
  • Positives:
    • The second commit tightened several claims (breadcrumb default, sampled/adaptive-sampling behavior per platform, API gates), and the pages are now consistent with each other.
    • Evidence revisions are cited, internal details are kept out of the docs, and unconfirmed items such as /bugsee_fix are left out and listed.
      · Branch: docs/fill-gaps-from-site-audit

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant