David Kimura PRO said over 3 years ago on Tracking Javascript Errors :
  I would probably use the environment option which you can create a metatag on the layout with the Rails.env and fetch this to set it in the Sentry init. https://docs.sentry.io/platforms/javascript/configuration/options/#environment