From a031aae5391edfc7502a3daa7244d3bd416b92b8 Mon Sep 17 00:00:00 2001 From: Betty Da Date: Fri, 10 Dec 2021 21:06:06 -0500 Subject: [PATCH] leave a note --- src/sentry_value.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sentry_value.c b/src/sentry_value.c index ba841ae69..57bb9710e 100644 --- a/src/sentry_value.c +++ b/src/sentry_value.c @@ -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("");