Helper/Hook.php
public function setCommonMetaData()
    {
        if ($boltTraceId = $this->request->getHeader(ConfigHelper::BOLT_TRACE_ID_HEADER)) {
            $this->bugsnag->registerCallback(function ($report) use ($boltTraceId) {
                $report->setMetaData([
                    'META DATA' => [
                        'bolt_trace_id' => $boltTraceId,
                    ]
                ]);
            });
        }
    }
public function setCommonMetaData()
    {
        if ($boltTraceId = $this->request->getHeader(ConfigHelper::BOLT_TRACE_ID_HEADER)) {
            $this->bugsnag->registerCallback(function ($report) use ($boltTraceId) {
                $report->setMetaData([
                    'META DATA' => [
                        'bolt_trace_id' => $boltTraceId,
                    ]
                ]);
            });
        }
    }
public function setCommonMetaData ( ) { if ( $ boltTraceId = $ this -> request -> getHeader ( ConfigHelper :: BOLT_TRACE_ID_HEADER ) ) { $ this -> bugsnag -> registerCallback ( function ( $ report ) use ( $ boltTraceId ) { $ report -> setMetaData ( [ 'META DATA' => [ 'bolt_trace_id' => $ boltTraceId , ] ] ) ; } ) ; } }
Set bugsnag metadata bolt_trace_id
Set bugsnag metadata bolt_trace_id