Skip to content

Commit 4fff3f6

Browse files
committed
fix typo
1 parent be7b3b3 commit 4fff3f6

File tree

1 file changed

+6
-6
lines changed
  • platform-includes/performance/improving-data

1 file changed

+6
-6
lines changed

platform-includes/performance/improving-data/native.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ sentry_transaction_t *tx =
5050
sentry_span_t *span =
5151
sentry_transaction_start_child(tx, "task", "operation");
5252
53-
sentry_span_set_data(child, "my-data-attribute-1",
53+
sentry_span_set_data(span, "my-data-attribute-1",
5454
sentry_value_new_string("value1"));
55-
sentry_span_set_data(child, "my-data-attribute-2",
55+
sentry_span_set_data(span, "my-data-attribute-2",
5656
sentry_value_new_int32(42));
57-
sentry_span_set_data(child, "my-data-attribute-3",
57+
sentry_span_set_data(span, "my-data-attribute-3",
5858
sentry_value_new_double(3.14));
59-
sentry_span_set_data(child, "my-data-attribute-4",
59+
sentry_span_set_data(span, "my-data-attribute-4",
6060
sentry_value_new_bool(true));
6161
6262
sentry_value_t value_list = sentry_value_new_list();
@@ -65,7 +65,7 @@ sentry_value_append(value_list, sentry_value_new_int32(42));
6565
sentry_value_append(value_list, sentry_value_new_double(3.14));
6666
sentry_value_append(value_list, sentry_value_new_bool(true));
6767
68-
sentry_span_set_data(child, "my-data-attribute-5",
68+
sentry_span_set_data(span, "my-data-attribute-5",
6969
value_list);
7070
7171
sentry_value_t value_object = sentry_value_new_object();
@@ -74,6 +74,6 @@ sentry_value_set_by_key(value_object, "key_2", sentry_value_new_int32(42));
7474
sentry_value_set_by_key(value_object, "key_3", sentry_value_new_double(3.14));
7575
sentry_value_set_by_key(value_object, "key_4", sentry_value_new_bool(true));
7676
77-
sentry_span_set_data(child, "my-data-attribute-6",
77+
sentry_span_set_data(span, "my-data-attribute-6",
7878
value_object);
7979
```

0 commit comments

Comments
 (0)