Skip to content

Releases: getsentry/snuba

26.6.0

15 Jun 23:52

Choose a tag to compare

New Features ✨

Eap

  • Route EAP RO storages through their _dist_ro tables by @phacops in #7996
  • Add _dist_ro Distributed tables for EAP read-only routing by @phacops in #7995

Other

  • (allocation-policy) Per-org overrides for bytes-scanned policy by @phacops in #7975
  • (attribute-values) Add counts to response and orderby by @wmak in #7960
  • (cbrs) Add per-organization ClickHouse setting overrides by @phacops in #8010
  • (search_issues) Add ClickhouseSettingsOverride query processor by @MeredithAnya in #8015
  • Map SilencedDLQMessage to InvalidMessageReason::Ignored by @lcian in #8019

Bug Fixes 🐛

  • (admin) Validate host/port before constructing any admin ClickhousePool by @phacops in #8003
  • (eap) Include bool keys in attribute_keys_hash by @phacops in #7991
  • (web) Return HTTP 404 for unknown dataset names by @phacops in #8021

Internal Changes 🔧

Clickhouse

  • Lower minimum ClickHouse version to 23.8.11.29 by @phacops in #7994
  • LZ4-compress INSERT bodies in ClickhouseWriterStep by @phacops in #7993

Deps

  • Bump sentry-conventions to 0.11.0 by @constantinius in #8013
  • Bump getsentry/self-hosted from 3701f1e1927e2a91b912af34952f95f2b69fc4e3 to 53b2a6fb5c032adb61945963d8051673f4d5d306 by @dependabot in #8004
  • Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot in #8005
  • Bump getsentry/sentry-options/.github/workflows/validate-schema.yml from 98749eaae09ad60bf8a10c59b531e0890695a991 to ceed9df987a4085bd3e662d188a55216d40a92d1 by @dependabot in #8006
  • Bump getsentry/craft from 2.26.6 to 2.26.8 by @dependabot in #8007
  • Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 by @dependabot in #8008

Eap

  • Stop reading whole attributes_array column in export endpoint by @phacops in #8024
  • Drop uncompressed insert body before retry loop by @phacops in #8009

Other

Other

26.5.2

02 Jun 18:18

Choose a tag to compare

New Features ✨

  • (eap) Route select queries to read-only cluster by @phacops in #7969
  • (replacer) Expose --max-poll-interval-ms and --health-check-file into the CLI by @aldy505 in #7961

Bug Fixes 🐛

  • (admin) Use readonly user for non-sudo clusterless system queries by @phacops in #7974
  • (docker) Detect snuba subcommands via listdir instead of --help probe by @oioki in #7968

Internal Changes 🔧

Deps

  • Bump actions/cache from 5.0.4 to 5.0.5 by @dependabot in #7981
  • Bump actions/labeler from 6.0.1 to 6.1.0 by @dependabot in #7982
  • Bump getsentry/craft from 2.25.0 to 2.26.6 by @dependabot in #7983
  • Bump getsentry/self-hosted from 871c182cb0a99dc1fad72cc7ce7889b514b0c5f0 to 3701f1e1927e2a91b912af34952f95f2b69fc4e3 by @dependabot in #7984
  • Bump getsentry/action-validate-gocd-pipelines from 80fde540c1403d52e17783368930fa28bd93447f to 5662a2b631d4e2aa1bfc21e878f9e131c31c40c1 by @dependabot in #7985
  • Bump actions/dependency-review-action from 4.9.0 to 5.0.0 by @dependabot in #7986
  • Bump actions/upload-artifact from 7.0.0 to 7.0.1 by @dependabot in #7987
  • Bump docker/setup-buildx-action from 4.0.0 to 4.1.0 by @dependabot in #7988
  • Bump actions/create-github-app-token from 3.1.1 to 3.2.0 by @dependabot in #7989
  • Bump docker/build-push-action from 7.1.0 to 7.2.0 by @dependabot in #7990
  • Update sentry-conventions to 0.10.0 by @mjq in #7978

Eap Items

  • Encode RowBinary inserts in the processor by @phacops in #7979
  • Normalize client and server sample rates by @phacops in #7973
  • Stop double writing booleans into float columns by @phacops in #7689

Other

26.5.1

27 May 17:01

Choose a tag to compare

New Features ✨

Eap Items

  • Partition-boundary DLQ killswitch, per-storage by @onewland in #7946
  • Add eap_items_dlq_replay storage for DLQ consumption by @onewland in #7944
  • Runtime killswitch to DLQ messages with old event timestamps by @onewland in #7940

