feat: add sdkOptions passthrough for Sentry SDK client options - #52
Open
gradinarufelix wants to merge 1 commit into
Open
feat: add sdkOptions passthrough for Sentry SDK client options#52gradinarufelix wants to merge 1 commit into
gradinarufelix wants to merge 1 commit into
Conversation
This was referenced Aug 15, 2026
Flownative.Sentry.sdkOptions lets projects configure any YAML-representable Sentry SDK option (e.g. max_request_body_size, send_default_pii) without a package change. Options set explicitly by this package always win; the before_send* callbacks, ignore_exceptions and integrations are reserved and rejected at boot with the offending settings path; in_app_exclude entries are merged with the package defaults.
gradinarufelix
force-pushed
the
feature-sdk-options
branch
from
August 17, 2026 07:40
bbfa7ba to
165454d
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
Flownative.Sentry.sdkOptionssettings map whose entries are passed to\Sentry\init(), so projects can configure any YAML-representable SDK option (e.g.max_request_body_size,send_default_pii) without a package change.array_replace($sdkOptions, $typedOptions)), so existing settings likesampleRatecannot be silently overridden.before_send,before_send_transaction,before_send_check_in,before_send_log,before_send_metrics,ignore_exceptionsandintegrationsare reserved and rejected at boot with an exception naming the offending settings path — they are managed by the package (and callables cannot be expressed in YAML anyway).in_app_excludeentries are merged with the package defaults instead of replacing them.Which options are valid depends on the installed
sentry/sentryversion; the README documents this.Background: we roll out Sentry to privacy-sensitive customers and need
max_request_body_size: 'never'(form submissions must not be attached to events) configurable per project without forking.