From 61db55f095581402fac48b3fc28e257553ba82d8 Mon Sep 17 00:00:00 2001 From: GitHub Date: Tue, 5 May 2026 04:01:07 +0000 Subject: [PATCH 1/3] chore: update modules/sentry-native to 0.14.0 --- modules/sentry-native | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sentry-native b/modules/sentry-native index 87f25f2a4b..c0e5f0705d 160000 --- a/modules/sentry-native +++ b/modules/sentry-native @@ -1 +1 @@ -Subproject commit 87f25f2a4b1c7bd5edc0b4dfd5ee463ffc4cf2d8 +Subproject commit c0e5f0705da3853ff548c7ece77d639a20e1d8f5 From de270315127f8129a8dd336f2ac5cdbe3f037026 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 5 May 2026 21:13:18 +0200 Subject: [PATCH 2/3] Pass EnableLogs/Metrics to Native --- src/Sentry/Platforms/Native/CFunctions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Sentry/Platforms/Native/CFunctions.cs b/src/Sentry/Platforms/Native/CFunctions.cs index 5faa149720..6e85200c90 100644 --- a/src/Sentry/Platforms/Native/CFunctions.cs +++ b/src/Sentry/Platforms/Native/CFunctions.cs @@ -85,6 +85,8 @@ public static bool Init(SentryOptions options) // Note: DSN is not null because options.IsValid() must have returned true for this to be called. sentry_options_set_dsn(cOptions, options.Dsn!); + sentry_options_set_enable_logs(cOptions, options.EnableLogs ? 1 : 0); + sentry_options_set_enable_metrics(cOptions, options.EnableMetrics ? 1 : 0); if (options.Release is not null) { @@ -381,6 +383,10 @@ internal double Double [DllImport("sentry-native")] private static extern void sentry_options_set_auto_session_tracking(IntPtr options, int debug); + [DllImport("sentry-native")] + private static extern void sentry_options_set_enable_logs(IntPtr options, int enable); + [DllImport("sentry-native")] + private static extern void sentry_options_set_enable_metrics(IntPtr options, int enable); [DllImport("sentry-native")] private static extern void sentry_options_set_transport(IntPtr options, IntPtr transport); From d4882695a9817a11d015dc3bb69c0a8532f714cd Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 5 May 2026 22:31:26 +0200 Subject: [PATCH 3/3] Revert "Pass EnableLogs/Metrics to Native" This reverts commit de270315127f8129a8dd336f2ac5cdbe3f037026. --- src/Sentry/Platforms/Native/CFunctions.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Sentry/Platforms/Native/CFunctions.cs b/src/Sentry/Platforms/Native/CFunctions.cs index 6e85200c90..5faa149720 100644 --- a/src/Sentry/Platforms/Native/CFunctions.cs +++ b/src/Sentry/Platforms/Native/CFunctions.cs @@ -85,8 +85,6 @@ public static bool Init(SentryOptions options) // Note: DSN is not null because options.IsValid() must have returned true for this to be called. sentry_options_set_dsn(cOptions, options.Dsn!); - sentry_options_set_enable_logs(cOptions, options.EnableLogs ? 1 : 0); - sentry_options_set_enable_metrics(cOptions, options.EnableMetrics ? 1 : 0); if (options.Release is not null) { @@ -383,10 +381,6 @@ internal double Double [DllImport("sentry-native")] private static extern void sentry_options_set_auto_session_tracking(IntPtr options, int debug); - [DllImport("sentry-native")] - private static extern void sentry_options_set_enable_logs(IntPtr options, int enable); - [DllImport("sentry-native")] - private static extern void sentry_options_set_enable_metrics(IntPtr options, int enable); [DllImport("sentry-native")] private static extern void sentry_options_set_transport(IntPtr options, IntPtr transport);