Skip to content

Commit

Permalink
Remove deprecated pdata funcs/structs from v0.50.0
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed May 11, 2022
1 parent 4878d42 commit 8260ab8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 30 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### 🛑 Breaking changes 🛑

- Remove deprecated pdata funcs/structs from v0.50.0 (#5131)

### 🚩 Deprecations 🚩

### 💡 Enhancements 💡
Expand Down
5 changes: 0 additions & 5 deletions pdata/plog/plogotlp/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
15 changes: 0 additions & 15 deletions pdata/pmetric/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions pdata/pmetric/pmetricotlp/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
5 changes: 0 additions & 5 deletions pdata/ptrace/ptraceotlp/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8260ab8

Please sign in to comment.