NewInstrumentationServer returns a server exposing Prometheus metrics.
(port int, registry *prometheus.Registry)
| 21 | |
| 22 | // NewInstrumentationServer returns a server exposing Prometheus metrics. |
| 23 | func NewInstrumentationServer(port int, registry *prometheus.Registry) *InstrumentationServer { |
| 24 | return &InstrumentationServer{ |
| 25 | port: port, |
| 26 | registry: registry, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // Start the instrumentation server. |
| 31 | func (s *InstrumentationServer) Start() error { |