Skip to content

fix(dotnet): clarify ASP.NET trace propagation vs. transactions#18622

Open
jamescrosswell wants to merge 2 commits into
masterfrom
jamescrosswell/aspnet-trace-propagation-docs-3888
Open

fix(dotnet): clarify ASP.NET trace propagation vs. transactions#18622
jamescrosswell wants to merge 2 commits into
masterfrom
jamescrosswell/aspnet-trace-propagation-docs-3888

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

Fixes the misleading .NET trace-propagation docs reported in getsentry/sentry-dotnet#3888.

The Trace Propagation page told ASP.NET (System.Web) users to call Context.StartOrContinueTrace() in Application_BeginRequest. That method only continues/propagates an incoming trace — it never starts a transaction. Users who followed this page in place of the getting-started config (which uses StartSentryTransaction) found that transactions stopped showing up in Sentry.

  • Document the recommended approach: StartSentryTransaction in Application_BeginRequest + FinishSentryTransaction in Application_EndRequest, which continues the incoming trace and creates transactions.
  • Document StartOrContinueTrace as the propagation-only option (when you don't want this app to create its own transactions/spans).
  • Add a warning that these two are mutually exclusive and explain why replacing one with the other drops transactions.

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:
  • 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

The trace-propagation how-to for .NET told ASP.NET (System.Web) users to
call `Context.StartOrContinueTrace()` in `Application_BeginRequest`, but
that method only continues/propagates the trace and never starts a
transaction. Users following this page in place of the getting-started
config lost their transactions (getsentry/sentry-dotnet#3888).

Document both options: `StartSentryTransaction`/`FinishSentryTransaction`
(recommended — continues the trace and creates transactions) and
`StartOrContinueTrace` (propagation only), and warn against using both.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jul 2, 2026 12:03am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 2, 2026 12:03am

Request Review

Comment thread platform-includes/distributed-tracing/how-to-use/dotnet.mdx Outdated
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.

trace-propagation docs for ASP.NET are misleading

1 participant