-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
Sentry's performance onboarding apparently still pulls from the autogenerated JSON that currently lives in `public/_platforms/` (see https://github.com/getsentry/sentry-docs/blob/master/public/_platforms/_README.md). Those JSON docs contain links to `.../performance/...` pages in docs, which have all been renamed to `.../tracing/...`. Did a find/replace to correct them all.
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"key":"javascript.ember-with-error-monitoring-and-replay","type":"framework","doc_link":"https://docs.sentry.io/platforms/javascript/guides/ember/","name":"Ember","aliases":[],"categories":[],"body":"<h2 id=\"install\" style=\"position:relative;\">Install</h2>\n<p>Sentry captures data by using an SDK within your application’s runtime.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash highlight\"><code class=\"language-bash\"><span class=\"token comment\"># Using ember-cli</span>\nember <span class=\"token function\">install</span> @sentry/ember</code></pre></div>\n<h2 id=\"configure\" style=\"position:relative;\">Configure</h2>\n<p>You should <code>init</code> the Sentry SDK as soon as possible during your application load up in <code>app.js</code>, before initializing Ember:</p>\n<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript highlight\"><code class=\"language-javascript\"><span class=\"token keyword\">import</span> Application <span class=\"token keyword\">from</span> <span class=\"token string\">\"@ember/application\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> Resolver <span class=\"token keyword\">from</span> <span class=\"token string\">\"ember-resolver\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> loadInitializers <span class=\"token keyword\">from</span> <span class=\"token string\">\"ember-load-initializers\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> config <span class=\"token keyword\">from</span> <span class=\"token string\">\"./config/environment\"</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">import</span> <span class=\"token operator\">*</span> <span class=\"token keyword\">as</span> Sentry <span class=\"token keyword\">from</span> <span class=\"token string\">\"@sentry/ember\"</span><span class=\"token punctuation\">;</span>\n\nSentry<span class=\"token punctuation\">.</span><span class=\"token function\">init</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n <span class=\"token literal-property property\">dsn</span><span class=\"token operator\">:</span> <span class=\"token string\">\"___PUBLIC_DSN___\"</span><span class=\"token punctuation\">,</span>\n <span class=\"token literal-property property\">integrations</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span><span class=\"token keyword\">new</span> <span class=\"token class-name\">Sentry<span class=\"token punctuation\">.</span>Replay</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n <span class=\"token comment\">// Session Replay</span>\n <span class=\"token literal-property property\">replaysSessionSampleRate</span><span class=\"token operator\">:</span> <span class=\"token number\">0.1</span><span class=\"token punctuation\">,</span> <span class=\"token comment\">// This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.</span>\n <span class=\"token literal-property property\">replaysOnErrorSampleRate</span><span class=\"token operator\">:</span> <span class=\"token number\">1.0</span><span class=\"token punctuation\">,</span> <span class=\"token comment\">// If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">export</span> <span class=\"token keyword\">default</span> <span class=\"token keyword\">class</span> <span class=\"token class-name\">App</span> <span class=\"token keyword\">extends</span> <span class=\"token class-name\">Application</span> <span class=\"token punctuation\">{</span>\n modulePrefix <span class=\"token operator\">=</span> config<span class=\"token punctuation\">.</span>modulePrefix<span class=\"token punctuation\">;</span>\n podModulePrefix <span class=\"token operator\">=</span> config<span class=\"token punctuation\">.</span>podModulePrefix<span class=\"token punctuation\">;</span>\n Resolver <span class=\"token operator\">=</span> Resolver<span class=\"token punctuation\">;</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<h2 id=\"verify\" style=\"position:relative;\">Verify</h2>\n<p>This snippet contains an intentional error and can be used as a test to make sure that everything's working as expected.</p>\n<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript highlight\"><code class=\"language-javascript\"><span class=\"token function\">myUndefinedFunction</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div>\n<hr>\n<h2 id=\"next-steps\" style=\"position:relative;\">Next Steps</h2>\n<ul>\n<li><a href=\"https://docs.sentry.io/platforms/javascript/guides/ember/sourcemaps/\">Source Maps</a>: Learn how to enable readable stack traces in your Sentry errors.</li>\n<li><a href=\"https://docs.sentry.io/platforms/javascript/guides/ember/performance/\">Performance Monitoring</a>: Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.</li>\n</ul>"} | ||
{"key":"javascript.ember-with-error-monitoring-and-replay","type":"framework","doc_link":"https://docs.sentry.io/platforms/javascript/guides/ember/","name":"Ember","aliases":[],"categories":[],"body":"<h2 id=\"install\" style=\"position:relative;\">Install</h2>\n<p>Sentry captures data by using an SDK within your application’s runtime.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash highlight\"><code class=\"language-bash\"><span class=\"token comment\"># Using ember-cli</span>\nember <span class=\"token function\">install</span> @sentry/ember</code></pre></div>\n<h2 id=\"configure\" style=\"position:relative;\">Configure</h2>\n<p>You should <code>init</code> the Sentry SDK as soon as possible during your application load up in <code>app.js</code>, before initializing Ember:</p>\n<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript highlight\"><code class=\"language-javascript\"><span class=\"token keyword\">import</span> Application <span class=\"token keyword\">from</span> <span class=\"token string\">\"@ember/application\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> Resolver <span class=\"token keyword\">from</span> <span class=\"token string\">\"ember-resolver\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> loadInitializers <span class=\"token keyword\">from</span> <span class=\"token string\">\"ember-load-initializers\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> config <span class=\"token keyword\">from</span> <span class=\"token string\">\"./config/environment\"</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">import</span> <span class=\"token operator\">*</span> <span class=\"token keyword\">as</span> Sentry <span class=\"token keyword\">from</span> <span class=\"token string\">\"@sentry/ember\"</span><span class=\"token punctuation\">;</span>\n\nSentry<span class=\"token punctuation\">.</span><span class=\"token function\">init</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n <span class=\"token literal-property property\">dsn</span><span class=\"token operator\">:</span> <span class=\"token string\">\"___PUBLIC_DSN___\"</span><span class=\"token punctuation\">,</span>\n <span class=\"token literal-property property\">integrations</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span><span class=\"token keyword\">new</span> <span class=\"token class-name\">Sentry<span class=\"token punctuation\">.</span>Replay</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n <span class=\"token comment\">// Session Replay</span>\n <span class=\"token literal-property property\">replaysSessionSampleRate</span><span class=\"token operator\">:</span> <span class=\"token number\">0.1</span><span class=\"token punctuation\">,</span> <span class=\"token comment\">// This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.</span>\n <span class=\"token literal-property property\">replaysOnErrorSampleRate</span><span class=\"token operator\">:</span> <span class=\"token number\">1.0</span><span class=\"token punctuation\">,</span> <span class=\"token comment\">// If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">export</span> <span class=\"token keyword\">default</span> <span class=\"token keyword\">class</span> <span class=\"token class-name\">App</span> <span class=\"token keyword\">extends</span> <span class=\"token class-name\">Application</span> <span class=\"token punctuation\">{</span>\n modulePrefix <span class=\"token operator\">=</span> config<span class=\"token punctuation\">.</span>modulePrefix<span class=\"token punctuation\">;</span>\n podModulePrefix <span class=\"token operator\">=</span> config<span class=\"token punctuation\">.</span>podModulePrefix<span class=\"token punctuation\">;</span>\n Resolver <span class=\"token operator\">=</span> Resolver<span class=\"token punctuation\">;</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<h2 id=\"verify\" style=\"position:relative;\">Verify</h2>\n<p>This snippet contains an intentional error and can be used as a test to make sure that everything's working as expected.</p>\n<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript highlight\"><code class=\"language-javascript\"><span class=\"token function\">myUndefinedFunction</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div>\n<hr>\n<h2 id=\"next-steps\" style=\"position:relative;\">Next Steps</h2>\n<ul>\n<li><a href=\"https://docs.sentry.io/platforms/javascript/guides/ember/sourcemaps/\">Source Maps</a>: Learn how to enable readable stack traces in your Sentry errors.</li>\n<li><a href=\"https://docs.sentry.io/platforms/javascript/guides/ember/tracing/\">Performance Monitoring</a>: Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.</li>\n</ul>"} |