Skip to content

feat(remix): Emit low cardinality function span names - #24323

Draft
Lms24 wants to merge 1 commit into
developfrom
lms/feat-remix-low-card-function-names
Draft

feat(remix): Emit low cardinality function span names#24323
Lms24 wants to merge 1 commit into
developfrom
lms/feat-remix-low-card-function-names

Conversation

@Lms24

@Lms24 Lms24 commented Sep 10, 2026

Copy link
Copy Markdown
Member

This PR adjusts a few remix function spans so that their name becomes low cardinality. "Lost" information is retained in extra attributes and tests are adjusted. Also used the sentry.description override again because none of the names can be mapped via description inference properly.

@Lms24 Lms24 self-assigned this Sep 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6e8c390. Configure here.

expect(getSpanOp(documentRequestSpan!)).toBe('function');
expect(documentRequestSpan!.attributes['sentry.origin']?.value).toBe('auto.function.remix');
// The span name is low cardinality now, so the description carries the name it used to have.
expect(documentRequestSpan!.attributes['sentry.description']?.value).toBe(segment.name);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DocumentRequest E2E tests target wrong apps

Medium Severity

The new documentRequest E2E tests run against Node Remix apps that never create that span. documentRequest spans are only emitted when instrumentTracing is on, which Node init does not enable. The tests fail and do not cover the patched Cloudflare path that actually produces the span.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 6e8c390. Configure here.

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