docs(dart): Draft New Spans and Migration Guide pages#18554
Draft
buenaflor wants to merge 1 commit into
Draft
Conversation
Document stream mode (SentryTraceLifecycle.stream) for the Dart and Flutter SDKs, where spans are sent as they finish instead of being batched into a transaction. Mirrors the Python New Spans pages. - New Spans page: enabling stream mode, manual instrumentation with startSpan/startSpanSync/startInactiveSpan, typed attributes, status, beforeSendSpan/ignoreSpans, sampling, and verification - Migration guide: mapping transaction-based APIs to the new span APIs - Platform-includes split init snippets for Flutter vs plain Dart Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Draft documentation for span streaming (stream mode) in the Dart and Flutter SDKs, mirroring the Python "New Spans" pages (#18456). Stream mode (
SentryTraceLifecycle.stream) sends spans to Sentry as they finish instead of batching them into a transaction at the end.tracing/new-spans/): why/when to use stream mode, enabling it, manual instrumentation (startSpan/startSpanSync/startInactiveSpan, auto-parenting via zones, retroactive timing), typedSentryAttributeattributes,SentrySpanStatusV2,beforeSendSpan/ignoreSpans, sampling, and verification.tracing/new-spans/migration-guide/): maps the transaction-based APIs (startTransaction,startChild,setData/setTag,beforeSendTransaction) to the new span APIs.common/so both the Dart platform and the Flutter guide pick them up; init snippets are split viaplatform-includes(SentryFlutter.initvsSentry.init).API reference: getsentry/sentry-for-ai#164.
Open questions for SME review
>=9.19.0) is correct fortraceLifecycle.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: