Sha256: 12416d9c778c12083619f6e2010e457bf34bafc3db5145dd189eb8fc2f6c759e

Contents?: true

Size: 483 Bytes

Versions: 81

Compression:

Stored size: 483 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../apps/grpc_server.rb')

::Instana.logger.info "Booting instrumented gRPC server on port 50051 for tests."

grpc_thread = Thread.new do
  s = GRPC::RpcServer.new
  Thread.current[:server] = s

  s.add_http2_port('127.0.0.1:50051', :this_port_is_insecure)
  s.handle(PingPongServer)
  s.run_till_terminated
end

Minitest.after_run do
  ::Instana.logger.info "Killing gRPC server"
  grpc_thread[:server].stop
  sleep 2
end

sleep 2

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
instana-1.193.2 test/servers/grpc_50051.rb
instana-1.192.1 test/servers/grpc_50051.rb
instana-1.192.0 test/servers/grpc_50051.rb
instana-1.13.0 test/servers/grpc_50051.rb
instana-1.12.0 test/servers/grpc_50051.rb
instana-1.11.8-java test/servers/grpc_50051.rb
instana-1.11.8 test/servers/grpc_50051.rb
instana-1.11.7 test/servers/grpc_50051.rb
instana-1.11.6 test/servers/grpc_50051.rb
instana-1.11.6-java test/servers/grpc_50051.rb
instana-1.11.5 test/servers/grpc_50051.rb
instana-1.11.5-java test/servers/grpc_50051.rb
instana-1.11.4-java test/servers/grpc_50051.rb
instana-1.11.4 test/servers/grpc_50051.rb
instana-1.11.3-java test/servers/grpc_50051.rb
instana-1.11.3 test/servers/grpc_50051.rb
instana-1.11.2-java test/servers/grpc_50051.rb
instana-1.11.2 test/servers/grpc_50051.rb
instana-1.11.1-java test/servers/grpc_50051.rb
instana-1.11.1 test/servers/grpc_50051.rb