Unlike other Native SDK callbacks sentry_options_set_traces_sampler doesn’t provide a user_data parameter which normally acts as a closure allowing access to the subsystem implementation within the handler.
Originally posted by @tustanivsky in getsentry/sentry-unreal#1057 (comment)