Skip to content

Commit

Permalink
leave a note
Browse files Browse the repository at this point in the history
  • Loading branch information
relaxolotl committed Dec 11, 2021
1 parent 4ac8675 commit a031aae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,8 @@ sentry_transaction_context_set_name(
sentry_value_t transaction_context, const char *name)
{
sentry_value_t sv_name = sentry_value_new_string(name);
// TODO: Consider doing this checking right before sending or flushing
// the transaction.
if (sentry__string_eq(name, "") || sentry_value_is_null(sv_name)) {
sentry_value_decref(sv_name);
sv_name = sentry_value_new_string("<unlabeled transaction>");
Expand Down

0 comments on commit a031aae

Please sign in to comment.