Skip to content

Add support for sending arbitrary context data #41

@joshuap

Description

@joshuap

In Ruby we can do:

Honeybadger.context({
  foo: 'bar'
})

and/or:

Honeybadger.notify(error, context: {bar: 'baz'})

The first is registered globally and the second is registered only for that exception and merged into the global context.

The context object itself is a map which is sent in the JSON payload for the error under payload['request']['context'].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions