Repository navigation
feat(attributes): Generalize sentry.client_sample_rate - #814
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Bug Fixes 🐛
Internal Changes 🔧Attributes
Other
🤖 This preview updates automatically when you update the PR. |
k-fish
left a comment
There was a problem hiding this comment.
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.", |
There was a problem hiding this comment.
| "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.', |
There was a problem hiding this comment.
| 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. |
There was a problem hiding this comment.
| """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.", |
There was a problem hiding this comment.
| 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", |
There was a problem hiding this comment.
| 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.', |
There was a problem hiding this comment.
| 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` |
There was a problem hiding this comment.
| * 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` |
Looks like we'll be setting this attribute on metrics
getsentry/sentry-python#8320