diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-27 19:08:13 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-28 21:43:18 -0700 |
| commit | e029490535c6750d0b0319cbf36453a326e2499d (patch) | |
| tree | 9657b8c9203c12266a5f57ae7ced2746485f3fe0 /pkg | |
| parent | 7f143d9df4a65791fb2155d63aad85e0ec969389 (diff) | |
sentry init uses proper cache dir, sets tags
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/sentry/main.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/main.zig b/pkg/sentry/main.zig index 92e52cee3..dfcc323c4 100644 --- a/pkg/sentry/main.zig +++ b/pkg/sentry/main.zig @@ -14,6 +14,10 @@ pub fn captureEvent(value: Value) ?UUID { return uuid; } +pub fn setTag(key: []const u8, value: []const u8) void { + c.sentry_set_tag_n(key.ptr, key.len, value.ptr, value.len); +} + test { @import("std").testing.refAllDecls(@This()); } |
