StartPrometheus starts the Prometheus metrics server
(cancel context.CancelFunc)
| 106 | |
| 107 | // StartPrometheus starts the Prometheus metrics server |
| 108 | func (m *Monitoring) StartPrometheus(cancel context.CancelFunc) error { |
| 109 | for _, monitor := range m.monitors { |
| 110 | if prom, ok := monitor.(*prometheus.Prometheus); ok { |
| 111 | return prom.StartServer(cancel) |
| 112 | } |
| 113 | } |
| 114 | return nil |
| 115 | } |
| 116 | |
| 117 | // StartRequest starts a new request span |
| 118 | func (m *Monitoring) StartRequest( |
no test coverage detected