Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

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

Open
danielmbarlow opened this issue Jul 4, 2019 · 0 comments

Comments

@danielmbarlow
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant