Skip to content

Commit

Permalink
docs: update recipe (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Lichter <[email protected]>
  • Loading branch information
moshetanzer and manniL authored Mar 28, 2024
1 parent efcbc3d commit 754e1ff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions content/articles/nuxt3-sentry-recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ After we do this, we will create a new Nitro plugin. In there, we want to initia

```ts [server/plugins/sentry.ts]
import * as Sentry from '@sentry/node'
import { ProfilingIntegration } from '@sentry/profiling-node'
import { nodeProfilingIntegration } from '@sentry/profiling-node'

export default defineNitroPlugin((nitroApp) => {
const { public: { sentry } } = useRuntimeConfig()
Expand All @@ -111,9 +111,7 @@ export default defineNitroPlugin((nitroApp) => {
Sentry.init({
dsn: sentry.dsn,
environment: sentry.environment,
integrations: [
new ProfilingIntegration(),
],
integrations: [nodeProfilingIntegration()],
// Performance Monitoring
tracesSampleRate: 1.0, // Change in production!
// Set sampling rate for profiling - this is relative to tracesSampleRate
Expand Down Expand Up @@ -231,10 +229,11 @@ export default defineNuxtPlugin((nuxtApp) => {
dsn: sentry.dsn,
environment: sentry.environment,
integrations: [
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
Sentry.browserTracingIntegration({ router }),
Sentry.replayIntegration({
maskAllText: false,
blockAllMedia: false,
}),
new Sentry.Replay(),
],

// Configure this whole part as you need it!
Expand Down

0 comments on commit 754e1ff

Please sign in to comment.