Skip to content
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

Merged
merged 6 commits into from
Oct 6, 2020

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Oct 5, 2020

Description

Renaming the Batcher to Processor as per metrics spec.

Fixes #1202

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been updated
  • Documentation has been updated

@codeboten codeboten requested review from lzchen and a team October 5, 2020 21:53
@codeboten codeboten mentioned this pull request Oct 6, 2020
8 tasks
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):
Copy link
Contributor

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?

Copy link
Contributor Author

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

@ocelotl
Copy link
Contributor

ocelotl commented Oct 6, 2020

batchers mentioned here

Copy link
Contributor

@ocelotl ocelotl left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codeboten
Copy link
Contributor Author

Just a few instances of batcher remain, @codeboten, if you think they are ok, I'll approve as it is. 👍

Fixed them just as you were reviewing.

@codeboten codeboten requested a review from ocelotl October 6, 2020 15:15
@ocelotl
Copy link
Contributor

ocelotl commented Oct 6, 2020

Just a few instances of batcher remain, @codeboten, if you think they are ok, I'll approve as it is. +1

Fixed them just as you were reviewing.

Perfect, approving 👍

Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

👍

@codeboten codeboten merged commit 8ccc5cf into open-telemetry:master Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics SDK: Rename Batcher to Processor
3 participants