Skip to content

Commit

Permalink
exporter/metric/prometheus: fix incorrect code format comments for In…
Browse files Browse the repository at this point in the history
…stallNewPipeline (open-telemetry#482)

Co-authored-by: Rahul Patel <[email protected]>
  • Loading branch information
wingyplus and rghetia authored Feb 19, 2020
1 parent 84d0a2a commit f9a5484
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions exporter/metric/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f9a5484

Please sign in to comment.