Skip to content

js(docs): Update Tracing pages for stream mode#17862

Open
inventarSarah wants to merge 15 commits into
masterfrom
smi/span-first/js-tracing-updates
Open

js(docs): Update Tracing pages for stream mode#17862
inventarSarah wants to merge 15 commits into
masterfrom
smi/span-first/js-tracing-updates

Conversation

@inventarSarah

@inventarSarah inventarSarah commented May 22, 2026

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

This branch contains light edits to the JavaScript Tracing pages, mentioning the New Spans and Stream Mode as needed.

  • added in-line mentions of stream mode on pages that only sparingly feature transaction-focused content
  • added an Alert at the top of pages re. stream mode on pages that talk a lot about transactions & their concepts

Important

Must only be merged after #17834
This branch is separate from this PR and thus does not contain the new /tracing/new-spans page. However, this branch adds links to that page, which the 404 Linter identifies correctly as broken

Closes: #17836

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: End of May
  • 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

EXTRA RESOURCES

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jul 2, 2026 10:34pm
sentry-docs Ready Ready Preview, Comment Jul 2, 2026 10:34pm

Request Review

});
```

```javascript {tabTitle:Stream Mode}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm liking these additions!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Comment thread docs/platforms/javascript/common/tracing/troubleshooting/index.mdx Outdated

See <PlatformLink to="/tracing/new-spans/">New Spans</PlatformLink> for more information.

## `ignoreSpans` Rules No Longer Work After Migrating to Stream Mode

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do they no longer work, or does the behavior change?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated this to "... No Longer Work As Expected After Migrating ..."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess I'm still not entirely clear what that means. Does it just not work, or will it still work but differently? We should be explicit.

@inventarSarah inventarSarah May 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I updated the description in this section to be more specific.
The title is fitting imo though -- for some users it could not work at all, for others some spans get dropped correctly and some not -- it depends on their configuration

@sfanahata sfanahata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good from a content perspective. I mostly wonder about revealing the 1k limit by explicit number vs just saying stream mode is more efficient in capturing the same data? Thoughts @cleptric?

inventarSarah and others added 4 commits May 27, 2026 10:39
Co-authored-by: Shannon Anahata <shannon.anahata@gmail.com>
…try/sentry-docs into smi/span-first/js-tracing-updates

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! Just some minor comments

});
```

```javascript {tabTitle:Stream Mode}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Comment thread docs/platforms/javascript/common/tracing/troubleshooting/index.mdx
Comment on lines +36 to +40
See <PlatformLink to="/tracing/streamed-spans/">Streamed Spans</PlatformLink> for more information.

## `ignoreSpans` Rules No Longer Work As Expected After Migrating to Stream Mode

In <PlatformLink to="/tracing/streamed-spans">stream mode</PlatformLink>, `ignoreSpans` is evaluated at span start rather than at transaction end as in transaction mode. This means rules that match on names and attributes added or updated while a span is active may no longer match the intended spans. Review your `ignoreSpans` rules after migrating to make sure the names and attributes you're matching on are available when the span is created.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: This PR adds multiple links using <PlatformLink> to a page (/tracing/streamed-spans/) that does not exist yet, which will cause 404 errors for users.
Severity: MEDIUM

Suggested Fix

This pull request should only be merged after the dependent pull request #17834, which creates the /tracing/streamed-spans/ page, has been merged. This will ensure that all the newly added links resolve correctly and do not lead to 404 errors.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/common/tracing/troubleshooting/index.mdx#L36-L40

Potential issue: The pull request introduces over ten `<PlatformLink>` components across
various documentation files that link to the `/tracing/streamed-spans/` page. However,
this destination page does not exist in the repository. The PR that creates this page
(#17834) has not been merged. If this PR is merged first, users clicking on these links
will encounter a 404 "Page Not Found" error, leading to a broken documentation
experience. The PR description acknowledges this dependency but there is no automated
mechanism to enforce the correct merge order.

Also affects:

  • docs/platforms/javascript/common/tracing/span-metrics/index.mdx
  • docs/platforms/javascript/common/tracing/instrumentation/index.mdx
  • docs/platforms/javascript/common/tracing/automatic-instrumentation.mdx
  • docs/platforms/javascript/common/tracing/configure-sampling/index.mdx

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update JS SDK Tracing docs for stream mode/new spans

3 participants