diff --git a/src/sentry.zig b/src/sentry.zig index 452a28800..86567fbad 100644 --- a/src/sentry.zig +++ b/src/sentry.zig @@ -47,14 +47,14 @@ pub fn init(gpa: Allocator) !void { // Debug logging for Sentry sentry.c.sentry_options_set_debug(opts, @intFromBool(true)); + // Initialize + if (sentry.c.sentry_init(opts) != 0) return error.SentryInitFailed; + // Setup some basic tags that we always want present sentry.setTag("app-runtime", @tagName(build_config.app_runtime)); sentry.setTag("font-backend", @tagName(build_config.font_backend)); sentry.setTag("renderer", @tagName(build_config.renderer)); - // Initialize - if (sentry.c.sentry_init(opts) != 0) return error.SentryInitFailed; - // Log some information about sentry log.debug("sentry initialized database={s}", .{cache_dir}); }