Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the integrations option accept a callable #919

Merged

Conversation

ste93cry
Copy link
Collaborator

@ste93cry ste93cry commented Nov 6, 2019

Q A
Branch? 2.3
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT

This PR aligns the SDK behavior of the integrations option with the one present in the JS SDK. Basically, instead of accepting only a list of integrations, a callable can now be set that will receive the list of default integrations and will return a (customized) list of integrations. This allows users to pick only certain default integrations without having to maintain in their own project the list of default integrations that must be kept in sync with the one of our library

src/Options.php Outdated Show resolved Hide resolved
src/Options.php Outdated Show resolved Hide resolved
…e list of default integrations and returns a custom list
@ste93cry ste93cry force-pushed the feature/integrations-option-as-lambda branch from c00f448 to e680e02 Compare November 10, 2019 14:07
@ste93cry ste93cry force-pushed the feature/integrations-option-as-lambda branch from e680e02 to 5769581 Compare November 10, 2019 14:20
src/Options.php Outdated Show resolved Hide resolved
@ste93cry ste93cry requested a review from Jean85 November 19, 2019 12:46
@ste93cry ste93cry force-pushed the feature/integrations-option-as-lambda branch from d0dede3 to 9a17212 Compare November 20, 2019 08:21
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a little comment, but for the rest it looks good.

src/Options.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@Jean85
Copy link
Collaborator

Jean85 commented Nov 26, 2019

Can we please remember to do a PR to the docs once this is released?

@ste93cry ste93cry merged commit 234de4e into getsentry:develop Nov 27, 2019
@ste93cry ste93cry deleted the feature/integrations-option-as-lambda branch November 27, 2019 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants