-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: JS performance docs #2133
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
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sentry/sentry-docs/m2l7d8xpb/sentry.dev |
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.
Minor language smoothing.
|
||
- **[Performance](./performance/)** | ||
|
||
Learn more about how to configure Performance for the JavaScript SDK. It provides examples of more advanced use cases. |
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.
Learn more about how to configure Performance for the JavaScript SDK. It provides examples of more advanced use cases. | |
Learn more about how to configure Performance for the JavaScript SDK, including examples of more advanced use cases. |
### Manual Instrumentation | ||
|
||
To manually instrument certain regions of your code, you can create a transaction to capture them. | ||
This is valid for both JavaScript Browser and Node and works independently of the `BrowserTracing` 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.
This is valid for both JavaScript Browser and Node and works independently of the `BrowserTracing` integration. | |
This is valid for both the JavaScript Browser and Node SDKS, and works independently of the `BrowserTracing` integration. |
transaction.finish(); // Finishing the transaction will send it to Sentry | ||
``` | ||
|
||
Here is a different example. If you want to create a transaction for a user interaction on your page, you need to do the following: |
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.
Here is a different example. If you want to create a transaction for a user interaction on your page, you need to do the following: | |
This example creates a transaction for a user interaction on your page: |
@HazAT getsentry/sentry-javascript#2867 is merged, so this should be good to go now. |
This moved part of the JS specific performance documentation into the JavaScript section.
To make what's written in the
Filter out unwanted Spans
section 100% true, we need to release this PR first.getsentry/sentry-javascript#2867