Skip to content

Commit

Permalink
metrics: Need to surround label value with double quotes
Browse files Browse the repository at this point in the history
Signed-off-by: David Goulet <[email protected]>
  • Loading branch information
dgoulet-tor committed May 12, 2021
1 parent 22861c2 commit e3f5dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/metrics/metrics_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit e3f5dc1

Please sign in to comment.