Sha256: bd9e3568222cbf88df88ad34052911746634cc57fd398fd7774916dcdf48d8b1

Contents?: true

Size: 665 Bytes

Versions: 109

Compression:

Stored size: 665 Bytes

Contents

import Rollbar from 'rollbar'

// TODO: testear con capybara, si se puede
let rollbarToken = document.head.querySelector('meta[name=rollbar-token]')
rollbarToken = rollbarToken && rollbarToken.content

let rollbarEnv = document.head.querySelector('meta[name=rollbar-env]')
rollbarEnv = rollbarEnv && rollbarEnv.content
rollbarEnv = rollbarEnv || 'unknown'

window.Rollbar = Rollbar

Rollbar.init()

Rollbar.global({
  itemsPerMinute: 2,
  maxItems: 5
})
Rollbar.configure({
  enabled: !!rollbarToken,
  accessToken: rollbarToken,
  captureUncaught: true,
  captureUnhandledRejections: true,
  reportLevel: 'warning',
  payload: {
    environment: rollbarEnv
  }
})

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.22 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.22.pre.3 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.22.pre.2 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.22.pre.1 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.11 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.10 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.9 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.8 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.7 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.6 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.5 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.4 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.3 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.2 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.21.pre.1 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.20 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.19 pg_layout/app/javascript/config/rollbar.js
pg_rails-7.6.18 pg_layout/app/javascript/config/rollbar.js