Skip to content

feat(attributes): Generalize sentry.client_sample_rate - #814

Merged
alexander-alderman-webb merged 3 commits into
mainfrom
webb/sentry-client-sample-rate
Nov 20, 2026
Merged

alexander-alderman-webb merged 3 commits into
mainfrom
webb/sentry-client-sample-rate

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Looks like we'll be setting this attribute on metrics

getsentry/sentry-python#8320

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Nov 20, 2026 9:15am UTC

Request Review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Generalize sentry.client_sample_rate by alexander-alderman-webb in #814
  • Add search alias types for unit-typed attributes by mjq with sentry-junior in #815
  • Add schema for chat-based gen_ai.output.messages values by alexander-alderman-webb in #810

Bug Fixes 🐛

  • (deps) Bump vitest and @sentry/astro to resolve Dependabot alerts by Lms24 and claude in #818

Internal Changes 🔧

Attributes

  • Add deprecated sentry.os.* attributes by alexander-alderman-webb in #805
  • Add deprecated sentry.device.* attributes by alexander-alderman-webb in #804
  • Add deprecated sentry.runtime.name by alexander-alderman-webb in #806
  • Add deprecated sentry.thread.name by alexander-alderman-webb in #808
  • Add deprecated sentry.messaging.message.id by alexander-alderman-webb in #809
  • Add deprecated sentry.messaging.destination.name by alexander-alderman-webb in #796

Other

  • Add minimal AGENTS.md by k-fish with sentry-junior in #824
  • Remove leftover .claude project memory folder by k-fish and cursoragent in #823

🤖 This preview updates automatically when you update the PR.

@k-fish k-fish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just updating to explicitly call out that this is our generic field for sample rate, it's not allowed for all types (esp. logs at this time).

{
"key": "sentry.client_sample_rate",
"brief": "Rate at which a span was sampled in the SDK.",
"brief": "Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
"brief": "Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.",
"brief": "Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK.",

logs aren't allowing sampling at this time

canonicalName: 'sentry.client_sample_rate',
type: 'double',
brief: 'Rate at which a span was sampled in the SDK.',
brief: 'Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
brief: 'Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.',
brief: 'Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK.',

ditto other comment

"sentry.client_sample_rate"
)
"""Rate at which a span was sampled in the SDK.
"""Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
"""Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.
"""Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK.

ditto

),
"sentry.client_sample_rate": AttributeMetadata(
brief="Rate at which a span was sampled in the SDK.",
brief="Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
brief="Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.",
brief="Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK.",

ChangelogEntry(
version="next",
prs=[814],
description="Generalized the brief to apply to any telemetry type, not just spans",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
description="Generalized the brief to apply to any telemetry type, not just spans",
description="Generalized the brief to apply to multiple telemetry types, not just spans.",

Or we could explicitly say it doesn't include logs here

},
'sentry.client_sample_rate': {
brief: 'Rate at which a span was sampled in the SDK.',
brief: 'Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
brief: 'Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK.',
brief: 'Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK.',


/**
* Rate at which a span was sampled in the SDK. `sentry.client_sample_rate`
* Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK. `sentry.client_sample_rate`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* Rate at which a telemetry item (e.g. a span, log, or metric) was sampled in the SDK. `sentry.client_sample_rate`
* Rate at which a telemetry item (e.g. a span, or metric) was sampled in the SDK. `sentry.client_sample_rate`

@alexander-alderman-webb
alexander-alderman-webb merged commit b9d6327 into main Nov 20, 2026
19 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/sentry-client-sample-rate branch November 20, 2026 09:18

This branch was successfully deployed

1 active deployment
Preview — 06e798d3 Deployed Nov 20, 2026 by vercel[bot]
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.

4 participants