Skip to content

feat(attributes): Add allowWildcard to search aliases - #661

Draft
nsdeschenes wants to merge 3 commits into
mainfrom
nd/feat-search-alias-allow-wildcard
Draft

nsdeschenes wants to merge 3 commits into
mainfrom
nd/feat-search-alias-allow-wildcard

Conversation

@nsdeschenes

Copy link
Copy Markdown
Contributor

Summary

  • Add an allowWildcard flag on search aliases so string attributes can opt out of wildcard queries. It defaults to true and is rejected on non-string types.
  • Disable wildcards on exact-match aliases: id, device.class, profile.id, profiler.id, release, and replay.id.
  • Regenerate the JavaScript and Python attribute metadata.

Description

Search aliases can now set allowWildcard: false to disable wildcard queries. Identifier-style aliases opt out because partial matches are not useful there.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

Test plan

  • yarn test
  • yarn generate is a no-op against this branch
  • Confirm search metadata emits allowWildcard: false only for the opted-out aliases, and omits it everywhere else

Made with Cursor

nsdeschenes and others added 3 commits October 1, 2026 15:02
Search can opt individual string attributes out of wildcard queries. The flag defaults to true and is rejected on non-string types.

Co-authored-by: Cursor <cursoragent@cursor.com>
IDs, release, and device class are exact-match keys, so wildcard queries on their search aliases are not useful.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 1, 2026 6:04pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Op

  • Deprecate framework-specific span ops by Lms24 in #622
  • Add span op deprecation support by Lms24 in #621

Other

  • (attributes) Add allowWildcard to search aliases by nsdeschenes in #661

🤖 This preview updates automatically when you update the PR.

This branch was successfully deployed

1 active deployment
Preview — a3d12850 Deployed Oct 1, 2026 by vercel[bot]
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