Skip to content

feat(eap-items): populate name column from sentry.op and sentry.name#8017

Open
phacops wants to merge 1 commit into
masterfrom
feat/eap-items-populate-name-column
Open

feat(eap-items): populate name column from sentry.op and sentry.name#8017
phacops wants to merge 1 commit into
masterfrom
feat/eap-items-populate-name-column

Conversation

@phacops

@phacops phacops commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Populate the generic name column (added in #8016) in the EAP items consumer. The value is sourced per item type from the primary name attribute we commonly filter on, promoting it from the attribute maps into the dedicated bloom-filter-indexed column so those filters can skip granules.

Per-item-type source attribute

The column is filled in EAPItem::try_from(TraceItem), read before the attribute map is consumed:

  • Spansentry.op
  • Metricsentry.name
  • any other item type → empty string

The source attribute is still written into the attribute maps as before; this only copies it into the dedicated column. In EAPItemRow / COLUMN_NAMES, name sits between item_id and sampling_weight. The insert uses an explicit column list, so this wire order is independent of the column's physical AFTER attributes_array position in the table.

Storage configuration

Declares the name column in eap_items and all sibling storages (read-only, the three downsampled resolutions and their _ro variants, and DLQ replay) so the read path sees it too.

Depends on #8016 for the underlying column and bf_name index.

@phacops phacops requested review from a team as code owners June 10, 2026 19:43
Populate the new generic `name` column (added in #8016) in the EAP items
consumer. The value is sourced per item type from the primary name
attribute we commonly filter on: `sentry.op` for spans and `sentry.name`
for metrics. The source attribute is still written into the attribute
maps as before; this only promotes it into the dedicated indexed column.

Declare the `name` column in the eap_items storage and all sibling
storages (read-only, downsampled, and DLQ replay) so the read path sees
it as well.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/RnmbvjU4NSsHdJEJwL_H0KFTCm_2y3okwyxmphZmzms
@phacops phacops force-pushed the feat/eap-items-populate-name-column branch from da77664 to a3f3c9a Compare June 10, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant