metrics: Need to surround label value with double quotes

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2021-05-12 13:24:22 -04:00
parent 22861c2f40
commit e3f5dc1fd3

View File

@ -37,6 +37,6 @@ const char *
metrics_format_label(const char *key, const char *value)
{
static char buf[128];
tor_snprintf(buf, sizeof(buf), "%s=%s", key, value);
tor_snprintf(buf, sizeof(buf), "%s=\"%s\"", key, value);
return buf;
}