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

Change EnvelopeItem dataFactory to FutureOr #2444

Merged

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Nov 25, 2024

Review suggestion for #2417 change envelope-item data factory to FutureOr

Looking at the uses of the data factory, it's almost exclusively synchronous so I think we can change it to FutureOr. Even though this is changing a public API, it shouldn't require any changes by the callers because the type is compatible with Future.

#skip-changelog

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.02%. Comparing base (49cb755) to head (a85b3ed).
Report is 14 commits behind head on enha/performance-improvements.

Additional details and impacted files
@@                      Coverage Diff                       @@
##           enha/performance-improvements    #2444   +/-   ##
==============================================================
  Coverage                          85.01%   85.02%           
==============================================================
  Files                                257      257           
  Lines                               9172     9173    +1     
==============================================================
+ Hits                                7798     7799    +1     
  Misses                              1374     1374           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@vaind vaind requested a review from denrase November 25, 2024 09:47
@vaind vaind changed the title Avoid copy in SentryEnevlopeItem.envelopeItemStreamNew() Change EnvelopeItem dataFactory to FutureOr Nov 25, 2024
Copy link
Collaborator

@denrase denrase left a comment

Choose a reason for hiding this comment

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

Looking good. Honestly, I'm not sure if this API is even used, maybe @buenaflor Has some insights?

@buenaflor
Copy link
Contributor

buenaflor commented Nov 25, 2024

Looking good. Honestly, I'm not sure if this API is even used, maybe @buenaflor Has some insights?

no idea, I doubt that someone uses this api or the number is negligible slim

the change is fine for me

@vaind vaind merged commit aecac7d into enha/performance-improvements Nov 25, 2024
138 checks passed
@vaind vaind deleted the refactor/envelope-item-data-factory branch November 25, 2024 17:58
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.

3 participants