Skip to content

Refactor SDK MeterProvider#2401

Merged
ocelotl merged 4 commits intoopen-telemetry:mainfrom
srikanthccv:meter-provider-fix
Jan 26, 2022
Merged

Refactor SDK MeterProvider#2401
ocelotl merged 4 commits intoopen-telemetry:mainfrom
srikanthccv:meter-provider-fix

Conversation

@srikanthccv
Copy link
Copy Markdown
Member

@srikanthccv srikanthccv commented Jan 22, 2022

Description

Fixes race in shutdown and correctly sets the measurement consumer callback for the MetricReader

Fixes #2331
Fixes #2245
Fixes #2239

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox -e opentelemetry-sdk

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added

@srikanthccv srikanthccv added Skip Changelog PRs that do not require a CHANGELOG.md entry Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary metrics labels Jan 22, 2022
@srikanthccv srikanthccv marked this pull request as ready for review January 22, 2022 22:49
@srikanthccv srikanthccv requested a review from a team January 22, 2022 22:49
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py
@ocelotl ocelotl enabled auto-merge (squash) January 26, 2022 15:47
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py
@ocelotl ocelotl merged commit d112814 into open-telemetry:main Jan 26, 2022
@srikanthccv srikanthccv deleted the meter-provider-fix branch January 26, 2022 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary metrics Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update MetricReader.collect to call into the MeterProvider's measurement consumer Add a Once wrapper as well to shutdown Race condition in shutdown

5 participants