Sha256: 7a6fe9062d7d3fb8bdb48ff250cbd3f1462671fe07a7d419dec943740c6c7157

Contents?: true

Size: 844 Bytes

Versions: 20

Compression:

Stored size: 844 Bytes

Contents

# -*- ruby -*-
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# This module includes utilities for manipulating URIs, particularly from the
# context of Net::HTTP requests. We don't always have direct access to the full
# URI from our instrumentation points in Net::HTTP, and we want to filter out
# some URI parts before saving URIs from instrumented calls - logic for that
# lives here.

module NewRelic
  module Agent
    module HTTPClients
      module URIUtil

        def self.filter_uri(original)
          filtered = original.dup
          filtered.user = nil
          filtered.password = nil
          filtered.query = nil
          filtered.fragment = nil
          filtered.to_s
        end

      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
newrelic_rpm-3.8.1.221 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.8.0.218 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.3.204 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.3.199 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.2.195 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.2.192 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.2.190.beta lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.1.188 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.1.182 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.1.180 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.0.177 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.7.0.174.beta lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.9.171 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.8.168 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.8.164 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.7.159 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.7.159.beta lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.7.152 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.6.147 lib/new_relic/agent/http_clients/uri_util.rb
newrelic_rpm-3.6.5.130 lib/new_relic/agent/http_clients/uri_util.rb