@@ -782,9 +782,9 @@ sentry_transaction_finish(sentry_transaction_t *opaque_tx)
782782 sentry_value_t scope_tx = scope -> transaction_object -> inner ;
783783
784784 const char * tx_id = sentry_value_as_string (
785- sentry_value_get_by_key (tx , "trace_id " ));
785+ sentry_value_get_by_key (tx , "span_id " ));
786786 const char * scope_tx_id = sentry_value_as_string (
787- sentry_value_get_by_key (scope_tx , "trace_id " ));
787+ sentry_value_get_by_key (scope_tx , "span_id " ));
788788 if (sentry__string_eq (tx_id , scope_tx_id )) {
789789 sentry__transaction_decref (scope -> transaction_object );
790790 scope -> transaction_object = NULL ;
@@ -953,9 +953,9 @@ sentry_span_finish(sentry_span_t *opaque_span)
953953 sentry_value_t scope_span = scope -> span -> inner ;
954954
955955 const char * span_id = sentry_value_as_string (
956- sentry_value_get_by_key (span , "trace_id " ));
956+ sentry_value_get_by_key (span , "span_id " ));
957957 const char * scope_span_id = sentry_value_as_string (
958- sentry_value_get_by_key (scope_span , "trace_id " ));
958+ sentry_value_get_by_key (scope_span , "span_id " ));
959959 if (sentry__string_eq (span_id , scope_span_id )) {
960960 sentry__span_decref (scope -> span );
961961 scope -> span = NULL ;
0 commit comments