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

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

@danielmbarlow

Description

@danielmbarlow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions