Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/ylt/standalone/cinatra/coro_http_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ class coro_http_server {
std::scoped_lock lock(*conn_mtx_);
connections_.emplace(conn_id, conn);
}
return std::move(conn);
return conn;
}

async_simple::coro::Lazy<std::error_code> accept() {
Expand Down Expand Up @@ -1219,4 +1219,4 @@ class coro_http_server {
using http_server = coro_http_server;
using request = coro_http_request;
using response = coro_http_response;
} // namespace cinatra
} // namespace cinatra
2 changes: 1 addition & 1 deletion website/docs/zh/metric/metric_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
metric 用于统计应用程序的各种指标,这些指标被用于系统见识和警报,常见的指标类型有四种:Counter、Gauge、Histogram和Summary,这些指标遵循[Prometheus](https://hulining.gitbook.io/prometheus/introduction)的数据格式。yalantinglibs提供了一系列高性能且线程安全的统计工具。

metric 包括4种指标类型:
- couter:只会增加的指标;
- counter:只会增加的指标;
- gauge:可以增加或减少的指标,它派生于counter;
- histogram:直方图,初始化的时候需要设置桶(bucket);
- summary:分位数指标,初始化的时候需要设置桶和误差;
Expand Down
Loading