Skip to content

Commit 6dd54aa

Browse files
committed
Add general data type overview to intro section
1 parent 9fcb8d3 commit 6dd54aa

File tree

1 file changed

+7
-5
lines changed
  • platform-includes/performance/improving-data

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
## Improving Data on Transactions and Spans
2-
3-
### Adding Data Attributes to Transactions
4-
5-
You can add data attributes to your transactions. This data is visible in the trace explorer in Sentry. Data attributes must be of type `sentry_value_t`, which can store
2+
You can add Data Attributes to both Spans and Transactions. This data is visible in the trace explorer in Sentry.
3+
The data must be of type `sentry_value_t`, which can store:
64
* 32-bit signed integers,
75
* double-precision floating-points,
86
* null-terminated strings, as well as
97
* lists and string-keyed maps containing `sentry_value_t` entries
108

9+
### Adding Data Attributes to Transactions
10+
11+
You can add data attributes to your transactions using the following API:
12+
1113
```c
1214
sentry_transaction_context_t *tx_ctx =
1315
sentry_transaction_context_new("processOrderBatch()", "task");
@@ -42,7 +44,7 @@ sentry_transaction_set_data(tx, "my-data-attribute-6", value_object);
4244
4345
### Adding Data Attributes to Spans
4446
45-
You can add data attributes to your spans. This data is visible in the trace explorer in Sentry. Data attributes must be of type `sentry_value_t`, which can be used to store `int32_t`, `double`, `int`, `char *` as well as lists containing `sentry_value_t` entries or a map with `char *` keys and `sentry_value_t` values:
47+
You can add data attributes to your spans using the following API:
4648
4749
```c
4850
sentry_transaction_context_t *tx_ctx =

0 commit comments

Comments
 (0)