sentry-yabeda, the Yabeda integration for Sentry's Ruby client
Documentation | Bug Tracker | Forum | IRC: irc.freenode.net, #sentry
The official Ruby-language client and integration layer for the Sentry error reporting API.
Getting Started
Install
gem "sentry-ruby"
gem "sentry-yabeda"
Then initialize Sentry with metrics enabled:
Sentry.init do |config|
config.dsn = ENV["SENTRY_DSN"]
config.enable_metrics = true
end
That's it! All Yabeda metrics will automatically flow to Sentry.
How it works
Counters, histograms, summaries, and directly-set gauges all forward to Sentry inline when your app calls them. Yabeda summaries map to Sentry distributions, as Sentry has no summary type.
Collector blocks (Yabeda.configure { collect { ... } }) are Yabeda's pull hook — in Prometheus they're triggered by a scrape request. Since Sentry is push-based, sentry-yabeda runs a background thread that calls Yabeda.collect! every 15 seconds. Metrics populated this way (typically gauges for GC stats, thread counts, etc.) won't carry trace context.