mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
sentry: set tags after init
This commit is contained in:
@ -47,14 +47,14 @@ pub fn init(gpa: Allocator) !void {
|
|||||||
// Debug logging for Sentry
|
// Debug logging for Sentry
|
||||||
sentry.c.sentry_options_set_debug(opts, @intFromBool(true));
|
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
|
// Setup some basic tags that we always want present
|
||||||
sentry.setTag("app-runtime", @tagName(build_config.app_runtime));
|
sentry.setTag("app-runtime", @tagName(build_config.app_runtime));
|
||||||
sentry.setTag("font-backend", @tagName(build_config.font_backend));
|
sentry.setTag("font-backend", @tagName(build_config.font_backend));
|
||||||
sentry.setTag("renderer", @tagName(build_config.renderer));
|
sentry.setTag("renderer", @tagName(build_config.renderer));
|
||||||
|
|
||||||
// Initialize
|
|
||||||
if (sentry.c.sentry_init(opts) != 0) return error.SentryInitFailed;
|
|
||||||
|
|
||||||
// Log some information about sentry
|
// Log some information about sentry
|
||||||
log.debug("sentry initialized database={s}", .{cache_dir});
|
log.debug("sentry initialized database={s}", .{cache_dir});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user