-
Notifications
You must be signed in to change notification settings - Fork 650
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
Renaming batcher to processor #1203
Conversation
self.assertEqual(len(processor._batch_map), 1) | ||
self.assertIsNotNone(processor._batch_map.get(batch_key)) | ||
self.assertEqual(processor._batch_map.get(batch_key).current, 0) | ||
self.assertEqual(processor._batch_map.get(batch_key).checkpoint, 1.0) | ||
|
||
def test_batcher_process_not_exists(self): |
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.
Nit: Remove "batcher" from test names?
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.
removed, thanks for the catch
|
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.
Just a few instances of batcher
remain, @codeboten, if you think they are ok, I'll approve as it is. 👍
@@ -116,7 +116,7 @@ def test_collect_disabled_metric(self): | |||
def test_collect_observers(self): | |||
meter = metrics.MeterProvider().get_meter(__name__) | |||
batcher_mock = mock.Mock() | |||
meter.batcher = batcher_mock | |||
meter.processor = batcher_mock |
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.
Rename batcher_mock
to processor_mock
?
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
Fixed them just as you were reviewing. |
Perfect, approving 👍 |
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.
👍
Description
Renaming the Batcher to Processor as per metrics spec.
Fixes #1202
Type of change
Please delete options that are not relevant.
Checklist: