Skip to content

feat(explore): Tag dropped events as intentional vs unintentional - #127850

Merged
adrianviquez merged 1 commit into
masterfrom
sarajmanes/dain-1908-backend-intentional-vs-unintentional-classification-in-api
Oct 19, 2026
Merged

adrianviquez merged 1 commit into
masterfrom
sarajmanes/dain-1908-backend-intentional-vs-unintentional-classification-in-api

Conversation

@manessaraj

@manessaraj manessaraj commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Tag each dropped-events bucket as intentional or unintentional so the UI and agents can suppress noise from drops the user configured on purpose.

Refs DAIN-1908

@linear-code

linear-code Bot commented Oct 16, 2026

Copy link
Copy Markdown

DAIN-1908

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@manessaraj
manessaraj marked this pull request as ready for review October 16, 2026 19:51
@manessaraj
manessaraj requested review from a team as code owners October 16, 2026 19:51
@adrianviquez
adrianviquez merged commit 41d88e6 into master Oct 19, 2026
76 of 77 checks passed
@adrianviquez
adrianviquez deleted the sarajmanes/dain-1908-backend-intentional-vs-unintentional-classification-in-api branch October 19, 2026 16:28
RudraPatel2003 pushed a commit that referenced this pull request Oct 19, 2026
…27850)

Tag each dropped-events bucket as `intentional` or `unintentional` so
the UI and agents can suppress noise from drops the user configured on
purpose.

