Skip to content

feat(descriptions): Add graphql span description rules - #616

Merged
Lms24 merged 3 commits into
mainfrom
lms/feat-descriptions-gql
Sep 3, 2026
Merged

feat(descriptions): Add graphql span description rules#616
Lms24 merged 3 commits into
mainfrom
lms/feat-descriptions-gql

Conversation

@Lms24

@Lms24 Lms24 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Description

We already have span name rules for graphql spans, but we were missing description rules. This PR adds them.

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:

@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners September 3, 2026 08:27
@github-actions

github-actions Bot commented Sep 3, 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 ✨

Attributes

  • Add sveltekit.* attributes emitted by SvelteKit's native spans by Lms24 in #611
  • Add browser.navigation.type, move navigation.* to router.navigation.* by logaretm in #600
  • Add langchain.chain.name (deprecated) in favor of gen_ai.pipeline.name by RulaKhaled in #599
  • Add browser.paint.type by Lms24 in #606

Names

  • Add browser.* span name and description rules by Lms24 in #607
  • Add cache span name rules by Lms24 in #605

Other

  • (descriptions) Add graphql span description rules by Lms24 in #616

Internal Changes 🔧

Deps

  • Bump browserslist from 4.28.2 to 4.28.8 by dependabot in #614
  • Bump fast-uri from 3.1.5 to 3.1.7 by dependabot in #612

Other

  • (descriptions) Fix http.client span description example by Lms24 in #603
  • (names) Add OTel divergence note for graphql span names by Lms24 in #615

🤖 This preview updates automatically when you update the PR.

@Lms24 Lms24 self-assigned this Sep 3, 2026
Comment thread model/description/graphql.json

@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 6f3c7b6. Configure here.

Comment thread model/description/graphql.json
Add the base `graphql` op, which is registered in the op model and used by
SDK instrumentation, so those spans get a description like the other
category files do for their base ops.

Also add `{{graphql.processing.type}}` as a final fallback, so
processing-phase spans (parse, validate, resolve) that carry no operation
or document attribute still resolve to a description, matching
`model/name/graphql.json`.

Co-Authored-By: Claude <noreply@anthropic.com>
@Lms24
Lms24 enabled auto-merge (squash) September 3, 2026 11:49
@Lms24
Lms24 merged commit 5e70814 into main Sep 3, 2026
17 checks passed
@Lms24
Lms24 deleted the lms/feat-descriptions-gql branch September 3, 2026 11:49
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.

2 participants