Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"collapsable",
"RGBA",
"RRGGBB",
"RRGGBBAA"
"RRGGBBAA",
"Dalvik",
"RSSI",
"Passpoint"
]
}
2 changes: 2 additions & 0 deletions docs/ai/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Connect Bugsee to your AI coding assistants and workflows. Install the Bugsee pl
- **Track build health** — check build size, what a release added or removed, size/dependency/timing regressions, and dependency vulnerabilities.
- **Keep traces readable** — upload dSYMs, JavaScript source maps, and Android mapping files so production stack traces resolve to your source.

In the dashboard itself, [AI Insights](/dashboard/ai-insights) explains a crash or handled error without an agent: likely root cause, suggested fix, and confidence, optionally grounded in your GitHub or GitLab repository.

## Get started

- New to this? Start with **[Plugins](/ai/plugins)** for a one-step install in your assistant.
Expand Down
2 changes: 1 addition & 1 deletion docs/ai/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Bugsee plugin gives your AI coding assistant everything it needs to work wit

## What the plugin provides

- **SDK setup skills** — opinionated wizards for iOS, Android (and Android 7.x beta), Flutter, React Native, Unity, .NET/MAUI, Xamarin, Cordova, and Kotlin Multiplatform. Your assistant detects the platform and walks through install, initialization, and configuration. See [Agent Skills](/ai/agent-skills).
- **SDK setup skills** — opinionated wizards for iOS and Android (7.x, plus separate skills for apps still on 6.x), Flutter, React Native, Unity, .NET/MAUI, Xamarin, Cordova, and Kotlin Multiplatform. Your assistant detects the platform and walks through install, initialization, and configuration. See [Agent Skills](/ai/agent-skills).
- **Workflow skills** — *fix issues* (triage and root-cause crashes, errors, and bug reports through the MCP server), *build insights* (build size, regressions, and dependency vulnerabilities through the MCP server), and *upload symbols* (dSYMs, JavaScript source maps, Android mapping files).
- **MCP server** — connects your assistant to your Bugsee issues and builds at `https://api.bugsee.com/mcp`. See [MCP](/mcp).

Expand Down
83 changes: 83 additions & 0 deletions docs/dashboard/ai-insights.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: "AI Insights"
description: "Analyze a crash or handled error in the Bugsee dashboard with AI Insights: likely root cause, suggested fix, confidence and the sources it used, optionally grounded in your GitHub or GitLab repository."
sidebar_position: 2
slug: "/dashboard/ai-insights"
---

# AI Insights

AI Insights analyzes a crash or a handled error and explains it: the most likely root cause, whose code has to change, a suggested fix, and how confident the analysis is. It works from the report alone. Connect the app's GitHub or GitLab repository, read-only, and it also reads the code around the crashing frames.

:::info[Beta]
AI Insights is in beta. It is available on every plan except Lite, and during a trial.
:::

## Run an analysis

1. Open a crash or an error in the dashboard and select the **AI Insights** tab.
2. Optionally check **Notify me when it finishes** to get an email when the analysis is ready or has failed.
3. Click **Request incident analysis**.

The analysis runs in the background, so you can leave the page. The tab waits for the result for two minutes; if the analysis is still running after that, click **Keep waiting**.

- **Failed runs.** The tab shows the error and a **Retry incident analysis** button. If a new run fails after an earlier one succeeded, the earlier result stays on screen.
- **Running it again.** Use the **Analyze incident** action on the tab. A new analysis replaces the existing one.
- **One run at a time.** While an analysis is running, requesting another one does not start a second run.

## What the analysis contains

