Sha256: d223566fcd9c4fb7e9419960bb9a53762cf68e2996e6942688ee52f2738ab0b7
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true module NewRelic module Agent module Instrumentation module GRPC module Helper NR_8T_HOST_PATTERN = %r{tracing\.(?:staging-)?edge\.nr-data}.freeze def cleaned_method(method) method = method.to_s unless method.is_a?(String) return method unless method.start_with?('/') method[1..-1] end def host_denylisted?(host) ignore_patterns.any? { |regex| host.match?(regex) } end def ignore_patterns ([NR_8T_HOST_PATTERN] + NewRelic::Agent.config[:'instrumentation.grpc.host_denylist']).freeze end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-8.10.0 | lib/new_relic/agent/instrumentation/grpc/helper.rb |