I am integrating Sentry.io into my multisite setup. I have 5 themes and a number of plugins across the network too.
Sentry needs to be initialised as early as possible, I want it to be loaded before the plugins so it can track issues with the plugins too. Where is the best place to insert the following:
To capture all errors, even the one during the startup of your application, you should initialize the Sentry PHP SDK as soon as possible.
Sentry\init(['dsn' => 'https://email@example.com/123456789' ]);
As mentioned, I have multiple themes, so I don't suspect putting this line in each theme is correct.