PrometheusFunctionNotifier records metrics to Prometheus
| 29 | |
| 30 | // PrometheusFunctionNotifier records metrics to Prometheus |
| 31 | type PrometheusFunctionNotifier struct { |
| 32 | Metrics *metrics.MetricOptions |
| 33 | //FunctionNamespace default namespace of the function |
| 34 | FunctionNamespace string |
| 35 | } |
| 36 | |
| 37 | // Notify records metrics in Prometheus |
| 38 | func (p PrometheusFunctionNotifier) Notify(method string, URL string, originalURL string, statusCode int, event string, duration time.Duration) { |
nothing calls this directly
no outgoing calls
no test coverage detected