Skip to content

Commit

Permalink
fix: broken links in Sentry's performance onboarding (#10684)
Browse files Browse the repository at this point in the history
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
mjq committed Jul 12, 2024
1 parent be946fb commit e57de2d
Show file tree
Hide file tree
Showing 51 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion public/_platforms/_index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/apple.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/apple/ios.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/apple/macos.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dart.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet/maui.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet/uwp.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet/winforms.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet/wpf.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/dotnet/xamarin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/flutter.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/java.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/java/spring-boot.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_platforms/java/spring.json

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>"}
Loading

0 comments on commit e57de2d

Please sign in to comment.