class NewRelic::Agent::InfiniteTracing::Channel
Public Instance Methods
channel()
click to toggle source
# File lib/infinite_tracing/channel.rb, line 19 def channel GRPC::Core::Channel.new(host_and_port, settings, credentials) end
credentials()
click to toggle source
# File lib/infinite_tracing/channel.rb, line 23 def credentials if Config.local? :this_channel_is_insecure else # Uses system configured certificates by default GRPC::Core::ChannelCredentials.new end end
host_and_port()
click to toggle source
# File lib/infinite_tracing/channel.rb, line 32 def host_and_port Config.trace_observer_host_and_port end
settings()
click to toggle source
# File lib/infinite_tracing/channel.rb, line 36 def settings { 'grpc.minimal_stack' => 1, 'grpc.enable_deadline_checking' => 0, } end
stub()
click to toggle source
# File lib/infinite_tracing/channel.rb, line 10 def stub NewRelic::Agent.logger.debug "Infinite Tracer Opening Channel to #{host_and_port}" Com::Newrelic::Trace::V1::IngestService::Stub.new \ host_and_port, credentials, channel_override: channel end