Upgrading go.opencensus.io 0.6 to 0.7
Breakingv0.6.0 → v0.7.0Breaking4Deprecated1New3Changed5Fixed7Other1
BreakingUpgrade verdict
4 breaking changes.
In plain terms
- Renames view.Subscribe to view.Register for language consistency.
- Removes error from stats.{Float,Int}64Measure signatures.
- Removes the Mean aggregation.
- Makes stats.{Int,Float}64 never return errors.
Must act Top 4 of 5 that need code or config changes
What you must change
Breaking4
Renames view.Subscribe to view.Register for language consistency.
view.Subscribeview.RegisterRemoves error from stats.{Float,Int}64Measure signatures.
stats.Float64Measurestats.Int64MeasureRemoves the Mean aggregation.
MeanMakes stats.{Int,Float}64 never return errors.
stats.Int64stats.Float64Deprecations to plan for
Deprecated1
Reverts and keeps deprecated *View.*ubscribe methods.
*View.*ubscribeAPI changes
Generated by DepDelta from published Go source. Not mixed with prose notes.
- removed:
func FindMeasure(string) Measure - changed:
func Float64(string, string, string) (*Float64Measure, error) → func Float64(string, string, string) *Float64Measure - changed:
func Int64(string, string, string) (*Int64Measure, error) → func Int64(string, string, string) *Int64Measure - added:
method Float64Measure.Description() string - added:
method Float64Measure.Name() string - added:
method Float64Measure.Unit() string - added:
method Int64Measure.Description() string - added:
method Int64Measure.Name() string - added:
method Int64Measure.Unit() string
- removed:
const AggTypeMean: AggType - removed:
field MeanData.Count: int64 - removed:
field MeanData.Mean: float64 - removed:
func Mean() *Aggregation - removed:
func New(string, string, []tag.Key, stats.Measure, *Aggregation) (*View, error) - removed:
func Subscribe(...*View) error - removed:
func Unsubscribe(...*View) - removed:
method MeanData.Sum() float64 - removed:
method View.Subscribe() error - removed:
method View.Unsubscribe() error - removed:
type MeanData: struct - changed:
func Register(*View) error → func Register(...*View) error - changed:
func Unregister(*View) error → func Unregister(...*View) - changed:
type CountData: int64 → type CountData: struct - changed:
type SumData: float64 → type SumData: struct - added:
const AggTypeLastValue: AggType - added:
field CountData.Value: int64 - added:
field LastValueData.Value: float64 - added:
field SumData.Value: float64 - added:
func LastValue() *Aggregation - added:
type LastValueData: struct
- removed:
func SetDefaultSampler(Sampler) - added:
field Config.DefaultSampler: Sampler - added:
func ApplyConfig(Config) - added:
type Config: struct