-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
feat: Performance API: Transaction #908
feat: Performance API: Transaction #908
Conversation
…to feature/performance # Conflicts: # Sentry.xcodeproj/project.pbxproj
We should agree on the next steps. I guess if we can Probably best to keep a branch to merge into, and we pull @philipphofmann @marandaneto wdyt? |
Codecov Report
@@ Coverage Diff @@
## feat/performance-monitoring #908 +/- ##
===============================================================
- Coverage 94.73% 91.92% -2.82%
===============================================================
Files 76 80 +4
Lines 3497 3590 +93
===============================================================
- Hits 3313 3300 -13
- Misses 184 290 +106
Continue to review full report at Codecov.
|
I changed the |
that would be ideal |
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.
Very nice hacking. I'm excited to see some transactions in our SDK. 🥳
I know this is a draft PR, but still, I made lots of comments, so we can get this PR ready for review.
Please move all public headers into the Sources/Public
folder see https://github.com/getsentry/sentry-cocoa/blob/master/CONTRIBUTING.md#public-headers. Please also move all .m
files to Sources/Sentry
.
I'm looking forward to seeing some tests for all of this.
@brustolin just to explain the comments prefixes:
context: https://blog.danlew.net/2020/04/15/the-logaf-scale/ |
e08c892
to
0b2bbe5
Compare
…to feature/performance
…ntry-cocoa into feature/performance
I think I fixed everything you guys commented. By Bruno request I changed SentryTransaction inheritance to SentryEvent and remove some of the previous SentryTransaction handlers like "sendTransaction" from SentryClient to use "sendEvent", this way the client can prepare the envelope with all required information. SentryTransaction tests included |
nice, thanks for that. I've written a few more comments. |
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
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.
I see some tests already. Is this still draft?
What's missing to get merged other than address open review comments?
…ntry-cocoa into feature/performance
…ntry-cocoa into feature/performance
Well, now I think I have addressed all comments. Still figuring out this way of using GitHub. |
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.
Lets just address the last open issues pending replies from folks in Vienna but other than those points, LGTM
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.
@brustolin I believe we agreed on one point, pass nil
as scope
. Other than that I think we can merge for now. The Transaction/Event discussion we can address later at least, lets not block this PR on that
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Clang Robot <clang-robot@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Clang Robot <clang-robot@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Clang Robot <clang-robot@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
* feat: performance monitoring * build: Setup CI for performance monitoring branch * feat: Performance API: Transaction (#908) Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Clang Robot <clang-robot@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> * test: Add captureTransaction to sample apps (#922) * docs: Improve code comments on transactions (#921) Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> * feat: Add missing properties to SpanContext and Transaction (#919) Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> * feat: Adding SentrySpan to performance monitoring. (#932) Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Clang Robot <clang-robot@sentry.io> * ref: Remove SentryTransaction from public API. (#950) Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * feat: Add transaction sampling properties to SentryOptions (#961) * Transaction sampling * Update CHANGELOG.md * Format code * Apply suggestions from code review Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> * Testing and fixes * Using NSNumber for sampler return * Update CHANGELOG.md Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> * Comment Update * Using NSNumber for tracesSampleRate Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> * feat: Transaction in Sample App (#971) * Some UI Sample * Format code * Apply suggestions from code review Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> * removing button to download image * Adding status and fixing operation value * Fixed Tests Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> * merge fix * feat: Add sampling rules to SentryHub startTransaction. (#977) * Changing sampled from bool to enum, using TracesSampler * removing name from span * SamplingTests * changelog and code format * Lint Fix * Fix tests * Update Samples/iOS-Swift/iOS-Swift/TraceTestViewController.swift Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> * Random generator for sampling * missing comment * remove sampler from SentryHub+TestInit.h * Apply suggestions from code review Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> * meta: Add missing breaking change to Changelog * performance changelog Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io> Co-authored-by: Dhiogo Brustolin <dhiogorb@gmail.com> Co-authored-by: Clang Robot <clang-robot@sentry.io> Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
📜 Description
Created a folder with performance API.
Hacked the hell out of the SDK to be able to send a transaction to Sentry.
💡 Motivation and Context
Add performance API to sentry-cocoa SDK.
💚 How did you test it?
This is a draft PR, trying it out from the Sentry iOS app, checking result in Sentry.
Test will came later.
📝 Checklist
🔮 Next steps
TBD