sentry_transaction_set_data() - Discarded unknown attribute #981
-
Hello trying to send custom data to with a transaction, but guess I'm doing something wrong. Anyone got any ideas? Code: 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); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @AntonTenstar! No, you're not doing anything wrong here, afaics. However, this seems to be a blind spot in the event protocol behind transactions. The initial definition from the docs considers transactions to be events that are also spans (== the root span of a transaction): https://develop.sentry.dev/sdk/event-payloads/transaction/#anatomy This is also how it is implemented in the Native SDK. In that sense, transaction events should have a |
Beta Was this translation helpful? Give feedback.
Thanks again for raising this, @AntonTenstar! I will provide a fix for this with the next release. You can track the changes via #983 and #986.