function raven_tags_context in Raven: Sentry Integration 7.4
Same name and namespace in other branches
- 7.2 raven.module \raven_tags_context()
- 7.3 raven.module \raven_tags_context()
Appends tags context.
Parameters
array $data: Associative array of tags.
File
- ./
raven.module, line 362 - Allows to track errors to Sentry server.
Code
function raven_tags_context(array $data = []) {
if (raven_get_client()) {
\Sentry\configureScope(function (Scope $scope) use ($data) : void {
$scope
->setTags($data);
});
}
}