Skip to content

feat: add the option to set attributes on the scope - #1208

Merged
giortzisg merged 5 commits into
masterfrom
feat/global-attrs
Feb 25, 2026
Merged

giortzisg merged 5 commits into
masterfrom
feat/global-attrs

Conversation

@giortzisg

@giortzisg giortzisg commented Feb 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

add support for attributes on the scope

Issues

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

This change eliminates preemptively boxing the attribute values and allows us to use the attribute.Builder for setting attributes with no allocations. This change also has the benefit of enforcing strong attribute types rather than any.
@giortzisg giortzisg self-assigned this Feb 24, 2026
@github-actions

github-actions Bot commented Feb 24, 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 โœจ

  • Add the option to set attributes on the scope by giortzisg in #1208

Internal Changes ๐Ÿ”ง

  • (deps) Bump github.com/gofiber/fiber/v2 from 2.52.11 to 2.52.12 in /fiber by dependabot in #1209

๐Ÿค– This preview updates automatically when you update the PR.

Comment thread scope.go Resolved

@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 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread scope.go Resolved
Comment thread scope.go Resolved

@Litarnus Litarnus 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.

Maybe a test would be good for that just to be sure

@linear

linear Bot commented Feb 25, 2026

Copy link
Copy Markdown

@giortzisg
giortzisg merged commit f23f16e into master Feb 25, 2026
19 checks passed
@giortzisg
giortzisg deleted the feat/global-attrs branch February 25, 2026 09:51
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.

Add SetAttributes API to scope

2 participants