summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-08-01 14:55:40 +0800
committerchenzizhan <[email protected]>2024-08-01 14:55:40 +0800
commit6d98df95300d5ddae1111c559cae96e52e38d900 (patch)
tree1a3907fabc92ca4f577c5a847ffd6e3b1a9312f2 /include
parentae4c5b46775a0b730169c2d3b13190163d50f262 (diff)
name of exporter is also a global tag
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat_exporter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h
index dfa5782..4f1a123 100644
--- a/include/fieldstat/fieldstat_exporter.h
+++ b/include/fieldstat/fieldstat_exporter.h
@@ -15,8 +15,7 @@ struct fieldstat_json_exporter;
struct fieldstat_json_exporter *fieldstat_json_exporter_new();
void fieldstat_json_exporter_set_global_dimension(struct fieldstat_json_exporter *exporter, const struct field tag_list[], size_t n_field);
-void fieldstat_json_exporter_set_name(struct fieldstat_json_exporter *exporter, const char *name);
-// todo: 这个删除,对于easy,额外记录下,其实就是单独给奇怪的global tag 开个后门,python 和 .c 之间达成约定
+
void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter);
/*
@@ -76,7 +75,7 @@ char *fieldstat_json_exporter_export_flat(const struct fieldstat_json_exporter *
let json exporter output delta value by the side of the original value(accumulated). If a cell / metric is new, the delta value is the same as the original value.
Outputting delta value is disabled by default.
When the exporter name or exporter global tags are changed, or the fieldstat instance is reset, or one of the cube is deleted, the delta value will be reset. (next output will be the original value)
- it is recommended to call this function after fieldstat_json_exporter_set_name and fieldstat_json_exporter_set_global_dimension.
+ it is recommended to call this function after fieldstat_json_exporter_set_global_dimension.
Only affects the metrics of counter type.
Outputting delta value is time-consuming.
*/