The sentry integration interfaces with sentry-ruby SDK to provide tracing and breadcrumbs on the HTTP requests performed via httpx
.
In order to enable it, just place the following code in your sentry configuration file:
require "httpx/adapters/sentry"
# to enable httpx support in breadcrumbs
Sentry.init do |cfg|
# ...
cfg.breadcrumbs_logger = [:http_logger]
cfg.enabled_patches << :httpx
end
Next: Webmock