diff --git a/metrics/README.md b/metrics/README.md index 8ffa8feb7..1cbb9ab11 100644 --- a/metrics/README.md +++ b/metrics/README.md @@ -49,7 +49,7 @@ import ( ) func main() { - var dur metrics.Histogram = prometheus.NewSummary(stdprometheus.SummaryOpts{ + var dur metrics.Histogram = prometheus.NewSummaryFrom(stdprometheus.SummaryOpts{ Namespace: "myservice", Subsystem: "api", Name: "request_duration_seconds",