Other

  • (consumer) Per-storage max_insert_block_size override by @onewland in #7939
  • (eap) Make deprecated attribute coalescing bidirectional by @mjq in #7953
  • (eap-outcomes) Record broker latency metrics by @MeredithAnya in #7948

Bug Fixes 🐛

  • (rpc) Defensively convert array attributes by @shellmayr in #7951
  • Revert "functions dataset: add max_execution_time (#7931)" by @sentry-snuba-fast-revert-bot[bot] in 44055513

Internal Changes 🔧

Deps

  • Drop vulnerable rand 0.7.3 and ecdsa transitive deps by @phacops in #7967
  • Bump deps to address dependabot security alerts by @phacops in #7965
  • Bump actions/checkout from 4.2.2 to 6.0.2 by @dependabot in #7850
  • Bump actions/create-github-app-token from 2.2.2 to 3.1.1 by @dependabot in #7905
  • Bump getsentry/sentry-options/.github/workflows/validate-schema.yml from fa066c1d3ef0849153092a0272c17fc0bcce14c8 to 369660e343ea1856e631af921725931f8ae4e3cf by @dependabot in #7903
  • Bump peaceiris/actions-gh-pages from 47f197a2200bb9de68ba5f48fad1c088eb1c4a32 to 4f9cc6602d3f66b9c108549d475ec49e8ef4d45e by @dependabot in #7900
  • Bump rand from 0.9.2 to 0.9.3 in /rust_snuba by @dependabot in #7874
  • Bump docker/setup-buildx-action from 3.12.0 to 4.0.0 by @dependabot in #7906
  • Bump actions/setup-node from 6.3.0 to 6.4.0 by @dependabot in #7901
  • Bump handlebars from 4.7.8 to 4.7.9 in /snuba/admin by @dependabot in #7844
  • Bump getsentry/action-github-app-token from 3.0.0 to 4.0.0 by @dependabot in #7828
  • Bump docker/build-push-action from 6.19.2 to 7.1.0 by @dependabot in #7904
  • Bump volta-cli/action from 4.2.1 to 5.0.0 by @dependabot in #7902
  • Bump astral-sh/setup-uv from 7.3.1 to 8.1.0 by @dependabot in #7883
  • Bump @tootallnate/once from 2.0.0 to 2.0.1 in /snuba/admin by @dependabot in #7958
  • Bump lz4_flex from 0.11.5 to 0.11.6 in /rust_snuba by @dependabot in #7820
  • Bump pyasn1 from 0.6.2 to 0.6.3 by @dependabot in #7822
  • Bump cryptography from 46.0.5 to 46.0.7 by @dependabot in #7927
  • Bump actix-http from 3.12.0 to 3.12.1 in /rust_snuba by @dependabot in #7892
  • Bump requests from 2.32.4 to 2.33.0 by @dependabot in #7928
  • Bump urllib3 from 2.6.3 to 2.7.0 by @dependabot in #7936

Eap Outcomes

Gocd

Inc 2179

Other

  • (deps-dev) Bump pytest from 8.3.3 to 9.0.3 by @dependabot in #7926
  • (eap) Read only allowlisted attributes_array sub-paths by @phacops in #7947
  • (spans) Remove deprecated standalone spans storage by @phacops in #7955

26.5.0

18 May 08:11

Choose a tag to compare

New Features ✨

  • (clickhouse) Add timeout for ClickHouse pool connection acquisition by @onewland in #7920

Bug Fixes 🐛

  • (ci) Set build_target to 'application' to reduce Docker image size by @aldy505 in #7913
  • (inc-2141) Only check essential clusters in liveness healthcheck by @onewland in #7925

Internal Changes 🔧

Other

  • functions dataset: add max_execution_time by @xurui-c in #7931
  • OutcomesBasedRoutingStrategy: allow org-specific downsampling by @xurui-c in #7923

26.4.2

05 May 13:58

Choose a tag to compare

New Features ✨

  • (data-explore) Add support in EAP to filter Array by elements by @manessaraj in #7898
  • (devservices) Use distroless image in devservices by @oioki in #7909
  • (explore) Add support for array in TraceItemDetail and TraceItemTable Endpoints by @manessaraj in #7890

Bug Fixes 🐛

Eap

Other

  • (eap-outcomes) Add trace ID and timestamp to dedup key by @untitaker in #7915

Internal Changes 🔧

Eap Outcomes

Snuba Commit Log

  • Remove commit log next offset option from sentry-options schema by @shashjar in #7894
  • Remove the option gating next offset production to the commit log by @shashjar in #7893

Other

