@cryptotaxi247 / netdata-1 / commits / a91c4da31

fixed sentry version (#19868)

Costa Tsaousis committed Mar 14, 2025 at 21:52 UTC a91c4da31de89d8c371e4bf8d8f505898e6c00a8
1 file changed +4 -4
src/daemon/sentry-native/sentry-native.c
+4 -4
@@ -19,10 +19,10 @@ void nd_sentry_init(void)
19 sentry_options_set_database_path(options, path);
20 sentry_options_set_environment(options, NETDATA_SENTRY_ENVIRONMENT);
21
22 - char release[64];
23 - snprintfz(release, 64 - 1, "%s.%s.%s",
24 - NETDATA_VERSION_MINOR, NETDATA_VERSION_PATCH, NETDATA_VERSION_TWEAK);
25 - sentry_options_set_release(options, release);
22 + if(NETDATA_VERSION[0] == 'v')
23 + sentry_options_set_release(options, &NETDATA_VERSION[1]);
24 + else
25 + sentry_options_set_release(options, NETDATA_VERSION);
26
27 sentry_options_set_dist(options, NETDATA_SENTRY_DIST);
28 #ifdef NETDATA_INTERNAL_CHECKS