File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -968,8 +968,7 @@ class metric : public ref_counter
968968 explicit metric (const metric_prototype *prototype);
969969 virtual ~metric () = default ;
970970
971- // Encode a metric field specified by `field_name` as json format. However, once the field
972- // are not chosen by `filters`, this function will do nothing.
971+ // Encode a metric field specified by `field_name` with `value` as json format.
973972 template <typename T>
974973 static inline void
975974 encode (metric_json_writer &writer, const std::string &field_name, const T &value)
@@ -978,8 +977,8 @@ class metric : public ref_counter
978977 json::json_encode (writer, value);
979978 }
980979
981- // Encode a metric field specified by `field_name` as json format. However, once the field
982- // are not chosen by `filters`, this function will do nothing.
980+ // Encode a metric field specified by `field_name` with `value` as json format. However,
981+ // once the field are not chosen by `filters`, this function will do nothing.
983982 template <typename T>
984983 static inline void encode (metric_json_writer &writer,
985984 const std::string &field_name,
You can’t perform that action at this time.
0 commit comments