1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-17 01:12:45 +02:00

Refactor exporter creation functions (#1985)

* Remove InstallNewPipeline/NewExportPipeline funcs

* Rename stdout NewExporter to New

* Rename prometheus NewExporter func to New

* Rename Jaeger exporter NewRawExporter func to New

* Rename zipkin exporter NewRawExporter func to New

* Rename otlp exporter creation funcs

* Rename processortest exporter creation funcs

* Update PR number in changelog

* Fix spelling error

* Rename remaining NewUnstartedExporter in otlp

* Remove unused testing file
This commit is contained in:
Tyler Yahn
2021-06-10 16:22:47 +00:00
committed by GitHub
parent 87cc1e1fea
commit 4883cb119d
48 changed files with 237 additions and 755 deletions

View File

@ -261,7 +261,7 @@ type blockingExporter struct {
func newBlockingExporter() *blockingExporter {
return &blockingExporter{
exporter: processortest.NewExporter(
exporter: processortest.New(
export.CumulativeExportKindSelector(),
attribute.DefaultEncoder(),
),
@ -342,7 +342,7 @@ func TestExportTimeout(t *testing.T) {
}
func TestCollectAfterStopThenStartAgain(t *testing.T) {
exp := processortest.NewExporter(
exp := processortest.New(
export.CumulativeExportKindSelector(),
attribute.DefaultEncoder(),
)