lib/request.js
function capturePayload (endpoint, payload) {
  var dumpfile = path.join(os.tmpdir(), 'opbeat-' + endpoint + '-' + Date.now() + '.json')
  fs.writeFile(dumpfile, JSON.stringify(payload), function (err) {
    if (err) console.log('could not capture intake payload: %s', err.message)
    else console.log('intake payload captured: %s', dumpfile)
  })
}
function capturePayload (endpoint, payload) {
  var dumpfile = path.join(os.tmpdir(), 'opbeat-' + endpoint + '-' + Date.now() + '.json')
  fs.writeFile(dumpfile, JSON.stringify(payload), function (err) {
    if (err) console.log('could not capture intake payload: %s', err.message)
    else console.log('intake payload captured: %s', dumpfile)
  })
}
function capturePayload ( endpoint , payload ) { var dumpfile = path . join ( os . tmpdir ( ) , 'opbeat-' + endpoint + '-' + Date . now ( ) + '.json' ) fs . writeFile ( dumpfile , JSON . stringify ( payload ) , function ( err ) { if ( err ) console . log ( 'could not capture intake payload: %s' , err . message ) else console . log ( 'intake payload captured: %s' , dumpfile ) } ) }
Used only for debugging data sent to the intake API
Used only for debugging data sent to the intake API