Sha256: 29744d5428d22a2516d7d70c8319cdf56d0f1ef1ba836446ada50d22ff437af0
Contents?: true
Size: 505 Bytes
Versions: 164
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Appsignal class Hooks # @api private class HttpHook < Appsignal::Hooks::Hook register :http_rb def dependencies_present? defined?(HTTP::Client) && Appsignal.config && Appsignal.config[:instrument_http_rb] end def install require "appsignal/integrations/http" HTTP::Client.prepend Appsignal::Integrations::HttpIntegration Appsignal::Environment.report_enabled("http_rb") end end end end
Version data entries
164 entries across 164 versions & 1 rubygems