Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/platforms/javascript/common/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations. Get started with browser and Node.js profiling to understand your application's performance."
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations. Get started with profiling to understand your application's performance."
notSupported:
- javascript.bun
- javascript.cordova
Expand All @@ -10,4 +10,4 @@ notSupported:
- javascript.cloudflare
---

<PageGrid />
<PlatformContent includePath="profiling/landing-page" />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/astro/profiling/browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
7 changes: 7 additions & 0 deletions docs/platforms/javascript/guides/astro/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/astro/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/gatsby/profiling/browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
7 changes: 7 additions & 0 deletions docs/platforms/javascript/guides/gatsby/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/gatsby/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/nextjs/profiling/browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
7 changes: 7 additions & 0 deletions docs/platforms/javascript/guides/nextjs/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/nextjs/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/nuxt/profiling/browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
7 changes: 7 additions & 0 deletions docs/platforms/javascript/guides/nuxt/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/nuxt/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/remix/profiling/browser.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
7 changes: 7 additions & 0 deletions docs/platforms/javascript/guides/remix/profiling/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/remix/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/sveltekit/profiling/node.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Browser Profiling
description: "Get started with Browser profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/browser-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Set Up Profiling
sidebar_order: 5000
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations."
---

<PageGrid />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Node Profiling
description: "Get started with Node.js profiling to understand your application's performance."
---

<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
---
title: Browser Profiling
sidebar_order: 5000
supported:
- javascript
notSupported:
- javascript.bun
- javascript.cordova
- javascript.capacitor
- javascript.deno
- javascript.cloudflare
- javascript.node
- javascript.aws-lambda
- javascript.azure-functions
- javascript.connect
- javascript.express
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
description: "Collect & view performance insights for JavaScript programs with Sentry's JavaScript Profiling integration."
---

<Alert>

Browser Profiling is currently in beta. Beta features are still in progress and may have bugs. We recognize the irony.
Expand Down
1 change: 1 addition & 0 deletions platform-includes/profiling/landing-page/javascript.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<PlatformContent includePath="profiling/browser-profiling" />
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<PlatformContent includePath="profiling/node-profiling" />
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
---
title: Node Profiling
sidebar_order: 5000
description: "Learn more about how to configure our Profiling integration and start profiling your code."
supported:
- javascript.nextjs
- javascript.sveltekit
- javascript.remix
- javascript.astro
- javascript.node
- javascript.aws-lambda
- javascript.azure-functions
- javascript.connect
- javascript.express
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.tanstackstart-react
---

By default, Sentry error events will not get trace context unless you configure the scope with the transaction, as illustrated in the example below.

<Alert>
Expand All @@ -31,8 +8,21 @@ If you're adopting Profiling in a high-throughput environment, we recommend test

## Installation

Node profiling is available starting in `@sentry/profiling-node` version `0.3.0`.
You have to have the <PlatformSdkPackageName fallback="@sentry/node"/> (minimum version `7.44.1`) package installed.
You have to install the `@sentry/profiling-node` package in addition to your main SDK package:

```bash {tabTitle:npm}
npm install @sentry/profiling-node --save
```

```bash {tabTitle:yarn}
yarn add @sentry/profiling-node
```

```bash {tabTitle:pnpm}
pnpm add @sentry/profiling-node
```

The version of the `@sentry/profiling-node` package must match the version of the main SDK package exactly.

## Enabling Profiling

Expand Down
18 changes: 17 additions & 1 deletion redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ const userDocsRedirects = [
destination: '/platforms/javascript/tracing/distributed-tracing/:path*',
},
{
source: '/platforms/javascript//tracing/instrumentation/performance-metrics/',
source: '/platforms/javascript/tracing/instrumentation/performance-metrics/',
destination: '/platforms/javascript/tracing/span-metrics/',
},
{
Expand All @@ -1070,6 +1070,22 @@ const userDocsRedirects = [
'/platforms/javascript//tracing/instrumentation/span-metrics/performance-metrics/',
destination: '/platforms/javascript/tracing/span-metrics/',
},
{
source: '/platforms/javascript/profiling/browser-profiling/',
destination: '/platforms/javascript/profiling/',
},
{
source: '/platforms/javascript/guides/:guide/profiling/browser-profiling/',
destination: '/platforms/javascript/guides/:guide/profiling/',
},
{
source: '/platforms/javascript/guides/:guide/profiling/node-profiling/',
destination: '/platforms/javascript/guides/:guide/profiling/',
},
{
source: '/platforms/javascript/guides/:guide/profiling/browser-profiling/',
destination: '/platforms/javascript/guides/:guide/profiling/',
},
{
source:
'/platforms/javascript/guides/:guide/tracing/span-metrics/performance-metrics/',
Expand Down
Loading