Sha256: 47ec7072dba727c326e9609f3e6a5e74d5f222f80197ea1fc7d7156046dba268

Contents?: true

Size: 577 Bytes

Versions: 64

Compression:

Stored size: 577 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

module Instana
  module Instrumentation
    module RestClientRequest
      def execute(&block)
        # Since RestClient uses net/http under the covers, we just
        # provide span visibility here.  HTTP related KVs are reported
        # in the Net::HTTP instrumentation
        ::Instana.tracer.log_entry(:'rest-client')

        super(&block)
      rescue => e
        ::Instana.tracer.log_error(e)
        raise
      ensure
        ::Instana.tracer.log_exit(:'rest-client')
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/instrumentation/rest-client.rb
instana-1.217.0 lib/instana/instrumentation/rest-client.rb
instana-1.216.0 lib/instana/instrumentation/rest-client.rb
instana-1.215.1 lib/instana/instrumentation/rest-client.rb
instana-1.215.0 lib/instana/instrumentation/rest-client.rb
instana-1.214.4 lib/instana/instrumentation/rest-client.rb
instana-1.214.3 lib/instana/instrumentation/rest-client.rb
instana-1.214.2 lib/instana/instrumentation/rest-client.rb
instana-1.214.1 lib/instana/instrumentation/rest-client.rb
instana-1.214.0 lib/instana/instrumentation/rest-client.rb
instana-1.213.3 lib/instana/instrumentation/rest-client.rb
instana-1.213.2 lib/instana/instrumentation/rest-client.rb
instana-1.213.1 lib/instana/instrumentation/rest-client.rb
instana-1.213.0 lib/instana/instrumentation/rest-client.rb
instana-1.212.0 lib/instana/instrumentation/rest-client.rb
instana-1.211.0 lib/instana/instrumentation/rest-client.rb
instana-1.210.1 lib/instana/instrumentation/rest-client.rb
instana-1.210.0 lib/instana/instrumentation/rest-client.rb
instana-1.209.8 lib/instana/instrumentation/rest-client.rb
instana-1.209.7 lib/instana/instrumentation/rest-client.rb