Sha256: a7af7fad94bc1291ba324f19335a3e79dd0c35310df9e9caec20451a7123a4c4

Contents?: true

Size: 503 Bytes

Versions: 64

Compression:

Stored size: 503 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2017

require_relative 'grpc_server'

::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

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.217.1 test/support/apps/grpc/boot.rb
instana-1.217.0 test/support/apps/grpc/boot.rb
instana-1.216.0 test/support/apps/grpc/boot.rb
instana-1.215.1 test/support/apps/grpc/boot.rb
instana-1.215.0 test/support/apps/grpc/boot.rb
instana-1.214.4 test/support/apps/grpc/boot.rb
instana-1.214.3 test/support/apps/grpc/boot.rb
instana-1.214.2 test/support/apps/grpc/boot.rb
instana-1.214.1 test/support/apps/grpc/boot.rb
instana-1.214.0 test/support/apps/grpc/boot.rb
instana-1.213.3 test/support/apps/grpc/boot.rb
instana-1.213.2 test/support/apps/grpc/boot.rb
instana-1.213.1 test/support/apps/grpc/boot.rb
instana-1.213.0 test/support/apps/grpc/boot.rb
instana-1.212.0 test/support/apps/grpc/boot.rb
instana-1.211.0 test/support/apps/grpc/boot.rb
instana-1.210.1 test/support/apps/grpc/boot.rb
instana-1.210.0 test/support/apps/grpc/boot.rb
instana-1.209.8 test/support/apps/grpc/boot.rb
instana-1.209.7 test/support/apps/grpc/boot.rb