Other

  • feat(logs) : Update export items endpoint to respect sampling & routing decision by @manessaraj in #7907
  • dep: upgrade granian to 2.7.4 by @gi0baro in #7914

26.4.1

22 Apr 19:52

Choose a tag to compare

New Features ✨

  • Add default value to attribute aggregations by @wmak in #7888
  • Make BLQ stale threshold and static friction runtime-configurable by @kylemumma in #7880

Bug Fixes 🐛

  • (admin) Allow ClickHouse replace* functions in read-only query validation by @xurui-c in #7876
  • (COGS) Unique labels for resource_ids by @xurui-c in #7864
  • (outcomes) Deduplicate outcomes by item_id within batch by @untitaker in #7885

Internal Changes 🔧

Eap Outcomes

Other

  • (ci) Pull out migrations tests maybe lets see by @MeredithAnya in #7881
  • (gocd) Bump gocd-jsonnet to v3.0.0 (grouped pipedream) by @mchen-sentry in #7878
  • Bump new development version by @sentry-release-bot[bot] in 41fe9b16

26.4.0

15 Apr 18:59

Choose a tag to compare

New Features ✨

Consumer

  • Emit batch_write_bytes metric from RowBinary writer by @onewland in #7863
  • Add memory-based batching limit to Rust consumer by @onewland in #7854

Other

Bug Fixes 🐛

Rpc

  • Honor deprecated attribute keys in trace item attribute values by @xurui-c in #7853
  • Validate that TraceItemTable requests have at least one column by @volokluev in #7837

Other

  • (ci) Bump timeout and use --no-project on bump_version test by @kenzoengineer in #7841
  • (COGS) Label metrics correctly for query side by @xurui-c in #7826
  • (slo) Correctly report TOO_MANY_BYTES from allocation policy as rate-limited by @volokluev in #7846
  • (snuba commit log) Modify Rust consumer to produce next message offset to Snuba commit log by @shashjar in #7852

Internal Changes 🔧

Eap Outcomes

Other

Other

26.3.1

17 Mar 17:05
4c24181

Choose a tag to compare

ref(eap-outcomes): updating committing logic, more metrics (#7813)

## Summary

This PR improves the committing and backpressure handling in the
accepted outcomes consumer, and adds a `--commit-frequency-sec`
parameter to control how often commit requests are emitted.

### Changes

- **`CommitOutcomes`**: Added a configurable `commit_frequency` (default
10s) so that offsets are only committed on a timer rather than on every
poll. Offsets are now only tracked after a successful produce — if the
produce step rejects a message, offsets are **not** advanced. On `join`,
a forced commit is issued regardless of the timer.

- **`OutcomesAggregator`**: Fixed backpressure handling. Previously,
when the next step rejected a message during flush, the batch was
silently restored and the flush effectively became a no-op. Now, a
rejected message is carried over and retried on the next `poll`. While a
message is carried over, incoming `submit` calls return
`MessageRejected` so upstream applies backpressure. The `join` path also
retries carried-over messages until they succeed or the deadline
elapses.

- **`ProduceOutcome`**: Added a `timer!` metric
(`accepted_outcomes.batch_produce_ms`) to track how long each batch
produce takes.

- **`accepted_outcomes_consumer` CLI**: Added `--commit-frequency-sec`
(default `10`) that is plumbed through to `CommitOutcomes`.

### Future considerations

- Might have this just run `RunTask` instead of `RunTaskInThreads` given
that producing should be pretty quick and batching will be what takes
longer, might be better to prevent flushing a batch until the first once
is done producing. If we have multiple threads and something fails that
would be more data loss if we are committing early

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

26.3.0

16 Mar 16:34
8c4c8b5

Choose a tag to compare

fix(cogs): label metrics correctly (#7815)

26.2.1

21 Feb 00:45
5919b8c

Choose a tag to compare

ref(tests): refactor migration validator tests (#7754)

As a continuation of my journey to see where we are spending our time in
tests, it seems like a lot of time is spent in the migrations tests, or
really any test that requires `clickhouse_db` marker. Some other PRs aim
to run only whats neccesary, see
https://github.com/getsentry/snuba/pull/7749 and
https://github.com/getsentry/snuba/pull/7751.

Here `test_validate_all_migrations` is iterating over all the migrations
to validate the order, and the only reason it was using the
`clickhouse_db` marker is because it was querying clickhouse in order to
do some logic to get the local name for a dist table. We don't need to
do all that, we can do what we do in admin
https://github.com/getsentry/snuba/blob/5fd5b75ea00fd7c30f631aedf5b33598045d267a/snuba/admin/clickhouse/nodes.py#L31
by looking at the table schema for the storages associated with the
storage set key