Skip to content

Commit

Permalink
Delete deprecated metrics immutable flags APIs (#6097)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Sep 16, 2022
1 parent 4765e46 commit bdc3e22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 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 🛑

- Delete deprecated `pmetric.NewMetricDataPointFlagsImmutable` func. (#6097)
- Delete deprecated `pmetric.*DataPoint.[Set]FlagsImmutable()` funcs. (#6097)
- Delete deprecated `config.Unmarshalable` interface. (#6084)
- Delete deprecated `p[metric|log|trace].MarshalerSizer` interfaces (#6083)
- Delete deprecated `pcommon.Map.Insert*` funcs. (#6088)
Expand Down
3 changes: 0 additions & 3 deletions pdata/pmetric/metric_data_point_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const noRecordValueMask = uint32(1)

var DefaultMetricDataPointFlags = MetricDataPointFlags(0)

// Deprecated: [v0.60.0] Use MetricDataPointFlags.
type MetricDataPointFlagsImmutable = MetricDataPointFlags

// MetricDataPointFlags defines how a metric aggregator reports aggregated values.
// It describes how those values relate to the time interval over which they are aggregated.
//
Expand Down
40 changes: 0 additions & 40 deletions pdata/pmetric/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,46 +149,6 @@ func (at MetricAggregationTemporality) String() string {
return otlpmetrics.AggregationTemporality(at).String()
}

// Deprecated: [v0.60.0] use Flags.
func (ms NumberDataPoint) FlagsImmutable() MetricDataPointFlags {
return ms.Flags()
}

// Deprecated: [v0.60.0] use SetFlags.
func (ms NumberDataPoint) SetFlagsImmutable(v MetricDataPointFlags) {
ms.SetFlags(v)
}

// Deprecated: [v0.60.0] use Flags.
func (ms HistogramDataPoint) FlagsImmutable() MetricDataPointFlags {
return ms.Flags()
}

// Deprecated: [v0.60.0] use SetFlags.
func (ms HistogramDataPoint) SetFlagsImmutable(v MetricDataPointFlags) {
ms.SetFlags(v)
}

// Deprecated: [v0.60.0] use Flags.
func (ms ExponentialHistogramDataPoint) FlagsImmutable() MetricDataPointFlags {
return ms.Flags()
}

// Deprecated: [v0.60.0] use SetFlags.
func (ms ExponentialHistogramDataPoint) SetFlagsImmutable(v MetricDataPointFlags) {
ms.SetFlags(v)
}

// Deprecated: [v0.60.0] use Flags.
func (ms SummaryDataPoint) FlagsImmutable() MetricDataPointFlags {
return ms.Flags()
}

// Deprecated: [v0.60.0] use SetFlags.
func (ms SummaryDataPoint) SetFlagsImmutable(v MetricDataPointFlags) {
ms.SetFlags(v)
}

// NumberDataPointValueType specifies the type of NumberDataPoint value.
type NumberDataPointValueType int32

Expand Down

0 comments on commit bdc3e22

Please sign in to comment.