1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-08-10 22:31:50 +02:00

exporter/metric/prometheus: fix incorrect code format comments for InstallNewPipeline (#482)

Co-authored-by: Rahul Patel <rghetia@yahoo.com>
This commit is contained in:
Thanabodee Charoenpiriyakij
2020-02-19 11:00:57 +07:00
committed by GitHub
parent 84d0a2afea
commit f9a54847cc

View File

@@ -118,13 +118,15 @@ func NewRawExporter(config Config) (*Exporter, error) {
// InstallNewPipeline instantiates a NewExportPipeline and registers it globally.
// Typically called as:
// pipeline, hf, err := prometheus.InstallNewPipeline(prometheus.Config{...})
// if err != nil {
// ...
// }
// http.HandleFunc("/metrics", hf)
// defer pipeline.Stop()
// ... Done
//
// pipeline, hf, err := prometheus.InstallNewPipeline(prometheus.Config{...})
//
// if err != nil {
// ...
// }
// http.HandleFunc("/metrics", hf)
// defer pipeline.Stop()
// ... Done
func InstallNewPipeline(config Config) (*push.Controller, http.HandlerFunc, error) {
controller, hf, err := NewExportPipeline(config)
if err != nil {