Sha256: 4e0dcf6adf2de44040c1979f7d6c9a61fa821d540573e1523d0cd14c724aa81c

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

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

require_relative 'instrumentation'

module NewRelic
  module Agent
    module Instrumentation
      module GRPC
        module Server
          module RpcDescPrepend
            include NewRelic::Agent::Instrumentation::GRPC::Server

            def handle_request_response(active_call, mth, inter_ctx)
              handle_with_tracing(:request_response, active_call, mth, inter_ctx) { super }
            end

            def handle_client_streamer(active_call, mth, inter_ctx)
              handle_with_tracing(:client_streamer, active_call, mth, inter_ctx) { super }
            end

            def handle_server_streamer(active_call, mth, inter_ctx)
              handle_with_tracing(:server_streamer, active_call, mth, inter_ctx) { super }
            end

            def handle_bidi_streamer(active_call, mth, inter_ctx)
              handle_with_tracing(:bidi_streamer, active_call, mth, inter_ctx) { super }
            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/server/rpc_desc_prepend.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/instrumentation/grpc/server/rpc_desc_prepend.rb