Skip to content

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

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

feat: add the option to set attributes on the scope#1208
giortzisg merged 5 commits intomasterfrom
feat/global-attrs

Conversation

@giortzisg
Copy link
Contributor

@giortzisg giortzisg commented Feb 24, 2026

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
Copy link

github-actions bot commented Feb 24, 2026

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.

Copy link

@cursor cursor bot left a comment

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.

Copy link

@Litarnus Litarnus left a comment

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
Copy link

linear bot commented Feb 25, 2026

@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