Refs DAIN-1908
adrianviquez added a commit that referenced this pull request Oct 20, 2026
This PR integrates the use of `tags` from new additions to the backend
in [this PR](#127850).

Currently, we let the FE filter out information based on hardcoded
values, but we're moving to the BE being the source of truth for these.

Closes DAIN-1942
manessaraj added a commit to getsentry/toolkit that referenced this pull request Oct 20, 2026
…d_events (#1560)

## Summary

The `events-dropped` endpoint tags each drop bucket as `intentional` or
`unintentional`
([getsentry/sentry#127850](getsentry/sentry#127850),
refined in [#128138](getsentry/sentry#128138)),
but `find_dropped_events` was stripping the field before the agent saw
it. This surfaces it.

`tags` provide extra information about drops:
- **`intentional`** — intended drops caused by user configuration
(sampling, inbound filters, `before_send`).
- **`unintentional`** — drops the user did not intend (quota, abuse,
invalid).

The API-client schema already `.passthrough()`es `tags`, so only the
tool layer needed the change.
joseph-sentry pushed a commit that referenced this pull request Oct 20, 2026
This PR integrates the use of `tags` from new additions to the backend
in [this PR](#127850).

Currently, we let the FE filter out information based on hardcoded
values, but we're moving to the BE being the source of truth for these.

Closes DAIN-1942
sentry-junior Bot added a commit to getsentry/toolkit that referenced this pull request Nov 4, 2026
- getDroppedEvents uses listOrganizationEventsDropped with getOrgSdkConfig
  and unwrapResult instead of a hand-written request and response schema.
- The row schema moves to output-schemas/event.ts and takes its API fields
  from vListOrganizationEventsDroppedResponse. types/dropped-events.ts and
  output-schemas/dropped-events.ts are removed.
- Tags still default to [] for servers older than getsentry/sentry#127850.
- --period uses LIST_PERIOD_FLAG and PERIOD_ALIASES (7d default, -t).

Co-Authored-By: BYK <[email protected]>
betegon pushed a commit to getsentry/sentry-changelog that referenced this pull request Nov 5, 2026
Adds a Sentry MCP changelog entry for changes deployed to mcp.sentry.dev
after the #230 endpoint (`8d3affe`, 2026-10-19 14:38 UTC) through the
latest production deploy (`5b7ea24`, 2026-10-22 12:56 UTC).

The entry covers:

- `intentional` / `unintentional` tags on `find_dropped_events` buckets
(#1560)
- attribute descriptions and pagination when `search_traces`,
`search_logs`, and `search_metrics` write a query (#1505, #1518)
- a lighter project check for project-scoped connections, with 60-second
caching of timeouts (#1551)
- fixes: time series with text values (#1424), `create_project` with
unlinked repositories (#1297), and Claude-User clients showing as Claude
instead of Claude Desktop in issue activity (#1516)
- no new `@sentry/mcp-server` npm release in this period (latest is
still 0.42.0)

**Commit filtering:** 33 non-merge commits are in `8d3affe..5b7ea24` (no
merge commits). 17 are MCP-relevant: 13 touch `packages/mcp-core`,
`mcp-cloudflare`, or `mcp-server`, and 4 bump dependencies those
packages use (`hono`, `vite`, `@modelcontextprotocol/server`,
`@modelcontextprotocol/sdk`). The other 16 are CLI-only, CLI docs, or
CI-only.

**Left out:** dependency bumps (#1567, #1562, #1566, #1565); the
wrangler upgrade for deploy tokens (#1570); `upstreamScopes` on OAuth
grants, which nothing reads yet (#1561); the shared formatter removal,
which changes nothing outside experimental mode (#1420); the CLI
metric-alert fix, whose MCP side only moves constants to `toolkit-core`
(#1591); and lint and formatting changes (#1556, #1547).

**Backend dependencies:** #1560 relies on getsentry/sentry#127850 and
#128138 (merged 2026-10-19 and 2026-10-20). #1516 relies on
getsentry/sentry#127717 (merged 2026-10-20). I checked that these PRs
merged, not when Sentry deployed them.

**Credits:** #1424 and #1297 were opened by Seer autofix and #1516 by
Junior. #1424 credits Miguel Betegón from the commit's co-author
trailer. #1297 has no human author or co-author, so it keeps only its
link. #1516's only human co-author trailer has an email and no GitHub
handle, so it also keeps only its link.

**Commit trailer:** the requested `Co-authored-by: Miguel Betegón`
trailer is missing from the commit. Junior's runtime commit hook removes
co-author trailers written by the model and adds only trailers from the
human who started the run. This run was started by the scheduler, so it
added none.

**Deployment evidence:**
- baseline `8d3affe` (exclusive): [run
39270735631](https://github.com/getsentry/toolkit/actions/runs/39270735631),
2026-10-19 14:38 UTC
- endpoint `5b7ea24` (inclusive): [run
39782031875](https://github.com/getsentry/toolkit/actions/runs/39782031875),
2026-10-22 12:56 UTC. Candidate smoke tests, promotion to production,
ownership check, and production smoke tests all passed, and the recovery
step was skipped.
- Since then, every Deploy to Cloudflare run has failed before
promotion. In [run
39809996665](https://github.com/getsentry/toolkit/actions/runs/39809996665),
`f5004b2` was staged at 0% while the `5b7ea24` version kept 100% of
traffic. Later runs fail at "Capture active production version".
`recover-cloudflare-deployment.yml` has no runs. Changes merged after
`5b7ea24` are not on mcp.sentry.dev yet and are not covered here. GitHub
Actions can't rule out a deployment made outside it.

**Validation:** `pnpm changelog:validate` passes (18 files). The body
compiles with `compileMDX` and the app's `mdxOptions` and renders to
static HTML (5 sections, 14 links, 13 inline code spans). All 7 linked
toolkit PRs are merged and are in `8d3affe..5b7ea24`. Not checked:
rendering in the Vercel preview.

The proposed publication date is 2026-10-27. The entry goes live only if
this PR is merged and synced. A draft is not a publication.

```
product=mcp
source_repo=getsentry/toolkit
baseline_exclusive=8d3affe39e7e5f1acd3961a38472663aac7326f4
endpoint_inclusive=5b7ea24e10bb315cdedf629af1afc9c8abe80347
coverage_utc=2026-10-19T14:38Z..2026-10-22T12:56Z
scan_utc=2026-10-26T13:00Z
mcp_commits=17
deploy_run=https://github.com/getsentry/toolkit/actions/runs/39782031875
compare=getsentry/toolkit@8d3affe...5b7ea24
```

<!-- junior-request-attribution:start -->
via Junior system actor `scheduler`.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!--
junior-conversation-id:agent-dispatch%3Adispatch_27b99aae0d38fd8c40b6f66918827b4b
-->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_27b99aae0d38fd8c40b6f66918827b4b)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_27b99aae0d38fd8c40b6f66918827b4b/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants