From ebbc97d6e96ee5c33433ea55afb193015182dd7a Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 25 Feb 2021 10:39:46 -0800 Subject: [PATCH] Remove consumerdata.TraceData Updates https://github.com/open-telemetry/opentelemetry-collector/issues/2482 Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 4 ++++ consumer/consumerdata/consumerdata.go | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5910d850cef..cfe1ce4e19f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 🛑 Breaking changes 🛑 + +- Remove `consumerdata.TraceData` (#2551) + ## v0.21.0 Beta ## 🛑 Breaking changes 🛑 diff --git a/consumer/consumerdata/consumerdata.go b/consumer/consumerdata/consumerdata.go index 985f8909ea8..56f86b2c5ad 100644 --- a/consumer/consumerdata/consumerdata.go +++ b/consumer/consumerdata/consumerdata.go @@ -19,7 +19,6 @@ import ( commonpb "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1" metricspb "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1" resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" ) // MetricsData is a struct that groups proto metrics with a unique node and a resource. @@ -29,12 +28,3 @@ type MetricsData struct { Resource *resourcepb.Resource Metrics []*metricspb.Metric } - -// TraceData is a struct that groups proto spans with a unique node and a resource. -// Deprecated: use pdata.Traces instead. -type TraceData struct { - Node *commonpb.Node - Resource *resourcepb.Resource - Spans []*tracepb.Span - SourceFormat string -}