Skip to content

fix: Align code.function.name description with OTel#335

Merged
alexander-alderman-webb merged 4 commits into
mainfrom
webb/code-function-name
Apr 28, 2026
Merged

fix: Align code.function.name description with OTel#335
alexander-alderman-webb merged 4 commits into
mainfrom
webb/code-function-name

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Apr 23, 2026

Description

Align the description with OTel to make it explicit that the attribute holds the fully qualified name: https://opentelemetry.io/docs/specs/semconv/registry/attributes/code/

The deprecation reason of the code.function.namespace attribute is that the code.function.name attribute should include the namespace, implying that the value of code.function.name is a qualified function name.

Looks like a copypasta mistake as the code.function.name description was copied from the code.function description.

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 pii (i.e. maybe or true. Use false only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@alexander-alderman-webb alexander-alderman-webb changed the title fix: Align code.function.name description with OTel fix: Align code.function.name description with OTel Apr 23, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 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 device.low_power_mode attribute for iOS by itaybre in #314

Bug Fixes 🐛

  • Align code.function.name description with OTel by alexander-alderman-webb in #335
  • Backfill several deprecated attributes by loewenheim in #332

Internal Changes 🔧

  • (attributes) Mark deprecated gen_ai and ai attributes as backfill by vgrozdanic in #333
  • (deps) Bump astro from 6.0.2 to 6.1.6 in /docs by dependabot in #330

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review April 23, 2026 13:35
@alexander-alderman-webb alexander-alderman-webb merged commit d8fdff1 into main Apr 28, 2026
18 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/code-function-name branch April 28, 2026 08:00
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