Class: NewRelic::Agent::Instrumentation::GRPC::Client::RequestWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ RequestWrapper

Returns a new instance of RequestWrapper.



13
14
15
16
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 13

def initialize(host)
  @host = host
  @newrelic_metadata = {}
end

Instance Attribute Details

#newrelic_metadataObject (readonly)

Returns the value of attribute newrelic_metadata.



11
12
13
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 11

def 
  @newrelic_metadata
end

Instance Method Details

#[]=(key, value) ⇒ Object



22
23
24
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 22

def []=(key, value)
  @newrelic_metadata[key] = value
end

#host_from_headerObject



18
19
20
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 18

def host_from_header
  @host
end