1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

Merge sdk/export/trace into sdk/trace (#1778)

* Merge sdk/export/trace into sdk/trace

* Update package move

* Add changes to changelog

* Add PR number to changelog
This commit is contained in:
Tyler Yahn
2021-04-07 15:03:43 +00:00
committed by GitHub
parent c61e654cd4
commit 2817c09174
32 changed files with 165 additions and 187 deletions
+3 -4
View File
@@ -27,13 +27,12 @@ import (
"go.opentelemetry.io/otel/trace"
export "go.opentelemetry.io/otel/sdk/export/trace"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
)
type testBatchExporter struct {
mu sync.Mutex
spans []*export.SpanSnapshot
spans []*sdktrace.SpanSnapshot
sizes []int
batchCount int
shutdownCount int
@@ -41,7 +40,7 @@ type testBatchExporter struct {
err error
}
func (t *testBatchExporter) ExportSpans(ctx context.Context, ss []*export.SpanSnapshot) error {
func (t *testBatchExporter) ExportSpans(ctx context.Context, ss []*sdktrace.SpanSnapshot) error {
t.mu.Lock()
defer t.mu.Unlock()
@@ -77,7 +76,7 @@ func (t *testBatchExporter) getBatchCount() int {
return t.batchCount
}
var _ export.SpanExporter = (*testBatchExporter)(nil)
var _ sdktrace.SpanExporter = (*testBatchExporter)(nil)
func TestNewBatchSpanProcessorWithNilExporter(t *testing.T) {
tp := basicTracerProvider(t)