PHP code example of ashsmith / magento-bugsnag-notifier-module
1. Go to this page and download the library: Download ashsmith/magento-bugsnag-notifier-module library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ashsmith / magento-bugsnag-notifier-module example snippets
return [
...
'bugsnag' => [
'enabled' => '1',
'api_key' => 'YOUR API KEY',
'endpoint' => 'custom endpoint if
/** @var \Bugsnag\Client $client */
$client = $observer->getData('client');
$client->setMetaData([
'app' => [
'new_property' => 'new_value'
]
]);
/** @var \Bugsnag\Client $client */
$client = $observer->getData('client');
$client->registerCallback(function (\Bugsnag\Report $report) {
$report->setMetaData([
'app' => [
'new_property' => 'new_value'
]
]);
});