Skip to content

Commit

Permalink
Add explicit type conversion when assigning value_type to Jaeger tag (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Dec 9, 2021
1 parent 30d9bbc commit 5e258b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporters/jaeger/test/jaeger_recordable_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ void addTag(thrift::TagType::type tag_type,
tag.__set_vType(tag_type);
if (tag_type == thrift::TagType::LONG)
{
tag.__set_vLong(value);
tag.__set_vLong(static_cast<int64_t>(value));
}
else if (tag_type == thrift::TagType::DOUBLE)
{
tag.__set_vDouble(value);
tag.__set_vDouble(static_cast<double>(value));
}
else if (tag_type == thrift::TagType::BOOL)
{
tag.__set_vBool(value);
tag.__set_vBool(static_cast<bool>(value));
}

tags.push_back(tag);
Expand Down

0 comments on commit 5e258b0

Please sign in to comment.