-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Profile envelopes sent directly from profiler #2298
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c333c48
AndroidTransactionProfiler now directly sends profile envelopes
stefanosiano 1287e69
Merge branch 'main' into feat/android-profiler-sends-envelopes
stefanosiano 0ebc5ae
Fixed ui tests not clearing unasserted requests after running test
stefanosiano 103e4a9
Fixed dogfood ui test sending data after some time to mock relay
stefanosiano 4a7b8ef
Merge branch 'main' into feat/android-profiler-sends-envelopes
stefanosiano e858a65
added hub parameter to AndroidTransactionProfiler ctor
stefanosiano 3adb5db
Merge branch 'main' into feat/android-profiler-sends-envelopes
stefanosiano 314686f
Merge branch 'main' into feat/android-profiler-sends-envelopes
stefanosiano 00571fc
Merge branch 'main' into feat/android-profiler-sends-envelopes
stefanosiano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we move this into the constructor? Then we should be also able to test it properly without overriding
Sentry.setCurrentHub
Perhaps, we could even make
AndroidTransactionProfiler
an integration, but I'm not sure if it was ever discussed before @marandanetoThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe create an envelope out of the
profilingTraceData
and callcaptureEnvelope
instead?Your call here @romtsn
I don't recall any discussion related to
AndroidTransactionProfiler
as an integration.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why is it preferred to create an Envelope and call
captureEnvelope
instead of callingcaptureProfile
/captureTransaction
/captureWhatever
?Is it for consistency or are there other reasons? @marandaneto
I can quickly create the envelope and drop the
captureProfile
methods, if it's betterThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this expands the public API and is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we want to delay the
6.6.0
release until we removedcaptureProfile
from the public API again inmain
?Ah it's marked internal anyways, nevermind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adinauer Actually,
HubAdapter
is public, and it has acaptureProfile
methodThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HubAdapter
is just to make Sentry static class testable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, but
HubAdapter
isn't marked as internal, so technically there's nothing preventing users to actually use it.Just wanted to make sure we are aware of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marandaneto i made the change. Would you take another look before merging?