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
Copy file name to clipboardExpand all lines: static/app/gettingStartedDocs/node/utils.tsx
+131Lines changed: 131 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -509,6 +509,74 @@ Sentry.init({
509
509
},
510
510
];
511
511
512
+
constlangchainContent: ContentBlock[]=[
513
+
{
514
+
type: 'text',
515
+
text: tct(
516
+
'Add the [code:langChainIntegration] to your [code:Sentry.init()] call. This integration automatically instruments LangChain to capture spans for AI operations.',
517
+
{code: <code/>}
518
+
),
519
+
},
520
+
{
521
+
type: 'code',
522
+
tabs: [
523
+
{
524
+
label: 'JavaScript',
525
+
language: 'javascript',
526
+
code: `${getImport(packageName).join('\n')}
527
+
528
+
Sentry.init({
529
+
dsn: "${params.dsn.public}",
530
+
integrations: [
531
+
// Add the LangChain integration
532
+
Sentry.langChainIntegration({
533
+
recordInputs: true,
534
+
recordOutputs: true,
535
+
}),
536
+
],
537
+
// Tracing must be enabled for agent monitoring to work
538
+
tracesSampleRate: 1.0,
539
+
sendDefaultPii: true,
540
+
});`,
541
+
},
542
+
],
543
+
},
544
+
];
545
+
546
+
constlanggraphContent: ContentBlock[]=[
547
+
{
548
+
type: 'text',
549
+
text: tct(
550
+
'Add the [code:langChainIntegration] to your [code:Sentry.init()] call. This integration automatically instruments LangGraph to capture spans for AI operations.',
551
+
{code: <code/>}
552
+
),
553
+
},
554
+
{
555
+
type: 'code',
556
+
tabs: [
557
+
{
558
+
label: 'JavaScript',
559
+
language: 'javascript',
560
+
code: `${getImport(packageName).join('\n')}
561
+
562
+
Sentry.init({
563
+
dsn: "${params.dsn.public}",
564
+
integrations: [
565
+
// Add the LangChain integration (also works for LangGraph)
566
+
Sentry.langChainIntegration({
567
+
recordInputs: true,
568
+
recordOutputs: true,
569
+
}),
570
+
],
571
+
// Tracing must be enabled for agent monitoring to work
0 commit comments