Ruby SDK for bloop error observability. Zero external dependencies — uses only the Ruby standard library.
gem "bloop-sdk"require "bloop"
client = Bloop::Client.new(
endpoint: "https://bloop.example.com",
project_key: "your-api-key",
environment: "production",
release: "1.0.0",
)
# Capture an error
client.capture(error_type: "TypeError", message: "something broke")
# Capture a Ruby exception
begin
do_something
rescue => e
client.capture_exception(e)
end
# Graceful shutdown (also called via at_exit hook)
client.closeenvironment:— Environment tag. Default:"production"release:— Release version. Default:""flush_interval:— Seconds between auto-flushes. Default:5max_buffer_size:— Flush when buffer reaches this size. Default:100
Buffer an error event. Options: source:, stack:, route_or_procedure:, screen:, metadata:.
Capture a Ruby exception (uses class name, message, and backtrace).
Send buffered events immediately.
Flush and stop background thread.