Closed charles-rumley closed 8 years ago
Are you sure this works, I've been looking at the report_exception
method in the original Rollbar client and it looks like it should be the third parameter rather than the second.
The second parameter $extra_data
is passed to the exception trace builder, and not passed as context data. Or am I wrong?
I guess it should be:
$this->rollbar->report_exception($message, null, $context);
But then again, the second parameter for report_message is also $extra_data ...
Hmm.. good call, report_exception
and report_message
handle $extra_data
differently. Since information in $payload_data
is merged and included, we could add context there, but I'm not sure if Rollbar expects arbitrary data in $payload_data
. I'll give this a more thorough look and update the PR accordingly.
Great, thanks!
As pointed out by @jenssegers and verified by further tests, $context
should be passed as $payload_data
rather than $extra_data
.
Fixes #36