You are here

function raven_extra_context in Raven: Sentry Integration 7.3

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

Appends additional context.

Parameters

array $data: Associative array of extra data.

File

./raven.module, line 428
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);
}