Helper/Bugsnag.php
private function addCommonMetaData()
    {
        $this->bugsnag->registerCallback(function ($report) {
            $report->addMetaData([
                'META DATA' => [
                    'store_url' => $this->storeManager->getStore()->getBaseUrl(
                        \Magento\Framework\UrlInterface::URL_TYPE_WEB
                    )
                ]
            ]);
        });
    }
private function addCommonMetaData()
    {
        $this->bugsnag->registerCallback(function ($report) {
            $report->addMetaData([
                'META DATA' => [
                    'store_url' => $this->storeManager->getStore()->getBaseUrl(
                        \Magento\Framework\UrlInterface::URL_TYPE_WEB
                    )
                ]
            ]);
        });
    }
private function addCommonMetaData ( ) { $ this -> bugsnag -> registerCallback ( function ( $ report ) { $ report -> addMetaData ( [ 'META DATA' => [ 'store_url' => $ this -> storeManager -> getStore ( ) -> getBaseUrl ( \ Magento \ Framework \ UrlInterface :: URL_TYPE_WEB ) ] ] ) ; } ) ; }
Add metadata to every bugsnag log
Add metadata to every bugsnag log