Sha256: cd817733e5aab59210504a35ec0cec4c5f58194bc6ff12a54081ce237c8403db

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

# encoding: utf-8
# 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

2 entries across 2 versions & 1 rubygems

Version Path
newrelic_rpm-8.10.1 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb