1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00

exporter/metric/dogstatsd: fix incorrect code format comments for InstallNewPipeline (#484)

Co-authored-by: Rahul Patel <rghetia@yahoo.com>
This commit is contained in:
Thanabodee Charoenpiriyakij 2020-02-19 12:43:03 +07:00 committed by GitHub
parent f9a54847cc
commit bd74f31769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,12 +67,13 @@ func NewRawExporter(config Config) (*Exporter, error) {
// InstallNewPipeline instantiates a NewExportPipeline and registers it globally. // InstallNewPipeline instantiates a NewExportPipeline and registers it globally.
// Typically called as: // Typically called as:
// pipeline, err := dogstatsd.InstallNewPipeline(dogstatsd.Config{...}) //
// if err != nil { // pipeline, err := dogstatsd.InstallNewPipeline(dogstatsd.Config{...})
// ... // if err != nil {
// } // ...
// defer pipeline.Stop() // }
// ... Done // defer pipeline.Stop()
// ... Done
func InstallNewPipeline(config Config) (*push.Controller, error) { func InstallNewPipeline(config Config) (*push.Controller, error) {
controller, err := NewExportPipeline(config) controller, err := NewExportPipeline(config)
if err != nil { if err != nil {