Documentation ¶
Overview ¶
Copyright 2020 The Moov Authors Use of this source code is governed by an Apache License license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IdempotentRecorder = lru.New() // Prometheus Metrics Histogram = prometheus.NewHistogramFrom(stdprometheus.HistogramOpts{ Name: "http_response_duration_seconds", Help: "Histogram representing the http response durations", }, []string{"route"}) )
Functions ¶
func CleanPath ¶
CleanPath takes a URL path and formats it for Prometheus metrics
This method replaces /'s with -'s and strips out moov/base.ID() values from URL path slugs.
func ReadOffset ¶
ReadOffset returns the "offset" query param from a request or zero if it's missing.
Types ¶
Click to show internal directories.
Click to hide internal directories.