Skip to content

Renaming batcher to processor#1203

Merged
codeboten merged 6 commits intoopen-telemetry:masterfrom
codeboten:rename-batcher
Oct 6, 2020
Merged

Renaming batcher to processor#1203
codeboten merged 6 commits intoopen-telemetry:masterfrom
codeboten:rename-batcher

Conversation

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

ocelotl commented Oct 6, 2020

batchers mentioned here

Copy link
Copy Markdown
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. 👍

meter = metrics.MeterProvider().get_meter(__name__)
batcher_mock = mock.Mock()
meter.batcher = batcher_mock
meter.processor = batcher_mock
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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