Product events
product_event is a Bucker SDK envelope item for product analytics. It is not a Sentry item. This page is what Bucker does when it receives one, the per-item answer, the caps, and what is and is not stored.
An item is accepted only for a project that has product analytics turned on, and no project can turn it on yet (see Turning on product analytics); otherwise it is refused on arrival with product_category_disabled. It meters as the product category.
The checks on arrival
The checks run per item, in this order, and are never reordered. Each refusal writes an outcome row with its reason and appears in the per-item results array of the response. Nothing is dropped silently.
| Order | Check | What it decides |
|---|---|---|
| 1 | Reserved names and caps | Strips the item keys only Bucker may set (an SDK cannot assert its own basis or claim the overflow lane). Checks the reserved-name table, the caps, and a timestamp more than 23 hours ahead of the server clock (future_timestamp). Corrects sent_at skew unless the envelope declares import mode; in import mode the event times are kept and import_id is stamped. |
| 2 | Illegal ids | An illegal distinct_id (empty, null, undefined, anonymous, and similar) does not refuse the item: it is stored personless with illegal_distinct_id, and counted. |
| 3 | Consent basis | Resolves the storage basis from the consent header, the project's consent settings and the rule for the dataset. No acceptable basis is consent_required, or the item is counted only in exempt aggregates, where the register permits. |
| 4 | Duplicates | A uuid seen in the last 48 hours for the project is duplicate (outcome product_event_duplicate) and is counted nowhere. |
| 5 | Hot keys | A (project, distinct id) stream above 5,000 events a minute goes to the overflow lane: no subject processing, a warning row, result accepted with warning overflow. |
Caps
| Cap | Value | Reason on breach |
|---|---|---|
| Event size | 64 KB | property_cap_exceeded |
| Properties per event | 500 | property_cap_exceeded |
| Property key | 200 characters | property_cap_exceeded |
| String value | 1 KiB | property_cap_exceeded |
| Event name | 200 characters | property_cap_exceeded |
Results
Each item of the response results array carries result (accepted, refused or duplicate), a reason and an optional warning.
| Result | Reason or warning | Meaning |
|---|---|---|
accepted |
none | Queued for processing. |
accepted |
warning overflow |
Hot-key overflow lane; counted, no subject processing. |
accepted |
warning illegal_distinct_id |
Stored personless. |
duplicate |
product_event_duplicate |
Same uuid inside 48 hours. Counted nowhere. |
refused |
property_cap_exceeded, reserved_event_name, future_timestamp, consent_required |
Not stored. One outcome row. |
Processing
Accepted items are processed in batches. Bucker resolves the subject and the session, derives the actor type and traffic class, stamps the basis, and updates every count the batch feeds (sessions, product rollups, web analytics, interactions, flag exposures, surveys, subject properties) together: either all of a batch is counted or none of it is.
An item that passed the checks on arrival and is still unusable is poison: an invalid outcome with reason poison_event:<code>, counted, and the rest of the batch goes on. Only a failure on Bucker's side is retried.
Processing product events is also behind a service-wide switch that is off by default. While it is off, items are accepted and metered as above and then not processed: each is recorded with an unsupported_item_type outcome and the reason behind pillar.
What is stored
- Folded counts in sessions and declared rollups, and a batch log (a token and counts).
- The duplicate check's ledger: a uuid and a day, kept for two days.
- Warning rows per project, hour, kind and event name (names past 50 in an hour file under
$other). - Outcome rows for every refusal.
What is not stored
- No raw event body, property value, raw
distinct_id, IP address or User-Agent in any table. End-user identifiers at rest are keyed pseudonyms (see Identity and pseudonyms). - The received envelope is deleted once it has been processed, so raw ids exist only until then; the seven-day raw retention that applies to error events does not apply here. A batch that could not be processed keeps its envelope for inspection until the ordinary clean-up.
Reading the warnings
GET /orgs/:orgSlug/projects/:projectSlug/product-events/warnings (project read; query windowHours, default 24, at most 14 days) returns the warning rows for the project: kind, event name, count, window.