Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hubs/Scopes Merge 37 - Fix combined Contexts #3374

Merged
merged 43 commits into from
May 2, 2024

Conversation

adinauer
Copy link
Member

@adinauer adinauer commented Apr 19, 2024

#skip-changelog

📜 Description

We extended ConcurrentHashMap, exposing lots of stuff as public API and making it hard to combine Contexts. I've now moved this map into a property we forward to. We can add additional API that was there with the map extension if needed.

💡 Motivation and Context

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

adinauer and others added 30 commits March 27, 2024 16:30
Copy link
Contributor

github-actions bot commented Apr 19, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against dc35d99

Copy link
Contributor

github-actions bot commented Apr 19, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 388.74 ms 475.12 ms 86.38 ms
Size 1.70 MiB 2.28 MiB 595.19 KiB

Previous results on branch: feat/hsm-37-combined-contexts

Startup times

Revision Plain With Sentry Diff
428a5c2 418.30 ms 498.73 ms 80.43 ms

App size

Revision Plain With Sentry Diff
428a5c2 1.70 MiB 2.28 MiB 595.19 KiB

return internalStorage.size();
}

public int getSize() {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need both a size() and getSize()? If so, maybe you can add some clarifying comment describing why.

Copy link
Member Author

@adinauer adinauer Apr 22, 2024

Choose a reason for hiding this comment

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

It was to allow kotlin to use .size without brackets. Is there another way to achieve that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added some comments to Contexts to explain why each is needed.

Copy link
Collaborator

@lbloder lbloder left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Base automatically changed from feat/hsm-36-combined-scope-view-test to 8.x.x May 2, 2024 12:23
@adinauer adinauer merged commit cac8cb8 into 8.x.x May 2, 2024
10 of 19 checks passed
@adinauer adinauer deleted the feat/hsm-37-combined-contexts branch May 2, 2024 12:25
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.

None yet

3 participants