class ElasticAPM::GRPC::ClientInterceptor
def span_context(call)
def span_context(call) peer = call.instance_variable_get(:@wrapped)&.peer return unless peer split_peer = URI.split(peer) destination = ElasticAPM::Span::Context::Destination.new( address: split_peer[0], port: split_peer[6], service: { type: TYPE, name: SUBTYPE, resource: peer } ) ElasticAPM::Span::Context.new(destination: destination) end