| Part | What it says |
| --- | --- |
| Summary and **Root cause** | The most likely reason for the failure. The analysis walks nested causes and quotes the implicated lines when it has source code. Without source, it says so and reasons from the stack, the exception message and the device environment. |
| **Likely origin** | Whose code has to change: **Application code**, **Bugsee SDK**, **System** (nothing the app's author can change, such as an OS or device fault or a kill from outside the process) or **Unknown**. A crash inside platform code that failed on what the app handed it counts as application code. |
| **Confidence** | The model's own rating, from 0 to 100%, of how well the evidence in the report (the stack, the exception message and any source it read) supports the stated cause. A high value means the evidence shows the cause directly; a low value means the cause is inferred and other causes could look the same. It is an estimate, not a measured probability. |
| **Implicated files** | Files named in the stack, the source excerpts or the exception message. |
| **Suggested fix** | What to change in your app's code. When the fix is in a file Insights read from your repository, it can be shown as a diff: only when the lines it replaces appear exactly once in the code that was read, and the replacement is at most 20 lines. Otherwise the fix is described in prose. |
| **Bugsee SDK** | Notes on Bugsee's own SDK, when it is involved. Such reports are also marked **Bugsee SDK involved**. |
| **Sources** | The source files the analysis used. Files from your repository link to them in your provider, at the revision that was read. Android platform files link to the Android Open Source Project (AOSP). Bugsee SDK files are listed by path. |

## What it reads

To produce the analysis, AI Insights sends an AI model the following, and nothing else from the report:

- the report's environment record (device, OS and app details) with the device identifiers removed, plus the wrapper (runtime) and Bugsee SDK type, version and build;
- whether Bugsee flagged the report as an error in its own SDK;
- the report's summary and description;
- how the report was triggered: trigger, mechanism and origin;
- the exception: crash or handled error, the signal name and code, the reason or message, and the stack trace with its nested causes (or the crashed thread's stack when there is no exception);
- for native crashes, the machine code around the crashing instruction, decoded, when the SDK captured it;
- when a repository is connected: its provider, its name, and the revision that was read;
- when Bugsee SDK frames were matched against Bugsee's own debug symbols: details of those symbols (SDK version, format, image UUIDs);
- source excerpts around the frames in the stack: from your repository when one is connected, from the Bugsee SDK (at the version that produced the report) when SDK frames are in the stack, and from AOSP (at the device's OS release) for Android platform frames;
- up to 40 recent log entries from the report (only error entries when there are any), at most 24 KB.

The report must include crash data; without it, the analysis fails with *Crash data was not available*.

## Connect a source repository

People who can modify the app connect its repository in the app's settings, under **Source repository**, or from the **AI Insights** tab with **Set up source repository**. Click **Setup** and choose a provider:

- **GitHub.** Install the **Bugsee AI Insights** GitHub App, with read-only access (Contents: Read and Metadata: Read). You sign in so Bugsee can list the installations you can see. Bugsee does not keep your GitHub user token after setup; Insights reads files with a short-lived installation token.
- **GitLab.** Authorize with OAuth and the `read_api` scope, which lists your projects and reads files. Insights stores a refresh token for the app. Use a bot or service account if you do not want to use a personal login.
- **Access token.** If you prefer a token to an app connection, choose **Use an access token instead**, leave **Clone URL** blank, and enter the **Repository** and the **Access token**. The token needs only read access: Insights uses it to read the repository's metadata, branches and files, the same calls the app connections make with Contents: Read and Metadata: Read on GitHub and `read_api` on GitLab.

Then pick the **Default branch** and, if the app's source lives in a subdirectory of the repository, a **Path prefix**. **Disconnect** in the same panel removes the connection.

### Which revision is read

Insights reads the code that shipped, trying in this order:

1. the commit SHA of the matching build (same app version and build number), when that build was registered with Bugsee with a commit SHA (see [`vcs-metadata`](/cli/metadata#vcs-metadata));
2. a git tag that matches the app version, with or without a leading `v`;
3. the default branch.

## Monthly limit

Each request that starts an analysis counts toward a monthly limit for the organization, set by its plan. That includes runs that fail and retries; a request is refunded only when Bugsee cannot schedule the run at all. Once the limit is reached, the dashboard shows *Your organization account has reached the maximum number of AI Insights requests allowed per month (N)*, with N the limit, until the next calendar month. Contact Bugsee support to raise it.

## Bug reports: UI/UX analysis

For a bug report, the **AI Insights** tab offers a UI/UX analysis instead: click **Request UI/UX analysis**. It reviews frames from the video recorded before the report, the screenshot (including annotations the user drew), and the report's summary and description, and describes what most likely led the user to file the report. It counts toward the same monthly limit.

The analysis needs the report's video. For a report without one, no analysis is produced, but the request still counts toward the limit; after 60 seconds the tab stops waiting and suggests reloading the page later.
59 changes: 59 additions & 0 deletions docs/dashboard/release-health.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: "Release health"
description: "How Bugsee computes crash-free sessions and crash-free users on an app's Overview page: what counts as a session, a user and a crash, how versions and builds are grouped, and how days are bucketed."
sidebar_position: 1
slug: "/dashboard/release-health"
---

# Release health

An app's **Overview** page in the dashboard tracks how stable each release is, day by day. Open the app and select **Overview**, the first item in its navigation (`https://app.bugsee.com/#/apps/<APP_KEY>/overview`). The **Stability** chart shows two lines, **Crash-free sessions** and **Crash-free users**, next to the **Sessions**, **Users** and **Crashes** charts they are computed from. Filter by app version and build to compare releases.

## Crash-free sessions and users

| Metric | How it is computed |
| --- | --- |
| **Crash-free sessions** | (sessions − crashes) ÷ sessions, as a percentage |
| **Crash-free users** | (users − crashed users) ÷ users, as a percentage |

Both are computed per day and rounded to one decimal place. A result below zero shows as 0%. A day with no sessions (or no users) shows 100%.

## What counts

- **Session.** Counted each time the Bugsee SDK on a device opens a session with Bugsee. Sessions opened from simulators and emulators, and from devices Bugsee recognizes as Apple or Google app review devices, are not counted.
- **User.** A device. Each device counts once per day. **New users** are devices Bugsee sees for the first time.
- **Crash.** Each crash report counts as one crash, on the day the report was created. If that time is in the future or more than a month in the past, the day Bugsee received the report is used instead. Crash reports count from any device, simulators and review devices included.
- **Crashed user.** A device that sent at least one crash report that day, counted once per app version and build.

Handled errors and bug reports have their own charts (**Handled errors** and **Bugs**) and never count as crashes.

A report of any kind (crash, handled error or bug report) can also add one session and one user to its own day. It does so when the device's record in Bugsee was last updated on a different day; opening a session and sending a report both update that record. So handled errors and bug reports can raise the session and user counts, and with them the crash-free numbers.

## Versions and builds

Bugsee groups the numbers by the app version and build that the SDK reports: `CFBundleShortVersionString` and `CFBundleVersion` on iOS, `versionName` and `versionCode` on Android.

- **All versions** (the default) shows the whole app.
- Pick a version to see only that version. With a version selected, pick a build to narrow it further, or keep **All builds**.

Versions are listed newest first. When every version consists of one to three numeric parts (such as `2`, `2.1` or `2.1.3`), they are ordered by version number. A single version with a suffix (`1.0.0-beta`) or a fourth part (`1.2.3.4`) switches the whole list to the order in which the versions first appeared.

With **All versions** selected, the user counts are the app's daily totals. A device that updates during a day counts toward both versions, so per-version user counts can add up to more than the total.

The **Version adoption** chart shows each version's share of the day's users.

## Time range and days

Choose **Last 7 days**, **Last 30 days**, **Year**, **All** or **Custom period**. The charts need at least 3 days; a shorter custom period shows no statistics.

Days start at midnight in the app's time zone, shown under the filters (for example, *Days start at midnight (GMT+2)*). Set it in the app's settings, under **General** → **Timezone**. The time zone is a fixed offset from GMT with no daylight saving time, so in a region that observes daylight saving time, days start an hour away from local midnight for part of the year.

Bugsee fixes the day of each entry when it receives it: a session counts on the day it is received, a report on the day it was created (see [What counts](#what-counts)), both in the time zone set at that moment. Changing the time zone affects only data received after the change.

## Sharing the Overview page

An organization admin can make an app's Overview page visible to people without a Bugsee account. In the app's settings, under **Sharing**, turn on **Overview sharing** and copy the **Shared overview URL**.

## All apps at once

The **Cross-application overview**, the row at the top of the applications list (`https://app.bugsee.com/#/apps/_global/overview`), charts **Crash-free sessions** and **Crash-free users** for several apps side by side, computed the same way across all versions of each app.
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Using Bugsee on mobile devices requires installation of Bugsee lightweight SDK:
* [Installing KMP SDK (Beta)](/sdk/kmp/installation/)
* [Installing Xamarin SDK](/sdk/xamarin/installation/) — **deprecated**, use the [.NET SDK](/sdk/dotnet/installation/) for new projects

Bugsee also has SDKs outside mobile. They are not covered on this site yet; see their repositories:

* **JavaScript SDK (Beta)**: browsers, Node.js and other JavaScript runtimes, with session replay in the browser. Published on npm as [`@bugsee/bugsee`](https://www.npmjs.com/package/@bugsee/bugsee) and related `@bugsee/*` packages; source at [github.com/bugsee/bugsee-javascript](https://github.com/bugsee/bugsee-javascript).
* **Rust SDK (Preview)**: a pre-release, not yet published to crates.io; source at [github.com/bugsee/bugsee-rust](https://github.com/bugsee/bugsee-rust).


## Features

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/android/breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import TabItem from '@theme/TabItem';

This page documents the Bugsee Android SDK **7.x**. For the previous major version, see [Adding custom data](/sdk/android/v6/custom).

Breadcrumbs are small contextual entries that record the sequence of events leading up to an issue — navigation, taps, lifecycle changes, network requests, and system events. They are aggregated into the report timeline and surface in the Bugsee dashboard. The SDK captures four built-in breadcrumb sources (app, UI, network, and system) automatically; to disable collection, scrub, or drop them, see [Privacy → Breadcrumbs](/sdk/android/privacy/breadcrumbs).
Breadcrumbs are small contextual entries that record the sequence of events leading up to an issue — navigation, taps, lifecycle changes, network requests, and system events. They are aggregated into the report timeline and surface in the Bugsee dashboard. The SDK has four built-in breadcrumb sources (app, UI, network, and system). Breadcrumb capture is off by default: turn it on with the `CaptureBreadcrumbs` option, which custom breadcrumbs need too. To enable collection, or to scrub or drop entries, see [Privacy → Breadcrumbs](/sdk/android/privacy/breadcrumbs).

## Recording custom breadcrumbs

Expand Down
8 changes: 4 additions & 4 deletions docs/sdk/android/configuration/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ See [Performance monitoring](/sdk/android/performance) for the APM overview.
| `Options` constant | Manifest key | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `PerformanceMonitoring` | `com.bugsee.option.performance.enabled` | boolean | `true` | Master switch for performance monitoring (APM). |
| `PerformanceSampleRate` | `com.bugsee.option.performance.sample-rate` | float `[0, 1]` | `0.01` | Probability that a transaction is sampled for standalone APM upload. Does not affect capture — every transaction still flows into the report pipeline. |
| `PerformanceUploadMode` | `com.bugsee.option.performance.upload-mode` | String | `"batched"` | How standalone APM data is uploaded: `"batched"` (30 s flush) or `"realtime"`. |
| `PerformanceAdaptiveSampling` | `com.bugsee.option.performance.adaptive-sampling` | boolean | `true` | On top of the static sample rate, promote "interesting" unsampled transactions — scored at finish by status, duration outlier-ness, and span-tree complexity — into the upload pipeline. |
| `PerformanceSampleRate` | `com.bugsee.option.performance.sample-rate` | float `[0, 1]` | `0.01` | Probability that a transaction is sampled for a standalone APM upload, which is not active yet. Does not affect capture — every transaction still flows into the report pipeline. |
| `PerformanceUploadMode` | `com.bugsee.option.performance.upload-mode` | String | `"batched"` | How the standalone APM upload would send data: `"batched"` (30 s flush) or `"realtime"`. Not active yet. |
| `PerformanceAdaptiveSampling` | `com.bugsee.option.performance.adaptive-sampling` | boolean | `true` | On top of the static sample rate, promote "interesting" unsampled transactions — scored at finish by status, duration outlier-ness, and span-tree complexity — into the standalone upload. Not active yet. |

`PerformanceUploadMode` accepts `"batched"` (30 s flush) or `"realtime"`. `PerformanceSampleRate` gates **standalone APM uploads only** — every transaction still flows into the capture pipeline for reports regardless of sampling. `PerformanceAdaptiveSampling = true` turns the sample rate into a floor rather than a fixed probability — scored transactions are promoted on top of the random draw.
The standalone APM upload that `PerformanceSampleRate`, `PerformanceAdaptiveSampling`, and `PerformanceUploadMode` configure is not active yet (as of 7.6.0): the SDK accepts these options, but they do not change which transactions are captured or sent. Performance data reaches Bugsee only inside reports — every transaction flows into the capture pipeline for reports regardless of sampling. See [Where performance data goes](/sdk/android/performance#where-performance-data-goes).

## Enum reference

Expand Down
Loading
Loading