package main
import (
"log"
"github.com/Datadog/opencensus-go-exporter-datadog"
"go.opencensus.io/stats/view"
)
func main() {
dd, err := datadog.NewExporter(datadog.Options{})
if err != nil {
log.Fatalf("Failed to create the Datadog exporter: %v", err)
}
// It is imperative to invoke flush before your main function exits
defer dd.Stop()
// Register it as a metrics exporter
view.RegisterExporter(dd)
}
Data"d"og is not correct, the correct path is Data"D"og.
I appreciate easy-to-understand documents.
Go language differentiates the case in package PATH. the correct
opencensus-go-exporter-datadog
repository PATH on GitHub is below.https://github.com/DataDog/opencensus-go-exporter-datadog
But, it import path in sample codes is below:
https://opencensus.io/exporters/supported-exporters/go/datadog/
Data"d"og
is not correct, the correct path isData"D"og
.using Go1.13, go.mod(dependency file) is below:
I think it should be unified to the correct import path.
Regards,