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

TestScope: don't prune from registry when closed #222

Merged
merged 2 commits into from
Jun 11, 2023

Conversation

mway
Copy link
Contributor

@mway mway commented Jun 10, 2023

In #221 we ensure that closed scopes aren't returned by the registry.

However, because of how test scopes work, we need to keep them around in order to ensure that snapshots report the expected value, as those metrics are not accumulated outside of the scopes that are being closed.

@mway mway requested review from prateek and brawndou June 10, 2023 16:39
@mway mway merged commit b9d43fa into v3 Jun 11, 2023
@mway mway deleted the mway/v3/no-prune-test-scopes branch June 11, 2023 00:19
brawndou pushed a commit to brawndou/tally that referenced this pull request Jan 24, 2024
brawndou pushed a commit to brawndou/tally that referenced this pull request Jan 24, 2024
brawndou added a commit that referenced this pull request Jan 25, 2024
* [bug] Ensure that parent scopes do not return closed subscopes (#221)

* TestScope: don't prune from registry when closed (#222)

* TestScope: don't prune from registry when closed (#222)

* lint fix

* move comment

* update go.mod and go.sum

* add license header

---------

Co-authored-by: Matt Way <mway@users.noreply.github.com>
brawndou added a commit to brawndou/tally that referenced this pull request Jan 26, 2024
* [bug] Ensure that parent scopes do not return closed subscopes (uber-go#221)

* TestScope: don't prune from registry when closed (uber-go#222)

* TestScope: don't prune from registry when closed (uber-go#222)

* lint fix

* move comment

* update go.mod and go.sum

* add license header

---------

Co-authored-by: Matt Way <mway@users.noreply.github.com>
brawndou added a commit that referenced this pull request Jan 26, 2024
* Revise internal cardinality metrics (#241)

* Backport #221 and #222 to master branch (#243)

* [bug] Ensure that parent scopes do not return closed subscopes (#221)

* TestScope: don't prune from registry when closed (#222)

---------

Co-authored-by: Matt Way <mway@users.noreply.github.com>

---------

Co-authored-by: Matt Way <mway@users.noreply.github.com>
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.

2 participants