Skip to content

docs(dart, flutter): Add Attributes page#18779

Open
inventarSarah wants to merge 3 commits into
masterfrom
smi/attributes/dart-flutter
Open

docs(dart, flutter): Add Attributes page#18779
inventarSarah wants to merge 3 commits into
masterfrom
smi/attributes/dart-flutter

Conversation

@inventarSarah

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

This branch adds a new page, "Attributes," under "Enriching Events" (similar to the JS SDK; see #18729).

Closes: #18778

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

EXTRA RESOURCES

@vercel

vercel Bot commented Jul 21, 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 Jul 21, 2026 10:27am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 21, 2026 10:27am

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 21, 2026 08:47
description: "Attributes automatically enrich your telemetry with typed key-value data. Use them to add business context that you can filter and search in Sentry."
---

<AvailableSince version="9.23.0" />

@inventarSarah inventarSarah Jul 21, 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 added this version number from the streamed spans docs, but attributes were available for metrics and logs before that? Please let me know @buenaflor

Updated the version number - hope this is correct!


Each attribute value is created with a typed `SentryAttribute` factory:

| Factory | Dart Type |

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'm considering removing this and instead add a link to the Streamed Spans page (or API docs if it's in there) - wdyt?

Comment on lines +6 to +8
<AvailableSince version="9.9.0" />

**Attributes** are key-value pairs you can attach to your telemetry (like <PlatformLink to="/tracing/instrumentation/custom-instrumentation/">spans</PlatformLink> (SDK version `9.23.0`+), <PlatformLink to="/logs">logs</PlatformLink>, and <PlatformLink to="/metrics">metrics</PlatformLink>).

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: The <AvailableSince> tag incorrectly states version 9.9.0. Using attributes for logs or metrics requires SDK version 9.23.0, creating a documentation conflict.
Severity: MEDIUM

Suggested Fix

Update the <AvailableSince version="9.9.0" /> tag to reflect the correct minimum required version. Based on the context, the most restrictive and correct version appears to be 9.23.0 for using attributes with logs or metrics. Align the version number with the requirements stated in other parts of the documentation.

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/dart/common/enriching-events/attributes/index.mdx#L6-L8

Potential issue: The documentation for attributes states availability since version
`9.9.0` via the `<AvailableSince>` tag. However, this contradicts other documentation.
The Dart metrics documentation specifies that SDK version `9.11.0` is required for
metrics, and the tags page indicates that using attributes for logs or metrics requires
SDK version `9.23.0`. This discrepancy can mislead developers into attempting to use
features that are not available in their SDK version, leading to confusion and
implementation errors.

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.

Add "Attributes" page to Enriching Events for Dart & Flutter

1 participant