Last active
February 20, 2020 22:50
-
-
Save woto/4bc9e0bf3d5ef0cabaebd581cac17b12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
:duration => 2000.2723450306803, | |
:allocations => 20, | |
:cpu_time => 0.20638099999999854, | |
:idle_time => 2000.0659640306803, | |
:transaction_id => "054dc3152d419f050463", | |
:payload => { | |
:rack_env => { | |
"CONTENT_LENGTH" => "7", | |
"CONTENT_TYPE" => "application/protobuf", | |
"GATEWAY_INTERFACE" => "CGI/1.1", | |
"PATH_INFO" => "/Hello", | |
"QUERY_STRING" => "", | |
"REMOTE_ADDR" => "127.0.0.1", | |
"REMOTE_HOST" => "127.0.0.1", | |
"REQUEST_METHOD" => "POST", | |
"REQUEST_URI" => "http://localhost:8080/twirp/example.hello_world.HelloWorld/Hello", | |
"SCRIPT_NAME" => "/twirp/example.hello_world.HelloWorld", | |
"SERVER_NAME" => "localhost", | |
"SERVER_PORT" => "8080", | |
"SERVER_PROTOCOL" => "HTTP/1.1", | |
"SERVER_SOFTWARE" => "WEBrick/1.4.2 (Ruby/2.6.5/2019-10-01)", | |
"HTTP_USER_AGENT" => "Faraday v0.17.3", | |
"HTTP_ACCEPT_ENCODING" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3", | |
"HTTP_ACCEPT" => "*/*", | |
"HTTP_CONNECTION" => "close", | |
"HTTP_HOST" => "localhost:8080", | |
"rack.version" => [ | |
[0] 1, | |
[1] 3 | |
], | |
"rack.input" => #<StringIO:0x000055af95877e28>, | |
"rack.errors" => #<IO:<STDERR>>, | |
"rack.multithread" => true, | |
"rack.multiprocess" => false, | |
"rack.run_once" => false, | |
"rack.url_scheme" => "http", | |
"rack.hijack?" => true, | |
"rack.hijack" => #<Proc:0x000055af95877d10@/home/woto/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.0.8/lib/rack/handler/webrick.rb:74 (lambda)>, | |
"rack.hijack_io" => nil, | |
"HTTP_VERSION" => "HTTP/1.1", | |
"REQUEST_PATH" => "/twirp/example.hello_world.HelloWorld/Hello" | |
}, | |
:env => { | |
:content_type => "application/protobuf", | |
:rpc_method => :Hello, | |
:input_class => Example::HelloWorld::HelloRequest < Object, | |
:output_class => Example::HelloWorld::HelloResponse < Object, | |
:ruby_method => :hello, | |
:input => <Example::HelloWorld::HelloRequest: name: "World">, | |
:http_response_headers => {}, | |
:exception => { | |
:class => RuntimeError < StandardError, | |
:message => "Exception raised in 'hello' handler", | |
:backtrace => "./hello_world_server.rb:27:in `hello'\n/home/woto/work/tt/twirp-ruby/lib/twirp/service.rb:165:in `call_handler'\n/home/woto/work/tt/twirp-ruby/lib/twirp/service.rb:72:in `call'\n/home/woto/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.0.8/lib/rack/handler/webrick.rb:86:in `service'\n/home/woto/.rbenv/versions/2.6.5/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'\n/home/woto/.rbenv/versions/2.6.5/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'\n/home/woto/.rbenv/versions/2.6.5/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment