tally
tally copied to clipboard
Adding NullStatsReporter and TestScope
- Created
NullStatsReporterto report no metrics when it is used byScopeBuilder. - Created
TestScopeto snapshot metrics for tests.
How would TestScope be consumed? ScopeBuilder returns a Scope, which happens to be ScopeImpl at the moment. Is the plan for consumers to cast that to TestScope where needed? Should we have a separate ScopeBuilder that returns a TestScope explicitly? (maybe inheriting from RootScopeBuilder)