Skip to content

feat: add support for homogenous arrays#1203

Merged
giortzisg merged 6 commits intomasterfrom
feat/attr-slices
Mar 11, 2026
Merged

feat: add support for homogenous arrays#1203
giortzisg merged 6 commits intomasterfrom
feat/attr-slices

Conversation

@giortzisg
Copy link
Contributor

Description

Add support for scalar slices on the attribute API. We also need to modify the log_entry to extend it to support the new methods as well.

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

@giortzisg giortzisg self-assigned this Feb 20, 2026
@linear
Copy link

linear bot commented Feb 20, 2026

@github-actions
Copy link

github-actions bot commented Feb 20, 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 support for homogenous arrays by giortzisg in #1203
  • Add support for client reports by giortzisg in #1192
  • add org id propagation in sentry_baggage by giortzisg in #1210
  • add OrgID and StrictTraceContinuation client options. by giortzisg in #1210
  • Add the option to set attributes on the scope by giortzisg in #1208

Bug Fixes 🐛

  • (serialization) Pre-serialize mutable event fields to prevent race panics by giortzisg in #1214
  • Use HEROKU_BUILD_COMMIT with HEROKU_SLUG_COMMIT as fallback by ericapisani in #1220

Internal Changes 🔧

Ai

  • Add AGENTS.md and testing guidelines by giortzisg in #1216
  • Add dotagents configuration by giortzisg in #1211

Deps

  • Bump getsentry/craft from 2.20.1 to 2.23.1 by dependabot in #1213
  • Bump github.com/gofiber/fiber/v2 from 2.52.11 to 2.52.12 in /fiber by dependabot in #1209

Other

  • Handle independent go module versions for integrations by giortzisg in #1217

🤖 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.

Comment on lines +160 to +162
// AsBoolSlice returns the []bool value. Make sure that the Value's type is
// BOOLSLICE.
func (v Value) AsBoolSlice() []bool {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I was thinking if it makes sense to return an error instead of nil for those methods instead. But it might be too noisy for the benefit it would bring

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't return an error on the other AsX methods, so I don't think it makes sense to add it only here. Also use case wise:

  • if we want just the value AsInterface is the one to use.
  • and if we want the type for modifying the value then, we have to use v.Type() anyways.

@giortzisg giortzisg requested a review from Litarnus March 9, 2026 14:06
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.

LGTM

@giortzisg giortzisg changed the title feat: add support for scalar slices feat: add support for homogenous arrays Mar 11, 2026
@giortzisg giortzisg merged commit 259b205 into master Mar 11, 2026
19 checks passed
@giortzisg giortzisg deleted the feat/attr-slices branch March 11, 2026 12:42
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.

Extend the attribute API to support slices

2 participants