mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-16 02:47:20 +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:
parent
84d0a2afea
commit
f9a54847cc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user