Sha256: 8792c0c0c2e8e04abf31554b35b186af43b9a31489f1d54c6570c9fa60f35fb5

Contents?: true

Size: 691 Bytes

Versions: 9

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

module NewRelic
  module Agent
    module Instrumentation
      module GRPC
        module Client
          class RequestWrapper
            attr_reader :newrelic_metadata

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

            def host_from_header
              @host
            end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
newrelic_rpm-9.1.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-9.0.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.16.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.15.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.14.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.13.1 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.12.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.11.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb