-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
histogram: clean up v2 code #5443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assumed this was ready for review since it was requested, but could you also mark it non-draft if that's the case?
Edit: NVM, I must have had a stale view.
|
||
# Export V3 versions. | ||
histogram_v3 = summary_v2.histogram_v3 | ||
|
||
# Export the default versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this line to say "Export V3 versions." now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -46,217 +38,6 @@ | |||
DEFAULT_BUCKET_COUNT = 30 | |||
|
|||
|
|||
def histogram_v2(name, data, step=None, buckets=None, description=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we're removing histogram_v2
, I think it'd make sense to rename histogram_v3
to just histogram
(what the v2 one was called prior to the migration). We can then remove the histogram = histogram_v3
line at the bottom.
When we do that, it might make sense to add a #
-style comment (not in the docstring, which is public, but just for our own reference) that mentions that this new histogram
is actually an updated v3 format, not the v2 format, as the filename would imply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed and added the comment.
* clean up histogram v2 code
* clean up histogram v2 code
Remove V2 code.
Ran internally: cl/413690112
#histogram #tpu