Skip to content

feat(descriptions): Add more fine grained function.gcp span description rules - #624

Merged
Lms24 merged 2 commits into
mainfrom
lms/ref-severless-function-desc
Sep 9, 2026
Merged

feat(descriptions): Add more fine grained function.gcp span description rules#624
Lms24 merged 2 commits into
mainfrom
lms/ref-severless-function-desc

Conversation

@Lms24

@Lms24 Lms24 commented Sep 4, 2026

Copy link
Copy Markdown
Member

Description

#617 added general FAAS description rules. After a more thorough SDK audit, we need to add more templates to ensure GCP serverless faas span descriptions are still correctly inferred like transaction-based spans set the span descriptions today.

Concrete changes:

  • add rules for function.gcp spans which includes GCP events, cloud events and http-invoked functions

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)

@github-actions

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

Descriptions

  • Add more fine grained function.gcp span description rules by Lms24 in #624
  • Add graphql span description rules by Lms24 in #616

Names

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

Other

  • (op) Add mobile OTA update span operations by antonis in #540
  • (search-attributes) Add search attribute names by nsdeschenes in #610

Bug Fixes 🐛

  • (descriptions) Add graphql-enhanced http.client span description template by Lms24 in #613

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 changed the title feat(desriptions): Add more fine grained FAAS span description rules feat(descriptions): Add more fine grained FAAS span description rules Sep 4, 2026
@Lms24 Lms24 changed the title feat(descriptions): Add more fine grained FAAS span description rules feat(descriptions): Add more fine grained function.gcp span description rules Sep 4, 2026
@Lms24 Lms24 self-assigned this Sep 4, 2026
@Lms24
Lms24 marked this pull request as ready for review September 4, 2026 12:06
@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners September 4, 2026 12:06
@Lms24 Lms24 changed the title feat(descriptions): Add more fine grained function.gcp span description rules feat(descriptions): Add more fine grained function.gcp span description rules Sep 4, 2026
Lms24 added a commit to getsentry/sentry-javascript that referenced this pull request Sep 8, 2026
…an names (#24060)

Adjusts `function.gcp` spans:

- when span streaming is enabled, span names will be the function name
(which we can read from env vars) or a string fallback
- when disabled, we keep the current names. To ensure seamless
static->streaming migrations,
getsentry/sentry-conventions#624 adds new needed
description rules to conventions.
- added new `gcp.function.context` attributes which were previously only
set on the transaction event context
- adjusted unit tests and added tests for streaming names. We currently
have no integration tests for gcp so this will have to do.

ref #23954
@Lms24
Lms24 merged commit c225040 into main Sep 9, 2026
16 checks passed
@Lms24
Lms24 deleted the lms/ref-severless-function-desc branch September 9, 2026 08:27
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