Skip to content

Conversation

@marandaneto
Copy link
Member

@marandaneto marandaneto commented Jan 20, 2026

💡 Motivation and Context

Closes #119

💚 How did you test it?

running sdks

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@marandaneto marandaneto marked this pull request as ready for review January 20, 2026 17:30
@marandaneto marandaneto requested a review from a team as a code owner January 20, 2026 17:30
userPropertiesSetOnce: userPropertiesSetOnce,
);

final normalizedProperties = extracted.properties != null
Copy link
Member Author

Choose a reason for hiding this comment

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

PropertyNormalizer is more strict than just web safeMapConversion so lets do this here as well

///
/// New parameters (userProperties, userPropertiesSetOnce) take precedence
/// over legacy $set and $set_once in properties.
static ExtractedCaptureProperties extractUserProperties({
Copy link
Member Author

Choose a reason for hiding this comment

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

keep back compatibility since i told people to use $set and $set_once before thru the properties object

Copy link
Collaborator

@ioannisj ioannisj left a comment

Choose a reason for hiding this comment

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

Just a couple of comments but looks good.

Good thinking with backward compatibility even though I think it adds complexity and I'm not sure it's really worth it. Maybe just a deprecation warning would do? Up to you

@marandaneto marandaneto merged commit ea8e6ad into main Jan 22, 2026
15 checks passed
@marandaneto marandaneto deleted the chore/userprops-capture branch January 22, 2026 18:21
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.

Expose userProperties, userPropertiesSetOnce capture method

3 participants