From 1f2d4faa84ffb4f34084a2742a8c48e92f656078 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 27 Aug 2024 20:36:07 -0700 Subject: [PATCH] sentry: set tags after init --- src/sentry.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}); }