Sha256: 51b7fff167ff6363d441c0d32f4985076608fd92eaf7d17af099748634a16d54
Contents?: true
Size: 513 Bytes
Versions: 32
Compression:
Stored size: 513 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.send(:prepend, Appsignal::Integrations::HttpIntegration) Appsignal::Environment.report_enabled("http_rb") end end end end
Version data entries
32 entries across 32 versions & 1 rubygems