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