-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingest metrics with Sentry as well #1351
Conversation
cd62655
to
0d516d1
Compare
805b729
to
4d321c1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1351 +/- ##
==========================================
- Coverage 76.09% 76.06% -0.03%
==========================================
Files 101 100 -1
Lines 15262 14851 -411
==========================================
- Hits 11613 11297 -316
+ Misses 3649 3554 -95 |
4d321c1
to
0a9804c
Compare
let sink = UdpMetricSink::from(&addrs[..], socket).unwrap(); | ||
let mut builder = StatsdClient::builder(prefix, sink); | ||
let udp_sink = BufferedUdpMetricSink::from(&addrs[..], socket).unwrap(); | ||
let queuing_sink = QueuingMetricSink::from(udp_sink); | ||
let mut builder = StatsdClient::builder(prefix, queuing_sink); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same change as in #1360, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are looking at on old diff. I pretty much just rebased this far enough so that I can capture a profile for demonstration purposes :-D
#1408 is now hooked up to the aggregator and sends Sentry metrics from the final aggregator thread. |
The way we often
&X.to_string()
forcadence
sake because it takes a&'a str
, and now we have to.to_string()
a shitton more because Sentry wants aCow<'static, str>
makes me die inside :-(The overhead of using Sentry metrics looks like a ~2x-10x reduction in throughput:
#skip-changelog