-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support sentry/sentry 2.3 and fix deprecations (#298)
* Fix a test * Require sentry/sdk:^2.1 to obtain sentry/sentry:^2.3 * Use a callable to filter the integrations * Remove deprecation * Add in_app_include option support * Remap excluded_exceptions option to add the new IgnoreErrorIntegration and avoid deprecation * Map the in_app_include option correctly * Remove multiple conditional code that was necessary to avoid deprecations * Remove multiple conditional code from tests too * Make tests run faster by using process isolation only on End2End * Add changelog entries * Fix test failure message * Revert remapping of project_root to avoid confusion * Add changelog entry for new sentry/sentry support * Fix test * Fix another test * Update changelog to slate 3.4.0 release
- Loading branch information
Showing
22 changed files
with
183 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Sentry\SentryBundle\DependencyInjection; | ||
|
||
use Sentry\Integration\ErrorListenerIntegration; | ||
use Sentry\Integration\ExceptionListenerIntegration; | ||
use Sentry\Integration\IntegrationInterface; | ||
|
||
class IntegrationFilterFactory | ||
{ | ||
public static function create(array $integrationsFromConfiguration): callable | ||
{ | ||
return function (array $integrations) use ($integrationsFromConfiguration) { | ||
$allIntegrations = array_merge($integrations, $integrationsFromConfiguration); | ||
|
||
return array_filter( | ||
$allIntegrations, | ||
static function (IntegrationInterface $integration): bool { | ||
if ($integration instanceof ErrorListenerIntegration) { | ||
return false; | ||
} | ||
|
||
if ($integration instanceof ExceptionListenerIntegration) { | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.