Skip to content

Conversation

@tustanivsky
Copy link
Collaborator

This PR adds a new public API function sentry_user_consent_is_required() that allows applications to query at runtime whether user consent is required. This complements the existing consent management APIs and addresses a gap where the consent requirement could only be queried during initialization with direct access to the options object.

Closes #1441

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 9ad717a

return rv;
}

int
Copy link
Contributor

Choose a reason for hiding this comment

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

int needed or we could use bool here? require_user_consent is a boolean.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The existing public API uses int for similar boolean-style returns so the idea was just to keep it consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide way to query user consent requirement at runtime

4 participants