Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Make stats.{Int,Float}64 never return errors #552

Merged

Conversation

semistrict
Copy link
Contributor

@semistrict semistrict commented Mar 9, 2018

I left the error in the signature for now since it's used externally. We should remove it in the next round of deprecation removals.

Updates: #544

Copy link
Contributor

@rakyll rakyll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments.

// an error if a measure with the same name already exists.
// Float64 creates a new measure of type Float64Measure.
// It never returns an error.
//TODO(ramonza): remove error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this in the block.


func (i *Int64Measure) subscribed() bool {
return i.measure.subscribed()
Measure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing this?

// error if a measure with the same name already exists.
// Int64 creates a new measure of type Int64Measure.
// It never returns an error.
//TODO(ramonza): remove error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this in the block.

@semistrict semistrict force-pushed the remove-measure-error branch 4 times, most recently from bd69b82 to 44dc4a2 Compare March 22, 2018 00:24
@semistrict
Copy link
Contributor Author

@rakyll removed the embedding, PTAL

@semistrict semistrict merged commit d1d14e4 into census-instrumentation:master Mar 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants