Skip to content

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

Merged
inventarSarah merged 5 commits into
masterfrom
smi/attributes/dart-flutter
Jul 28, 2026
Merged

docs(dart, flutter): Add Attributes page#18779
inventarSarah merged 5 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 28, 2026 10:20am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 28, 2026 10:20am

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?

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.

yeah sounds good 👍

Comment thread docs/platforms/dart/common/enriching-events/attributes/index.mdx
Comment thread docs/platforms/dart/common/enriching-events/attributes/index.mdx Outdated

@coolguyzone coolguyzone 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.

LGTM!

@buenaflor buenaflor 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.

nice! just one comment

Comment thread platform-includes/logs/usage/dart.mdx Outdated
Comment on lines +10 to +11
When using the `fmt` function, you must use the `%s` placeholder for each
value you want to insert.

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 think this is an accidental line break

Comment thread docs/platforms/dart/common/enriching-events/attributes/index.mdx
@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 28, 2026 09:57
Comment on lines +10 to +15
<Alert level="warning">
Tags are **not** applied to logs or metrics. If you're using SDK version
`9.23.0` or above and want to attach context to logs or metrics, use{" "}
<PlatformLink to="/enriching-events/attributes/">Attributes</PlatformLink>{" "}
instead.
</Alert>

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 documentation incorrectly states SDK version 9.23.0 is required for log/metric attributes, when the feature is available from version 9.9.0.
Severity: LOW

Suggested Fix

Update the warning in tags/index.mdx to reflect the correct minimum SDK version for using Attributes with logs and metrics, which is 9.9.0. Clarify that the 9.23.0 version requirement is specific to span attributes.

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/tags/index.mdx#L10-L15

Potential issue: The warning added to
`docs/platforms/dart/common/enriching-events/tags/index.mdx` incorrectly states that SDK
version `9.23.0` or higher is required to use Attributes for attaching context to logs
or metrics. The correct minimum version for this feature is `9.9.0`. The `9.23.0`
version requirement is specific to span attributes in stream mode. This misinformation
will prevent users on SDK versions between `9.9.0` and `9.22.x` from realizing the
Attributes feature is available to them for logs and metrics.

@inventarSarah
inventarSarah force-pushed the smi/attributes/dart-flutter branch from 880b1ca to 9f90674 Compare July 28, 2026 10:08
@inventarSarah
inventarSarah merged commit dc90ac8 into master Jul 28, 2026
22 checks passed
@inventarSarah
inventarSarah deleted the smi/attributes/dart-flutter branch July 28, 2026 10:36
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

3 participants