-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(@aws-amplify/analytics): Analytics Typescript updates #9272
feat(@aws-amplify/analytics): Analytics Typescript updates #9272
Conversation
Codecov Report
@@ Coverage Diff @@
## main #9272 +/- ##
=======================================
Coverage 78.29% 78.29%
=======================================
Files 250 250
Lines 18258 18258
Branches 3927 3927
=======================================
Hits 14296 14296
Misses 3832 3832
Partials 130 130
Continue to review full report at Codecov.
|
public async record( | ||
event: string | object, | ||
provider?, | ||
eventName: string, | ||
attributes?: EventAttributes, | ||
metrics?: EventMetrics | ||
); |
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.
is this something we allow too?
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 believe this is the old way of using Analytics.record
(at least from the implementation, this is supported)
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.
Gotcha. I dont see documentation on it. Do u think we can add this usage in docs with a deprecation notice?
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.
LGTM. Just a tiny nit - you can add in and merge :)
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.
LGTM and thank you for running through offline. Nice job 🎆
…ws-amplify#9272)" This reverts commit 9a52c2b.
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Description of changes
Analytics.record
functionany
wherever possibleAnalytics.record
@deprecated
Issue #, if available
related #9162
Description of how you validated changes
yarn clean && yarn setup-dev
yarn test
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.