Skip to content

Adopt generic variant type in public APIs #971

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tustanivsky
Copy link
Collaborator

This PR adopts the FSentryVariant type introduced in #940 for use in public APIs that handle arbitrary Sentry objects data (e.g. contexts and extras in USentryScope, data in USentryBreadcrumb). This allows to move away from using FString in favor of a more flexible and type-safe approach.

It also adds TryGet-functions for scope's tags, extras and contexts (#951).

Copy link
Contributor

github-actions bot commented Jun 20, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Adopt generic variant type in public APIs ([#971](https://github.com/getsentry/sentry-unreal/pull/971))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 4b80e7a

@tustanivsky tustanivsky changed the title Add generic variant type support for API Adopt generic variant type in public APIs Jun 20, 2025
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.

1 participant