-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Restructure Node SDK docs. #5710
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
Conversation
@onurtemizkan is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
1eae46b
to
60ec829
Compare
60ec829
to
259a4b6
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…o rework-node-docs
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 like this re-arrange, but will defer to @lizokm for a final ✅. We can address my comment in another PR if this gets merged in.
@@ -89,7 +90,7 @@ Learn more about how the options work in <PlatformLink to="/configuration/sampli | |||
|
|||
## Verify | |||
|
|||
<PlatformSection supported={["react-native", "java.spring", "java.spring-boot", "android", "javascript", "apple", "dart", "rust"]} > | |||
<PlatformSection supported={["react-native", "java.spring", "java.spring-boot", "android", "javascript", "apple", "dart", "rust"]} notSupported={["node"]} > |
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.
Instead of making this notSupported
, can we restructure the performance docs for Node to have the automatic-instrumentation
and custom-instrumentation
sections like we do in JS (https://docs.sentry.io/platforms/javascript/performance/instrumentation/) and Android (https://docs.sentry.io/platforms/android/performance/instrumentation/)
This also means we can add custom performance metric docs to Node as well following that format. We can do this in a follow-up PR though.
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.
@onurtemizkan #5760 is blocked on this change - so let's try to include that here.
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.
This probably hasn't had a good review in a long time, so I have a lot of wording edits. Most of these are trivial, but there are a few where I have questions. However, I don't understand why we've moved content that's on platform-specific pages into includes. This is increasing complexity rather than reducing it. Can someone explain?
src/platform-includes/configuration/breadcrumb-hints/_default.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/breadcrumb-hints/_default.mdx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,8 @@ | |||
`level` / `input` | |||
|
|||
: For breadcrumbs created from console log interceptions, this holds the original console log level and the original input data to the log function. |
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.
Using a comma in these descriptions (before "this") vs a period (like in the default version of this include) makes for a slightly different meaning. A period makes them two stand-alone statements, while a comma makes the second statement dependent on the first one. Which meaning are you trying to communicate?
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 think these should be two stand-alone statements. Updating.
src/platform-includes/configuration/integrations/default-integrations/javascript.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
Outdated
Show resolved
Hide resolved
2c77bfc
to
512610d
Compare
Co-authored-by: Isabel <[email protected]>
512610d
to
a94f8fd
Compare
b817adb
to
0827368
Compare
fe45f4e
to
3dc874b
Compare
Updated the PR
Yes, I was trying to reduce duplication at first, but it didn't end up as I expected. Moved content back to platform specific pages.
Done 👍 Not sure if the steps in |
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 made a couple small formatting suggestions, but otherwise this LGTM!
src/platforms/javascript/common/configuration/integrations/plugin.mdx
Outdated
Show resolved
Hide resolved
src/platforms/node/common/configuration/integrations/pluggable-integrations.mdx
Outdated
Show resolved
Hide resolved
@@ -140,6 +125,25 @@ _Import name: `Sentry.Integrations.Modules`_ | |||
|
|||
This integration fetches names of all currently installed Node modules and attaches the list to the event. Once fetched, Sentry will cache the list for later reuse. | |||
|
|||
## Modifying System Integrations |
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.
This should go below RequestData
, I think!
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.
Yes, that makes sense! And thanks for updating!
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.
Left one comment that should be resolved, other than this I think this is good to go!
Co-authored-by: Isabel <[email protected]>
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! 🚀
Resolves: #3605
Summary:
platform-includes
when possible.