Skip to content

docs(usageStats): Document callback_error client discard reason - #19220

Merged
msonnb merged 1 commit into
masterfrom
ms/docs/callback-error-discard-reason
Sep 2, 2026
Merged

docs(usageStats): Document callback_error client discard reason#19220
msonnb merged 1 commit into
masterfrom
ms/docs/callback-error-discard-reason

Conversation

@msonnb

@msonnb msonnb commented Sep 1, 2026

Copy link
Copy Markdown
Member

@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 1, 2026 3:02pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Sep 1, 2026 3:02pm UTC

Request Review

@msonnb
msonnb requested a review from Lms24 September 1, 2026 14:53
@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

- **Invalid**: An event was dropped because it contained invalid data (e.g. replay session exceeded maximum allowed length).
- **Ignored**: An event was ignored by the SDK (for example, a span was ignored by `ignore_spans`).
- **No Parent Span**: A span was not started or dropped because no parent span was present at span start (for example, auto-instrumented request spans suppressed when the request happens outside an active span).
- **Callback Error**: An event was dropped because a callback (e.g., `before_send`, `traces_sampler`) threw an error.

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 new discard reason callback_error was added to product docs but is missing from the authoritative SDK specification, creating an inconsistency for implementers.
Severity: LOW

Suggested Fix

Update the discard reasons table in develop-docs/sdk/telemetry/client-reports.mdx to include the new callback_error reason. Also, add an entry to the spec's changelog to reflect this addition, ensuring consistency between the product docs and the SDK specification.

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/product/stats/index.mdx#L99

Potential issue: The pull request adds the `callback_error` discard reason to the
user-facing product documentation. However, it fails to update the authoritative SDK
specification located at `develop-docs/sdk/telemetry/client-reports.mdx`. This violates
the documented process for adding new discard reasons, which requires updating the spec
first. This inconsistency can cause confusion for SDK implementers who rely on the
specification to understand valid discard reasons and may not implement reporting for
`callback_error`.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

will be done in #19218

@msonnb
msonnb merged commit faf4e0f into master Sep 2, 2026
23 checks passed
@msonnb
msonnb deleted the ms/docs/callback-error-discard-reason branch September 2, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants