You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Adding Performance to your Node project is simple. Make sure you've got these basics down."
346
-
),
347
-
install: params=>[
348
-
{
349
-
type: StepType.INSTALL,
350
-
content: [
351
-
{
352
-
type: 'text',
353
-
text: tct('Install our Node.js SDK using [code:npm] or [code:yarn]',{
354
-
code: <code/>,
355
-
}),
356
-
},
357
-
getInstallCodeBlock(params),
358
-
],
359
-
},
360
-
],
361
-
configure: params=>[
362
-
{
363
-
type: StepType.CONFIGURE,
364
-
content: [
365
-
{
366
-
type: 'text',
367
-
text: tct(
368
-
'Sentry should be initialized as early in your app as possible. It is essential that you call [code:Sentry.init] before you require any other modules in your application—otherwise, auto-instrumentation of these modules will [strong:not] work.',
369
-
{code: <code/>,strong: <strong/>}
370
-
),
371
-
},
372
-
{
373
-
type: 'text',
374
-
text: tct(
375
-
'To initialize the SDK before everything else, create an external file called [code:instrument.js/mjs] and make sure to import it in your apps entrypoint before anything else.',
376
-
{code: <code/>}
377
-
),
378
-
},
379
-
{
380
-
type: 'code',
381
-
tabs: [
382
-
{
383
-
label: 'JavaScript',
384
-
filename: 'instrument.(js|mjs)',
385
-
language: 'javascript',
386
-
code: getSdkInitSnippet(params,'node'),
387
-
},
388
-
],
389
-
},
390
-
{
391
-
type: 'text',
392
-
text: tct(
393
-
'We recommend adjusting the value of [code:tracesSampleRate] in production. Learn more about tracing [linkTracingOptions:options], how to use the [linkTracesSampler:traces_sampler] function, or how to [linkSampleTransactions:sample transactions].',
0 commit comments