I might not be overly helpful, but in the older PHP SDK (sentry/sentry < 2.x) there was a “app_paths” configuration which let you set base paths that we’d strip/look for.
Thanks a bunch for the replies! app_paths looks like what I want so I’ll give that a try and report back.
Unfortunately I was unable to use SDK >=2.0 which is still in beta due to a dependency in composer:
$ composer require sentry/sentry:^2@beta
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sentry/sentry 2.0.0-beta2 requires php-http/async-client-implementation ^1.0 -> no matching package found.
- sentry/sentry 2.0.0-beta1 requires php-http/async-client-implementation ^1.0 -> no matching package found.
- Installation request for sentry/sentry ^2@beta -> satisfiable by sentry/sentry[2.0.0-beta1, 2.0.0-beta2].
My setup looks like:
$client = new \Raven_Client($this->siteConfig->sentryErrorReportingUrl, [
'app_path' => realpath($this->siteConfig->appPath),
]);
$client->install();