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'].