Skip to content

docs(tracing): Add Mastra Sentry Exporter documentation#16145

Merged
RulaKhaled merged 4 commits intomasterfrom
rolaabuhasna/js-1549-add-docs-referencing-mastras-sentry-exporter
Jan 27, 2026
Merged

docs(tracing): Add Mastra Sentry Exporter documentation#16145
RulaKhaled merged 4 commits intomasterfrom
rolaabuhasna/js-1549-add-docs-referencing-mastras-sentry-exporter

Conversation

@RulaKhaled
Copy link
Member

Adds documentation for the Mastra Sentry Exporter, which allows users to export AI tracing data from Mastra applications to Sentry.

  • Created new page at /ai-agent-monitoring/mastra/ with installation, configuration, and usage examples
  • Added "Framework Exporters" section to AI agent monitoring page
  • Documented span mapping, captured data attributes, and server-side runtime requirements

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline: Jan 27th
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@linear
Copy link

linear bot commented Jan 26, 2026

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jan 27, 2026 2:20pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
develop-docs Ignored Ignored Preview Jan 27, 2026 2:20pm

Request Review

Copy link
Member

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

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

LGTM

- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.tanstackstart-react
Copy link
Member

Choose a reason for hiding this comment

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

Deno? 👍 👎

Copy link
Collaborator

@inventarSarah inventarSarah left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Just some minor input and a couple of questins 👍

Install the Mastra Sentry exporter package:

```bash
npm install @mastra/sentry@beta
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to provide the command for other package managers as well (usually we cover npm, yarn, pnpm). For example, see https://sentry-docs-git-rolaabuhasna-js-1549-add-docs-referencin-a02d61.sentry.dev/platforms/javascript/guides/nextjs/manual-setup/#install

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: "Export Mastra AI tracing to Sentry."
description: "Learn how to export Mastra AI tracing to Sentry."

-> makes the description more consistent with our other guides
Feel free to write your own version


</Expandable>

<Expandable title="Captured Data">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: When you open this expandable, the h3s show up in the table of contents on the right. If you don't want that, you may have to use h4s or 5s

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
### Common Attributes (all spans)
### Common Attributes (All Spans)

@@ -0,0 +1,173 @@
---
title: Mastra
Copy link
Collaborator

Choose a reason for hiding this comment

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

general question: does this page need a BETA label in the navigation?

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 think it’s fine to leave it as is, Mastra doesn’t mark it as beta

@RulaKhaled RulaKhaled merged commit 1f3ab38 into master Jan 27, 2026
13 checks passed
@RulaKhaled RulaKhaled deleted the rolaabuhasna/js-1549-add-docs-referencing-mastras-sentry-exporter branch January 27, 2026 14:25
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments