# Sentry SDK compatibility

Bucker's ingest speaks Sentry's envelope protocol, so an unmodified Sentry SDK pointed at a
Bucker DSN reports here. Changing the DSN is the only change. This page says exactly what of
that traffic is kept, what is refused, and why. The wire grammar itself is in
[the ingest protocol](ingest-protocol.md).

Nothing on this page is a belief. The matrix below is the result of running the real, pinned
SDKs, unmodified, against a local test instance of Bucker (not the hosted service) and reading back
what was stored (see
[How the matrix is made](#how-the-matrix-is-made)).

## Certified matrix

`kept` means stored and readable in the product. `refused` means refused **by name** when
it arrived, with the outcome reason shown, not billed, and shown on the drops panel with its
own explanation; the rest of the envelope is processed. `—` means that SDK version did not
send it in the scenario, either because it has no API for it or because it does not send it
by default.

<!-- certified-matrix:start -->
| SDK | Version | Run | Errors | Traces | Logs | Sessions (per session) | Sessions (server aggregates) | Cron check-ins | User feedback | Attachments (text) | Session Replay |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `sentry.javascript.browser` | 7.120.4 | live | kept | — | — | kept | — | — | kept | kept | refused (`sentry_rrweb_replay`) |
| `sentry.javascript.browser` | 8.55.2 | live | kept | kept | — | kept | — | — | kept | kept | refused (`sentry_rrweb_replay`) |
| `sentry.javascript.browser` | 10.76.2 | live | kept | kept | kept | kept | — | — | kept | kept | refused (`sentry_rrweb_replay`) |
| `sentry.javascript.browser` | 11.8.0 | live | kept | kept | kept | kept | — | — | kept | kept | refused (`sentry_rrweb_replay`) |
| `sentry.javascript.node` | 7.120.4 | live | kept | kept | — | kept | — | kept | — | kept | — |
| `sentry.javascript.node` | 8.55.2 | live | kept | kept | — | kept | kept | kept | kept | kept | — |
| `sentry.javascript.node` | 10.76.2 | live | kept | kept | kept | kept | kept | kept | kept | kept | — |
| `sentry.javascript.node` | 11.8.0 | live | kept | kept | kept | kept | kept | kept | kept | kept | — |
| `sentry.python` | 2.72.0 | live | kept | kept | kept | — | kept | kept | — | — | — |
<!-- certified-matrix:end -->

*Run* is `live` when the SDK itself sent the traffic. A Python row reading `recorded` means the
bytes that `sentry-sdk`'s own serializer produced were replayed to Bucker, gzipped and
authenticated exactly as its HTTP transport sends them; both must certify the same row.

## What carries over

| Feature | What Bucker does with it |
| --- | --- |
| Errors (`event`) | Grouped into issues, scrubbed, symbolicated by Debug ID. |
| Traces (`transaction`, and Sentry JS v11's streamed `span` batches) | Stored as spans in the same table OTLP spans land in. The root span is named after the transaction, children after their description; `op`, tags and the transaction name are kept as attributes. Metered as one `transaction` unit per span, as OTLP meters the same rows. |
| Logs (`log`) | Stored as log records, with `level`, typed attributes, environment and release read from Sentry's record shape. |
| Sessions, per session (`session`) | Release health: crash-free sessions and crash-free users. A session with no `release` is refused (`session_missing_release`). |
| Sessions, server aggregates (`sessions`) | The per-minute counts a server SDK sends in request mode. They feed crash-free **sessions** and adoption. They cannot feed crash-free **users**: an aggregate has no per-session identity. The dashboard says "not derivable from aggregates" rather than computing a number, and the API reports how many sessions arrived this way (`aggregatedSessions`). |
| Cron check-ins (`check_in`) | Recorded on the cron monitor named by `monitor_slug`. A monitor is created from `monitor_config` when it does not exist yet (crontab, or a minute, hour, day or week interval), under the same rules as the HTTP check-in route. |
| User feedback (`feedback`, `user_report`) | Stored as feedback, linked to the issue of the event it names, with the same spam scoring and injection scanning as the feedback widget's route. |
| Client reports (`client_report`) | The SDK's own drop counts, on the drops panel. |
| Attachments (`attachment`) | Stored and shown on the event's Attachments panel — see [Attachments](#attachments) below for what is kept. Metered per started 256 KiB. |
| Source-map uploads (`sentry-cli sourcemaps upload`, the `sentry` CLI, `@sentry/*-plugin`) | Served: chunk-upload, artifact-bundle assemble, releases new/finalize and deploys, with `SENTRY_URL` at the Bucker API (`https://api.bucker.io`) and a Bucker org CI token or PAT as the auth token. Each map is stored under its Debug ID and verified; a bundle with no Debug IDs fails the upload. See [Switch from Sentry §3](switch-from-sentry.md#3-source-maps). |

## What does not carry over

| Feature | What happens, and why |
| --- | --- |
| Session Replay (rrweb `replay_event` + `replay_recording`) | Refused by name as `unsupported_item_type:sentry_rrweb_replay`. Bucker's player reads its own interaction stream, not rrweb DOM snapshots. Use the Bucker browser SDK for replay, or turn replay off in the Sentry SDK. |
| Binary attachments other than minidumps, credential-shaped files, and screenshots on a project that did not opt in | Refused by name, not billed — see [Attachments](#attachments). |
| Profiles (`profile`, `profile_chunk`) | Refused by name as `unsupported_item_type:profile`. Bucker does not offer profiling; set the profile sample rate to zero. |
| Crash-free users from server aggregates | Not derivable, as above. |
| Legacy release-file uploads (`sentry-cli releases files upload`, release-plus-filename matching) | Not served. Debug-ID artifact bundles only — the upload path above. |

## Which SDKs are talking to a project

**Settings › Projects › SDKs** lists every SDK that reported to a project in the last week —
name and version from the envelope header, Bucker's or Sentry's, its share of the envelopes,
what it sent by kind (events, span items, logs, sessions, check-ins) and how many of its items
were dropped at the edge, with a link to the drops panel narrowed to that project. Each row
carries the hints that apply to it:

| Hint | When |
| --- | --- |
| Below the supported version | A Bucker SDK older than its floor (the same floor the ingest `Deprecation` header announces). |
| Not certified | A Sentry SDK major the [certified matrix](#certified-matrix) does not include, or a language it does not cover (Go, Ruby, PHP, Java, .NET). |
| Streams spans | Sentry JS 11's span batches, which are stored as spans. |
| Sends only traces | Spans but no errors: issues appear once the SDK captures one. |
| Items refused | Something it sent was refused by name (replays, profiles) or was over the item size. |

`GET /orgs/{orgSlug}/projects/{projectSlug}/sdks` is the same list for a script. The counts are
batched rather than updated per envelope, so they can lag by a few seconds.

## Attachments

`attachment` items (`Sentry.addAttachment`, `scope.addAttachment`, and Bucker's own SDKs) are
stored against the event they name — the envelope header's `event_id`, or the item header's —
and listed on that event's **Attachments** panel with a download link and,
for text, an inline view.

| Kind | Kept? | How |
| --- | --- | --- |
| Text and logs (`text/*`, JSON, XML, YAML, and `.log`/`.txt`/`.har`… names) | Yes | **Scrubbed before it is written**, line by line, with the same built-in rules and your organization's own scrub rules the event goes through. The panel says how many values were redacted. |
| Minidumps (`attachment_type: event.minidump`, `.dmp`) | Yes | Stored as sent: a minidump is binary and cannot be scrubbed. Bucker does not process it (it does not symbolicate minidumps); it is there to download. |
| Screenshots (`image/png`, `image/jpeg`, …) | Only if the project opts in | Off by default (Settings › Projects › Attachments), following [the replay posture](replay-privacy.md): a screenshot is a picture of whatever was on a user's screen. Masking is the capturing SDK's job. Refused as `unsupported_item_type:attachment_screenshot` otherwise. |
| Any other binary | No | Refused as `unsupported_item_type:attachment_binary`: nothing renders it and nothing can scrub it. |
| A file named like a credential (`.env`, `*.pem`, `*.key`, `id_rsa`, `credentials.json`, …) | No | Refused unread as `unsupported_item_type:attachment_secret_name`, whatever its type. |

Refusals happen when the envelope is received and are not billed. A kept attachment is metered as one
`attachment` unit per started 256 KiB (an item is at most 1 MiB). An event keeps at most 20
attachments (5 MiB in all), and an organization at most its plan's standing attachment storage
(100 MiB on Free, 5 GiB on Pro, 20 GiB on Team, 100 GiB on Enterprise); past either, the
attachment is not stored and the drops panel says which limit it hit. Attachments are deleted
with the plan's event retention, object first.

Downloads are five-minute signed links, minted for a reader who can see the project, and served
as a file download that the browser will not render.

## Mobile

Native symbolication is implemented for **Bucker's own Flutter SDK's native events** and for native
debug files uploaded under the Bucker kinds `ELF_DEBUG`, `DSYM`, `DART_SYMBOLS`, `DART_OBFUSCATION_MAP`
and `PROGUARD` (see [Flutter native crashes](flutter-native-crashes.md)). It is **implemented and tested
on the build host (Linux ELF files and hand-built Mach-O and mapping fixtures); it has not been validated
against real devices or store builds**, and it is off until the operator turns it on.

The artifact upload route accepts those native kinds only on a deployment that sets
`SYMBOLICATION_NATIVE_UPLOADS=true` (off by default). While it is off, the route refuses them with a
`422` (`reason: native-symbolication-not-offered`) instead of storing and billing bytes that could never
resolve a frame. Source maps (`SOURCEMAP`) and bundles are unaffected.

What this means for a **Sentry** mobile SDK pointed at Bucker: errors are stored and grouped, but the
Sentry SDKs' native frames carry debug ids in Sentry's own byte order, which can differ from the ids Bucker
derives from the same file (an ELF build id, for one), so do not expect them to resolve against files
uploaded with Bucker's CLI. Treat the Sentry mobile SDKs as "errors only". They are not in the certified
matrix. Native capture is a property of the Bucker Flutter SDK.

## How the matrix is made

Each pinned SDK (`@sentry/node` and `@sentry/browser` 7, 8, 10 and 11, and `sentry-sdk` for
Python) runs unmodified, over its own transport, against the DSN of an ordinary project on a local test
instance of Bucker. The browser SDK runs in jsdom, a simulated browser, not in a real browser.
Each sends the same scenario: an error, a trace, a log, a cron check-in pair, user feedback, its
sessions, and (browser) a Session Replay. What was stored is then read back and compared with
the published matrix cell for cell, so this page never claims more than a run shows.

Nothing is allowed to vanish silently either: every item a run leaves undelivered must be one of
the by-name refusals above, so a Sentry payload reshaped in a new SDK release shows up as a
failed check on our side rather than as a silent drop on yours. The pins are refreshed
regularly; a cell that stops being `kept` is treated as a regression to fix, not a matrix to
accept.
