feature add common function for soft

This commit is contained in:
alves
2025-12-17 11:42:07 +08:00
parent 399fbc7a33
commit 5ed729e27c
23 changed files with 116 additions and 60 deletions

View File

@@ -27,6 +27,7 @@
#include <cstdlib>
#include <atomic>
#include <random>
#include "common_func/common_func.hpp"
namespace Slic3r {
@@ -193,6 +194,7 @@ void initSentryEx()
#endif
sentry_options_set_environment(options, "develop");
//sentry_options_set_environment(options, "Release");
sentry_options_set_auto_session_tracking(options, 0);
sentry_options_set_symbolize_stacktraces(options, 1);
@@ -202,6 +204,12 @@ void initSentryEx()
sentry_options_set_sample_rate(options, 1.0);
sentry_options_set_traces_sample_rate(options, 1.0);
sentry_set_tag("version", Snapmaker_VERSION);
std::string flutterVersion = common::get_flutter_version();
if (!flutterVersion.empty())
set_sentry_tags("flutter_version", flutterVersion);
sentry_init(options);
sentry_start_session();