From 8260ab8eeaa383880782d48292e549cd55f0bf95 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 13:32:46 -0700 Subject: [PATCH] Remove deprecated pdata funcs/structs from v0.50.0 Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 2 ++ pdata/plog/plogotlp/logs.go | 5 ----- pdata/pmetric/alias.go | 15 --------------- pdata/pmetric/pmetricotlp/metrics.go | 5 ----- pdata/ptrace/ptraceotlp/traces.go | 5 ----- 5 files changed, 2 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d21c93c71..e27c5eca21f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### 🛑 Breaking changes 🛑 +- Remove deprecated pdata funcs/structs from v0.50.0 (#5131) + ### 🚩 Deprecations 🚩 ### 💡 Enhancements 💡 diff --git a/pdata/plog/plogotlp/logs.go b/pdata/plog/plogotlp/logs.go index 31ac5024c45..822370c2273 100644 --- a/pdata/plog/plogotlp/logs.go +++ b/pdata/plog/plogotlp/logs.go @@ -114,11 +114,6 @@ func (lr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromLogs instead. -func (lr Request) SetLogs(ld plog.Logs) { - *lr.orig = *internal.LogsToOtlp(ld) -} - func (lr Request) Logs() plog.Logs { return internal.LogsFromOtlp(lr.orig) } diff --git a/pdata/pmetric/alias.go b/pdata/pmetric/alias.go index 527cee57d5f..340db69a0f1 100644 --- a/pdata/pmetric/alias.go +++ b/pdata/pmetric/alias.go @@ -73,21 +73,6 @@ const ( MetricDataPointFlagNoRecordedValue = internal.MetricDataPointFlagNoRecordedValue ) -// MetricValueType specifies the type of NumberDataPoint. -// Deprecated: [v0.50.0] Use NumberDataPointValueType or ExemplarValueType instead. -type MetricValueType = internal.NumberDataPointValueType - -const ( - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeNone instead. - MetricValueTypeNone = internal.NumberDataPointValueTypeNone - - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeInt. - MetricValueTypeInt = internal.NumberDataPointValueTypeInt - - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeDouble instead. - MetricValueTypeDouble = internal.NumberDataPointValueTypeDouble -) - // NumberDataPointValueType specifies the type of NumberDataPoint value. type NumberDataPointValueType = internal.NumberDataPointValueType diff --git a/pdata/pmetric/pmetricotlp/metrics.go b/pdata/pmetric/pmetricotlp/metrics.go index 5f82610fd04..7499e6e185c 100644 --- a/pdata/pmetric/pmetricotlp/metrics.go +++ b/pdata/pmetric/pmetricotlp/metrics.go @@ -110,11 +110,6 @@ func (mr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromMetrics instead. -func (mr Request) SetMetrics(ld pmetric.Metrics) { - *mr.orig = *internal.MetricsToOtlp(ld) -} - func (mr Request) Metrics() pmetric.Metrics { return internal.MetricsFromOtlp(mr.orig) } diff --git a/pdata/ptrace/ptraceotlp/traces.go b/pdata/ptrace/ptraceotlp/traces.go index 1bdfa53a56d..16884555d01 100644 --- a/pdata/ptrace/ptraceotlp/traces.go +++ b/pdata/ptrace/ptraceotlp/traces.go @@ -114,11 +114,6 @@ func (tr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromTraces instead. -func (tr Request) SetTraces(td ptrace.Traces) { - *tr.orig = *internal.TracesToOtlp(td) -} - func (tr Request) Traces() ptrace.Traces { return internal.TracesFromOtlp(tr.orig) }