Draft
Conversation
Switch sentry-rust dependency to the `feat/trace-metrics` branch which adds trace metrics support. Add a `trace_sample_rate` config option (default 0.0) that controls what fraction of relay-statsd metrics are also sent to Sentry as trace metrics via the new `metrics_count`, `metrics_gauge`, and `metrics_distribution` APIs. The double-write is feature-gated behind `sentry-metrics` on relay-statsd, with a no-op fallback when disabled. Counters, gauges, distributions, and timers are forwarded; sets are skipped (no trace metrics equivalent). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…eature - Introduce TracedMetricBuilder wrapper that captures trace metadata (type, name, value) at construction time, eliminating redundant parameters in macro expansions - Add generic build_counter/build_gauge/build_distribution methods on MetricsClient with IntoF64 trait for type-safe f64 conversion - Remove sentry-metrics feature flag, compile trace metric support unconditionally - Trace sample rate is the product of effective_sample_rate and trace_sample_rate, evaluated independently of StatsD sampling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…client_sample_rate Adapt to the updated sentry-rust trace metrics API (getsentry/sentry-rust#997): - Rename `metrics.trace_sample_rate` config to `metrics.send_to_sentry` - Enable `metrics_enabled` on the Sentry SDK when `send_to_sentry > 0.0` - Use sentry-core macros instead of removed free functions - Set `sentry.client_sample_rate` attribute on each trace metric so Sentry can extrapolate from the sampled data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.