Skip to content

Commit

Permalink
Use updated attribute utils to fix failing bazel CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Karen Xu committed Dec 22, 2020
1 parent f05aead commit f7dda89
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ class ElasticSearchRecordable final : public sdk::logs::Recordable
json_[name][key.data()] = opentelemetry::nostd::get<double>(value);
return;
case common::AttributeType::TYPE_STRING:
#ifdef HAVE_CSTRING_TYPE
// See attribute_utils.h
case common::AttributeType::TYPE_CSTRING:
#endif

json_[name][key.data()] =
opentelemetry::nostd::get<opentelemetry::nostd::string_view>(value).data();
return;
Expand Down

0 comments on commit f7dda89

Please sign in to comment.