Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HoneyBadger Logger to send stacktrace #24

Open
stnguyen90 opened this issue Jan 20, 2023 · 1 comment
Open

Update HoneyBadger Logger to send stacktrace #24

stnguyen90 opened this issue Jan 20, 2023 · 1 comment

Comments

@stnguyen90
Copy link
Contributor

stnguyen90 commented Jan 20, 2023

It would be really nice to be able to pass the stack trace along. Check out how it's implemented in Sentry and how we call this in Appwrite.

Originally posted by @stnguyen90 in #19 (comment)

@stnguyen90
Copy link
Contributor Author

The payload for a backtrace should look like:

    "backtrace":[
      {
        "number":"4",
        "file":"/crywolf/app/controllers/pages_controller.rb",
        "method":"runtime_error",
        "source":{
          "2":"",
          "3":"  def runtime_error",
          "4":"    raise RuntimeError.new(\"This is a runtime error, generated by the crywolf app\")",
          "5":"  end",
          "6":""
        }
      },
      {
        "number":"4",
        "file":"/gems/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb",
        "method":"send_action"
      }
    ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant