opencensus-ruby icon indicating copy to clipboard operation
opencensus-ruby copied to clipboard

Stack trace not being logged in OpenCensus::Trace::Exporters::Logger

Open danielmbarlow opened this issue 6 years ago • 0 comments

Stack Traces appear in the log as {},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}.

I ran this test:

# Works in plain Ruby without Rails
user ~/app $ irb
irb(main):002:0> require 'json'
=> true
irb(main):003:0> caller_locations.to_json
=> "[\"/usr/local/lib/ruby/2.5.0/irb/workspace.rb:85:in 
...
`run'\",\"/usr/local/lib/ruby/2.5.0/irb.rb:383:in `start'\",\"/usr/local/bin/irb:11:in `<main>'\"]"

# Stack trace entries hidden when loading Rails
user ~/app $ bin/rails c
Loading development environment (Rails 5.1.6)
irb(main):002:0> caller_locations.to_json
=> "[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]"

I'm going to submit a PR with a fix in SpanBuilder

danielmbarlow avatar Jul 04 '19 15:07 danielmbarlow