Skip to content

Commit 4385de3

Browse files
committed
revert changes on capture-message
1 parent 2342093 commit 4385de3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

platform-includes/capture-message/native.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,17 @@ To create and capture a manual event, follow these steps:
2020
2. Add custom attributes to the event, like a `message` or an `exception`.
2121
3. Send the event to Sentry by invoking `sentry_capture_event`.
2222
23-
The custom attribute data must be of type `sentry_value_t`, which can store:
24-
* 32-bit signed integers,
25-
* 64-bit signed and unsigned integers,
26-
* double-precision floating-points,
27-
* null-terminated strings, as well as
28-
* lists and string-keyed maps containing `sentry_value_t` entries
29-
3023
In a more complex example, it looks like this:
31-
3224
```c
3325
sentry_value_t event = sentry_value_new_event();
3426
sentry_value_set_by_key(event, "message", sentry_value_new_string("Hello!"));
3527
3628
sentry_value_t screen = sentry_value_new_object();
3729
sentry_value_set_by_key(screen, "width", sentry_value_new_int32(1920));
3830
sentry_value_set_by_key(screen, "height", sentry_value_new_int32(1080));
39-
sentry_value_set_by_key(screen, "refresh_rate", sentry_value_new_double(29.97));
40-
41-
sentry_value_t processed_files = sentry_value_new_list();
42-
sentry_value_append(processed_files, sentry_value_new_uint64(1073741824ULL));
43-
sentry_value_append(processed_files, sentry_value_new_uint64(2147483648ULL));
4431
4532
sentry_value_t contexts = sentry_value_new_object();
4633
sentry_value_set_by_key(contexts, "screen_size", screen);
47-
sentry_value_set_by_key(contexts, "processed_files", processed_files);
4834
4935
sentry_value_set_by_key(event, "contexts", contexts);
5036
sentry_capture_event(event);

0 commit comments

Comments
 (0)