Documentation ¶
Overview ¶
Package metrics is gin metrics library, collect five metrics, "uptime", "http_request_count_total", "http_request_duration_seconds", "http_request_size_bytes", "http_response_size_bytes".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option set the metrics options.
func WithIgnoreRequestMethods ¶
WithIgnoreRequestMethods ignore request methods
func WithIgnoreRequestPaths ¶
WithIgnoreRequestPaths ignore request paths
func WithIgnoreStatusCodes ¶
WithIgnoreStatusCodes ignore status codes
func WithMetricsPath ¶
WithMetricsPath set metrics path
Click to show internal directories.
Click to hide internal directories.