You are here

function raven_extra_context in Raven: Sentry Integration 7.2

Same name and namespace in other branches
  1. 7.4 raven.module \raven_extra_context()
  2. 7.3 raven.module \raven_extra_context()

Appends additional context.

Parameters

array $data: Associative array of extra data.

File

./raven.module, line 432
Allows to track errors to Sentry server.

Code

function raven_extra_context(array $data = array()) {
  $client = raven_get_client();
  if (!$client) {
    return;
  }
  $client
    ->extra_context($data);
}