Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsServer ¶
type MetricsServer struct {
// contains filtered or unexported fields
}
func NewMetricsServer ¶
func NewMetricsServer(port int, registry *prometheus.Registry, logger log.Logger) *MetricsServer
NewMetricsServer returns a server exposing Prometheus metrics.
func (*MetricsServer) Start ¶
func (s *MetricsServer) Start() error
Start the instrumentation server.
type TracerTransport ¶
type TracerTransport struct {
Next http.RoundTripper
}
TracerTransport uses opentracing.GlobalTracer() to inject request trace span (if any) to the request headers, then it passes then handling to Next, or to http.DefaultTransport if Next is nil.
Click to show internal directories.
Click to hide internal directories.