0

I'm trying to use Sentry(it's real-time error tracking) with my drupal site. I install Raven module using composer composer require drupal/raven then enable it. My question is where this line should be initialized Sentry\init(['dsn' => 'https://***@sentry.io/***' ]); I paste it on the top of settings.php file but it raises an error. Also I paste it in index.php, it's return this error Error: Call to undefined function Sentry\init() in main() (line 23 of /var/www/html/index.php) #0 {main}.

Any advice.

closed as unclear what you're asking by Jdrupal, Kevin, Jaypan, Pierre.Vriens, leymannx Sep 9 at 6:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    What is Sentry? – Kevin Sep 8 at 20:16
  • @Kevin it's real-time error tracking for a web app or mobile. – IDI Sep 9 at 5:38

Browse other questions tagged or ask your own question.