summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-03-09 18:34:03 +0800
committerfumingwei <[email protected]>2023-03-09 18:34:14 +0800
commitcd0ecc40a989ac8e123039b433469ffc1f1c6fd4 (patch)
treed25712be51266ac89da07b779c661a5521fc799c /test
parent134c92609e3b1421b6af8b8317997e2be1018cb5 (diff)
feature:将structfieldstat_instance中的变量名app_name改为name,fieldstat_instance_create函数新增name参数
Diffstat (limited to 'test')
-rw-r--r--test/fs2_test.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/fs2_test.cpp b/test/fs2_test.cpp
index 03b398a..3c16f29 100644
--- a/test/fs2_test.cpp
+++ b/test/fs2_test.cpp
@@ -52,12 +52,7 @@ int main(int argc, char *argv[])
fieldstat_global_enable_prometheus_endpoint(9010, "/metrics");
- test_instance = fieldstat_instance_create();
- ret = fieldstat_set_app_name(test_instance, "test");
- if(ret == -1)
- {
- printf("set fieldstat app_name failed!\n");
- }
+ test_instance = fieldstat_instance_create("test");
ret = fieldstat_set_local_output(test_instance, "./test.fs", "default");
if(ret == -1)