File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
platform-includes/enriching-events/set-context Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44sentry_value_t character = sentry_value_new_object();
55sentry_value_set_by_key (character, "name", sentry_value_new_string("Mighty Fighter"));
66sentry_value_set_by_key(character, "age", sentry_value_new_int32(19));
7- sentry_value_set_by_key(character, "attack_type", sentry_value_new_string("melee"));
7+ sentry_value_set_by_key(character, "height", sentry_value_new_double(184.6));
8+ sentry_value_set_by_key(character, "is_alive", sentry_value_new_bool(true));
9+ sentry_value_set_by_key(character, "exp", sentry_value_new_uint64(6442450941));
10+
11+ sentry_value_t inventory = sentry_value_new_list();
12+ sentry_value_append(inventory, sentry_value_new_string("sword"));
13+ sentry_value_append(inventory, sentry_value_new_string("shield"));
14+ sentry_value_set_by_key(character, "inventory", inventory);
15+
816sentry_set_context("character", character);
917```
You can’t perform that action at this time.
0 commit comments