Skip to content

Commit 696c066

Browse files
committed
Fix issue with gauge metric when using tags
Fixes bug where if sending a guage metric with a tag, the tag(s) wouldn't get sent.
1 parent 096e739 commit 696c066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataDogStatsD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void DataDogStatsD::gauge(std::string stats, float value, std::string tags)
148148

149149
std::map<std::string, std::string> data;
150150
data[stats] = valueStream.str();
151-
this->send(data, 1.0);
151+
this->send(data, 1.0, tags);
152152
}
153153

154154
void DataDogStatsD::histogram(std::string stats, float value)

0 commit comments

Comments
 (0)