getsentry / sentry-native

Sentry SDK for C, C++ and native applications.
MIT License
378 stars 164 forks source link

sentry_transaction_set_data() - Discarded unknown attribute #983

Closed supervacuus closed 1 month ago

supervacuus commented 2 months ago

Discussed in https://github.com/getsentry/sentry-native/discussions/981

Originally posted by **AntonTenstar** April 25, 2024 Hello trying to send custom data to with a transaction, but guess I'm doing something wrong. Anyone got any ideas? Code: ```C sentry_transaction_context_t* tx_ctx = sentry_transaction_context_new("test transaction", "performance"); sentry_transaction_t* tx = sentry_transaction_start(tx_ctx, sentry_value_new_null()); sentry_transaction_set_data(tx, "performance", sentry_value_new_int32(1337)); sentry_transaction_finish(tx); ``` Result: ![image](https://github.com/getsentry/sentry-native/assets/90307454/39f87f95-e98d-4b45-a8b7-c4947e22f0c3)