-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(angular): mention TraceDirective
bug and workaround in Angular SDK
#4780
Conversation
Add a warning alert to `tracehelpers.mdx` in the Angular SDK guide to make users aware that the usage of `TraceDirective` will most likely cause a compiler error on their end. The alert links to the original issue and our intended fix which will ship with the v7 major of the JS/Angular SDK. Fix suboptimal usage instruction of `TraceDirective`: Instead of declaring `TraceDirective` in the users' Angular module(s), `TraceModule` (which wraps the directive) should in fact be imported in the module(s). This conforms to the way how Angular component libraries should be used.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sentry/sentry-docs/AiX93sGtdyrCmyBbrvLaKLU6taxS |
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.
Made some style and wording adjustments, but otherwise looks great (pending technical review)!
src/platforms/javascript/guides/angular/components/tracehelpers.mdx
Outdated
Show resolved
Hide resolved
src/platforms/javascript/guides/angular/components/tracehelpers.mdx
Outdated
Show resolved
Hide resolved
src/platforms/javascript/guides/angular/components/tracehelpers.mdx
Outdated
Show resolved
Hide resolved
…s.mdx Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
…s.mdx Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
…s.mdx Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Thanks for the reviews! |
This PR adds a warning alert to
tracehelpers.mdx
in the Angular SDK guide to make usersaware that the usage of
TraceDirective
will currently most likely cause a compiler erroron their end. The alert links to the original issue (getsentry/sentry-javascript#3282) and our intended fix (getsentry/sentry-javascript#4644) which will ship with the v7 major of the JS/Angular SDK.
The
TraceDirective
option was moved down from the top option to the last one as it is essentially unusabledue to the compiler error. The other two options are suggested as workarounds until the bug is fixed and released in the next major.
Additionally, the PR fixes the suboptimal usage instruction of
TraceDirective
: Instead of declaringTraceDirective
in the users' Angular module(s),TraceModule
(which wraps the directive) should in fact be imported in the module(s). This conforms to the way how Angular components or directives from libraries should be used.