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:
parent
f9a54847cc
commit
bd74f31769
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user