Skip to content
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

feat(sveltekit): Add option to control handling of unknown server routes #8201

Merged
merged 2 commits into from May 30, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented May 24, 2023

This PR adds a handleUnknownRoutes option to the sentryHandle server request handler. The option defaults to false which would effectively reduce noise, such as random bot requests. Previously such requests would yield e.g. GET null transactions because they could not be matched to an existing route by the framework. See #8199

Note: Users can right now also drop these transactions in ignoreTransactions or beforeSendTransaction but I think we should pre-filter them by default but give them the option to still monitor such requests if they choose to do so.:

Example:

Users register a custom handler (or a handler from a library)

// hooks.server.js

export const handler = sequence(
  sentryHandle(),
  async ({event, resolve}) => {
    if (event.url.pathname.startsWith('/ext-api/auth') { // <-- this endpoint does not exist as a route
      return await getResponseFromExternalAuthService(event.request);
    }
    return resolve(event) 
  }
)

which "understands" requests that are not mapped to a SvelteKit route. This request would not lead to a transaction, unless handleUnknownRoutes was set to true.

resolves #8199

Comment on lines 111 to 115
name: `${event.request.method} ${event.route?.id || event.url.pathname}`,
status: 'ok',
...traceparentData,
metadata: {
source: 'route',
source: event.route.id ? 'route' : 'url',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This we should do regardless of if we want that option or not.

@Lms24 Lms24 force-pushed the lms/sveltekit-fix-server-trace-invalid-routes branch from dff83da to 92948b1 Compare May 24, 2023 11:13
@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.03 KB (+0.05% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 65.68 KB (+0.09% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.58 KB (+0.11% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 58.15 KB (+0.12% 🔺)
@sentry/browser - Webpack (gzipped + minified) 21.2 KB (+0.15% 🔺)
@sentry/browser - Webpack (minified) 69.07 KB (+0.05% 🔺)
@sentry/react - Webpack (gzipped + minified) 21.22 KB (+0.16% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 49.16 KB (+0.09% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.67 KB (+0.09% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.9 KB (+0.1% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 48.25 KB (+1.33% 🔺)
@sentry/replay - Webpack (gzipped + minified) 42.1 KB (+1.55% 🔺)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 67.22 KB (+1.08% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 60.11 KB (+1.24% 🔺)

@Lms24 Lms24 marked this pull request as ready for review May 24, 2023 13:18
@Lms24 Lms24 requested a review from lforst May 24, 2023 13:18
Comment on lines +19 to +21
* If you set this option, you might want adjust the the transaction name in the `beforeSendTransaction`
* callback of your server-side `Sentry.init` options. You can also use `beforeSendTransaction` to filter out
* transactions that you still don't want to be sent to Sentry.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to determine a name for these transactions automatically? Maybe there's something on the event to serve as a sensible parameterized default? Didn't check but still wanted to ask ^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I'm aware of. I don't think there's anything better that's on all these requests we can fall back to than the URL pathname.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the description with a better example for future reference.

@Lms24 Lms24 merged commit ec094db into develop May 30, 2023
31 checks passed
@Lms24 Lms24 deleted the lms/sveltekit-fix-server-trace-invalid-routes branch May 30, 2023 15:12
thoomasbro added a commit to MTES-MCT/monitorenv that referenced this pull request Jul 25, 2023
<p>This PR was automatically created by Snyk using the credentials of a
real user.</p><br /><h3>Snyk has created this PR to upgrade
@sentry/tracing from 7.47.0 to 7.55.2.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.
<hr/>

- The recommended version is **14 versions** ahead of your current
version.
- The recommended version was released **24 days ago**, on 2023-06-14.


<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@sentry/tracing</b></summary>
    <ul>
      <li>
<b>7.55.2</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.55.2">2023-06-14</a></br><ul>
<li>fix(replay): Stop exporting <code>EventType</code> from <code>@
sentry-internal/rrweb</code> (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1756830383"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8334"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8334/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8334">#8334</a>)</li>
<li>fix(serverless): Export captureCheckIn (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1756807857" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8333"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8333/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8333">#8333</a>)</li>
</ul>
<h2>Bundle size <g-emoji class="g-emoji" alias="package"
fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png">📦</g-emoji></h2>
<table>
<thead>
<tr>
<th>Path</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (gzipped + minified)</td>
<td>21.12 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (minified)</td>
<td>65.86 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (gzipped + minified)</td>
<td>19.65 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (minified)</td>
<td>58.34 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (gzipped + minified)</td>
<td>21.28 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (minified)</td>
<td>69.26 KB</td>
</tr>
<tr>
<td>@ sentry/react - Webpack (gzipped + minified)</td>
<td>21.31 KB</td>
</tr>
<tr>
<td>@ sentry/nextjs Client - Webpack (gzipped + minified)</td>
<td>49.23 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped +
minified)</td>
<td>28.74 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped +
minified)</td>
<td>26.98 KB</td>
</tr>
<tr>
<td>@ sentry/replay ES6 CDN Bundle (gzipped + minified)</td>
<td>48.6 KB</td>
</tr>
<tr>
<td>@ sentry/replay - Webpack (gzipped + minified)</td>
<td>42.26 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN
Bundle (gzipped + minified)</td>
<td>67.63 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped +
minified)</td>
<td>60.54 KB</td>
</tr>
</tbody>
</table>
      </li>
      <li>
<b>7.55.1</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.55.1">2023-06-14</a></br><ul>
<li>fix(replay): Do not export types from <code>@
sentry-internal/rrweb</code> (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1756275538"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8329"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8329/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8329">#8329</a>)</li>
</ul>
<h2>Bundle size <g-emoji class="g-emoji" alias="package"
fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png">📦</g-emoji></h2>
<table>
<thead>
<tr>
<th>Path</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (gzipped + minified)</td>
<td>21.12 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (minified)</td>
<td>65.86 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (gzipped + minified)</td>
<td>19.65 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (minified)</td>
<td>58.34 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (gzipped + minified)</td>
<td>21.28 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (minified)</td>
<td>69.26 KB</td>
</tr>
<tr>
<td>@ sentry/react - Webpack (gzipped + minified)</td>
<td>21.31 KB</td>
</tr>
<tr>
<td>@ sentry/nextjs Client - Webpack (gzipped + minified)</td>
<td>49.23 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped +
minified)</td>
<td>28.74 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped +
minified)</td>
<td>26.98 KB</td>
</tr>
<tr>
<td>@ sentry/replay ES6 CDN Bundle (gzipped + minified)</td>
<td>48.6 KB</td>
</tr>
<tr>
<td>@ sentry/replay - Webpack (gzipped + minified)</td>
<td>42.26 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN
Bundle (gzipped + minified)</td>
<td>67.63 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped +
minified)</td>
<td>60.54 KB</td>
</tr>
</tbody>
</table>
      </li>
      <li>
<b>7.55.0</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.55.0">2023-06-13</a></br><ul>
<li>feat(replay): Capture slow clicks (GA) (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1745423615" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8298"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8298/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8298">#8298</a>)</li>
<li>feat(replay): Improve types for replay recording events (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1727872045" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8224"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8224/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8224">#8224</a>)</li>
<li>fix(nextjs): Strip query params from transaction names of
navigations to unknown routes (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1737654471"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8278"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8278/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8278">#8278</a>)</li>
<li>fix(replay): Ignore max session life for buffered sessions (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1732933176" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8258"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8258/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8258">#8258</a>)</li>
<li>fix(sveltekit): Export captureCheckIn (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1750222676" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8313"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8313/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8313">#8313</a>)</li>
<li>ref(svelte): Add Svelte 4 as a peer dependency (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1738310865" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8280"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8280/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8280">#8280</a>)</li>
</ul>
<h2>Bundle size <g-emoji class="g-emoji" alias="package"
fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png">📦</g-emoji></h2>
<table>
<thead>
<tr>
<th>Path</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (gzipped + minified)</td>
<td>21.12 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (minified)</td>
<td>65.86 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (gzipped + minified)</td>
<td>19.65 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (minified)</td>
<td>58.34 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (gzipped + minified)</td>
<td>21.28 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (minified)</td>
<td>69.26 KB</td>
</tr>
<tr>
<td>@ sentry/react - Webpack (gzipped + minified)</td>
<td>21.31 KB</td>
</tr>
<tr>
<td>@ sentry/nextjs Client - Webpack (gzipped + minified)</td>
<td>49.23 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped +
minified)</td>
<td>28.74 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped +
minified)</td>
<td>26.98 KB</td>
</tr>
<tr>
<td>@ sentry/replay ES6 CDN Bundle (gzipped + minified)</td>
<td>48.68 KB</td>
</tr>
<tr>
<td>@ sentry/replay - Webpack (gzipped + minified)</td>
<td>42.26 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN
Bundle (gzipped + minified)</td>
<td>67.63 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped +
minified)</td>
<td>60.54 KB</td>
</tr>
</tbody>
</table>
      </li>
      <li>
<b>7.54.0</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.54.0">2023-06-01</a></br><h3>Important
Changes</h3>
<ul>
<li>
<p><strong>feat(core): Add default entries to
<code>ignoreTransactions</code> for Healthchecks <a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1722232714" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8191"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8191/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8191">#8191</a></strong></p>
<p>All SDKs now filter out health check transactions by default.<br>
These are transactions where the transaction name matches typical API
health check calls, such as <code>/^.*healthy.*$/</code> or <code>/^.
*heartbeat.*$/</code>. Take a look at <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/blob/8c6ad156829f7c4eec34e4a67e6dd866ba482d5d/packages/core/src/integrations/inboundfilters.ts#L8C2-L16">this
list</a> to learn which regexes we currently use to match transaction
names.<br>
We believe that these transactions do not provide value in most cases
and we want to save you some of your quota by filtering them out by
default.<br>
These filters are implemented as default values for the top level
<code>ignoreTransactions</code> option.</p>
<p>You can disable this filtering by manually specifiying the
<code>InboundFilters</code> integration and setting the
<code>disableTransactionDefaults</code> option:</p>
<div class="highlight highlight-source-js notranslate position-relative
overflow-auto" data-snippet-clipboard-copy-content="Sentry.init({
  //...
integrations: [new InboundFilters({ disableTransactionDefaults: true
})],
})"><pre><span class="pl-v">Sentry</span><span
class="pl-kos">.</span><span class="pl-en">init</span><span
class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c">//...</span>
<span class="pl-c1">integrations</span>: <span
class="pl-kos">[</span><span class="pl-k">new</span> <span
class="pl-v">InboundFilters</span><span class="pl-kos">(</span><span
class="pl-kos">{</span> <span
class="pl-c1">disableTransactionDefaults</span>: <span
class="pl-c1">true</span> <span class="pl-kos">}</span><span
class="pl-kos">)</span><span class="pl-kos">]</span><span
class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
</li>
<li>
<p><strong>feat(replay): Add <code>mutationBreadcrumbLimit</code> and
<code>mutationLimit</code> to Replay Options (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1728110210" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8228"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8228/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8228">#8228</a>)</strong></p>
<p>The previously experimental options
<code>mutationBreadcumbLimit</code> and <code>mutationLimit</code> have
been promoted to regular Replay integration options.</p>
<p>A high number of DOM mutations (in a single event loop) can cause
performance regressions in end-users' browsers.<br>
Use <code>mutationBreadcrumbLimit</code> to send a breadcrumb along with
your recording if the mutation limit was reached.<br>
Use <code>mutationLimit</code> to stop recording if the mutation limit
was reached.</p>
</li>
<li>
<p><strong>feat(sveltekit): Add source maps support for Vercel (lambda)
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1732457184" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8256"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8256/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8256">#8256</a>)</strong></p>
<ul>
<li>feat(sveltekit): Auto-detect SvelteKit adapters (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1722416405" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8193"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8193/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8193">#8193</a>)</li>
</ul>
<p>The SvelteKit SDK can now be used if you deploy your SvelteKit app to
Vercel.<br>
By default, the SDK's Vite plugin will detect the used adapter and
adjust the source map uploading config as necessary.<br>
If you want to override the default adapter detection, you can specify
the <code>adapter</code> option in the <code>sentrySvelteKit</code>
options:</p>
<div class="highlight highlight-source-js notranslate position-relative
overflow-auto" data-snippet-clipboard-copy-content="// vite.config.js
export default defineConfig({
  plugins: [
    sentrySvelteKit({
      adapter: 'vercel',
    }),
    sveltekit(),
  ],
});"><pre><span class="pl-c">// vite.config.js</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span
class="pl-en">defineConfig</span><span class="pl-kos">(</span><span
class="pl-kos">{</span>
  <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-en">sentrySvelteKit</span><span
class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">adapter</span>: <span
class="pl-s">'vercel'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span
class="pl-kos">,</span>
<span class="pl-en">sveltekit</span><span class="pl-kos">(</span><span
class="pl-kos">)</span><span class="pl-kos">,</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span
class="pl-kos">;</span></pre></div>
<p>Currently, the Vite plugin will configure itself correctly for
<code>@ sveltejs/adapter-auto</code>, <code>@
sveltejs/adapter-vercel</code> and <code>@
sveltejs/adapter-node</code>.</p>
<p><strong>Important:</strong> The SvelteKit SDK is not yet compatible
with Vercel's edge runtime.<br>
It will only work for lambda functions.</p>
</li>
</ul>
<h3>Other Changes</h3>
<ul>
<li>feat(replay): Throttle breadcrumbs to max 300/5s (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1702246191" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8086"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8086/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8086">#8086</a>)</li>
<li>feat(sveltekit): Add option to control handling of unknown server
routes (<a class="issue-link js-issue-link" data-error-text="Failed to
load title" data-id="1723743703" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8201"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8201/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8201">#8201</a>)</li>
<li>fix(node): Strip query and fragment from request URLs without route
parameters (<a class="issue-link js-issue-link" data-error-text="Failed
to load title" data-id="1725270222" data-permission-text="Title is
private"
data-url="getsentry/sentry-javascript#8213"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8213/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8213">#8213</a>)</li>
<li>fix(remix): Don't log missing parameters warning on server-side. (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1736125317" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8269"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8269/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8269">#8269</a>)</li>
<li>fix(remix): Pass <code>loadContext</code> through wrapped document
request function (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1735985740"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8268"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8268/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8268">#8268</a>)</li>
<li>fix(replay): Guard against missing key (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1731818666" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8246"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8246/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8246">#8246</a>)</li>
<li>fix(sveltekit): Avoid capturing redirects and 4xx Http errors in
request Handlers (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1725828625"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8215"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8215/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8215">#8215</a>)</li>
<li>fix(sveltekit): Bump <code>magicast</code> to support
<code>satisfied</code> keyword (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1732167579"
data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8254"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8254/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8254">#8254</a>)</li>
<li>fix(wasm): Avoid throwing an error when WASM modules are loaded from
blobs (<a class="issue-link js-issue-link" data-error-text="Failed to
load title" data-id="1734077512" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8263"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8263/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8263">#8263</a>)</li>
</ul>
<h2>Bundle size <g-emoji class="g-emoji" alias="package"
fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png">📦</g-emoji></h2>
<table>
<thead>
<tr>
<th>Path</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (gzipped + minified)</td>
<td>21.12 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (minified)</td>
<td>65.86 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (gzipped + minified)</td>
<td>19.65 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (minified)</td>
<td>58.34 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (gzipped + minified)</td>
<td>21.28 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (minified)</td>
<td>69.26 KB</td>
</tr>
<tr>
<td>@ sentry/react - Webpack (gzipped + minified)</td>
<td>21.31 KB</td>
</tr>
<tr>
<td>@ sentry/nextjs Client - Webpack (gzipped + minified)</td>
<td>49.23 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped +
minified)</td>
<td>28.74 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped +
minified)</td>
<td>26.98 KB</td>
</tr>
<tr>
<td>@ sentry/replay ES6 CDN Bundle (gzipped + minified)</td>
<td>48.58 KB</td>
</tr>
<tr>
<td>@ sentry/replay - Webpack (gzipped + minified)</td>
<td>42.28 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN
Bundle (gzipped + minified)</td>
<td>67.63 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped +
minified)</td>
<td>60.55 KB</td>
</tr>
</tbody>
</table>
      </li>
      <li>
<b>7.53.1</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.53.1">2023-05-24</a></br><ul>
<li>chore(deps): bump socket.io-parser from 4.2.1 to 4.2.3 (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1722974013" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8196"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8196/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8196">#8196</a>)</li>
<li>chore(svelte): Bump magic-string to 0.30.0 (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1723489938" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8197"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8197/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8197">#8197</a>)</li>
<li>fix(core): Fix racecondition that modifies in-flight sessions (<a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1724013708" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8203"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8203/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8203">#8203</a>)</li>
<li>fix(node): Catch <code>os.uptime()</code> throwing because of EPERM
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1724056753" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8206"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8206/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8206">#8206</a>)</li>
<li>fix(replay): Fix buffered replays creating replay w/o error occuring
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1717667664" data-permission-text="Title is private"
data-url="getsentry/sentry-javascript#8168"
data-hovercard-type="pull_request"
data-hovercard-url="/getsentry/sentry-javascript/pull/8168/hovercard"
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/pull/8168">#8168</a>)</li>
</ul>
<h2>Bundle size <g-emoji class="g-emoji" alias="package"
fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4e6.png">📦</g-emoji></h2>
<table>
<thead>
<tr>
<th>Path</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (gzipped + minified)</td>
<td>21.05 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES5 CDN Bundle (minified)</td>
<td>65.69 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (gzipped + minified)</td>
<td>19.59 KB</td>
</tr>
<tr>
<td>@ sentry/browser - ES6 CDN Bundle (minified)</td>
<td>58.16 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (gzipped + minified)</td>
<td>21.21 KB</td>
</tr>
<tr>
<td>@ sentry/browser - Webpack (minified)</td>
<td>69.08 KB</td>
</tr>
<tr>
<td>@ sentry/react - Webpack (gzipped + minified)</td>
<td>21.23 KB</td>
</tr>
<tr>
<td>@ sentry/nextjs Client - Webpack (gzipped + minified)</td>
<td>49.16 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped +
minified)</td>
<td>28.67 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped +
minified)</td>
<td>26.91 KB</td>
</tr>
<tr>
<td>@ sentry/replay ES6 CDN Bundle (gzipped + minified)</td>
<td>48.25 KB</td>
</tr>
<tr>
<td>@ sentry/replay - Webpack (gzipped + minified)</td>
<td>42.1 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN
Bundle (gzipped + minified)</td>
<td>67.22 KB</td>
</tr>
<tr>
<td>@ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped +
minified)</td>
<td>60.12 KB</td>
</tr>
</tbody>
</table>
      </li>
      <li>
<b>7.53.0</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.53.0">2023-05-23</a></br><a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.53.0">
Read more </a>
      </li>
      <li>
<b>7.52.1</b> - <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.52.1">2023-05-15</a></br><a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases/tag/7.52.1">
Read more </a>
      </li>
      <li>
        <b>7.52.0</b> - 2023-05-15
      </li>
      <li>
        <b>7.51.2</b> - 2023-05-08
      </li>
      <li>
        <b>7.51.1</b> - 2023-05-08
      </li>
      <li>
        <b>7.51.0</b> - 2023-05-04
      </li>
      <li>
        <b>7.50.0</b> - 2023-04-27
      </li>
      <li>
        <b>7.49.0</b> - 2023-04-20
      </li>
      <li>
        <b>7.48.0</b> - 2023-04-14
      </li>
      <li>
        <b>7.47.0</b> - 2023-04-05
      </li>
    </ul>
from <a
href="https://snyk.io/redirect/github/getsentry/sentry-javascript/releases">@sentry/tracing
GitHub release notes</a>
  </details>
</details>
<hr/>

**Note:** *You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs.*

For more information: <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJmMjA4ODYwYS0zZTM2LTRmNmQtOGM4Ni00N2JjY2RiZWI4YjMiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImYyMDg4NjBhLTNlMzYtNGY2ZC04Yzg2LTQ3YmNjZGJlYjhiMyJ9fQ=="
width="0" height="0"/>

🧐 [View latest project
report](https://app.snyk.io/org/mtes-mct/project/afb3e19a-88e3-4a0e-9409-d0f9cfdc75b5?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)

🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/mtes-mct/project/afb3e19a-88e3-4a0e-9409-d0f9cfdc75b5/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)

🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/mtes-mct/project/afb3e19a-88e3-4a0e-9409-d0f9cfdc75b5/settings/integration?pkg&#x3D;@sentry/tracing&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

<!---
(snyk:metadata:{"prId":"f208860a-3e36-4f6d-8c86-47bccdbeb8b3","prPublicId":"f208860a-3e36-4f6d-8c86-47bccdbeb8b3","dependencies":[{"name":"@sentry/tracing","from":"7.47.0","to":"7.55.2"}],"packageManager":"npm","type":"auto","projectUrl":"https://app.snyk.io/org/mtes-mct/project/afb3e19a-88e3-4a0e-9409-d0f9cfdc75b5?utm_source=github&utm_medium=referral&page=upgrade-pr","projectPublicId":"afb3e19a-88e3-4a0e-9409-d0f9cfdc75b5","env":"prod","prType":"upgrade","vulns":[],"issuesToFix":[],"upgrade":[],"upgradeInfo":{"versionsDiff":14,"publishedDate":"2023-06-14T14:26:32.924Z"},"templateVariants":[],"hasFixes":false,"isMajorUpgrade":false,"isBreakingChange":false,"priorityScoreList":[]})
--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SvelteKit SDK creates server transactions with [Method] null name
2 participants