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

Clarify duplicate instrument registration scope to be a MeterProvider #3538

Merged
merged 4 commits into from
Jun 27, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jun 5, 2023

Currently the specification seems to implicitly imply a duplicate instrument registration occurs across identical Meters from the same MeterProvider. This change makes that fact explicit.

The alternative, having duplicate instrument registrations occur across all MeterProvides, seems unlikely the original intent. That would require global tracking beyond the scope of a MeterProvider, and the MeterProvider is stated to be the main source of configuration.

@MrAlias MrAlias added the editorial Editorial changes only (typos, changelog, ...). No content-related changes of any kind. label Jun 5, 2023
@MrAlias MrAlias requested review from a team June 5, 2023 17:13
Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

I would think that if the meters aren't from the same MeterProvider, they're not identical. But upon further inspection, the way we define "identical" doesn't include the meterprovider which produced it. Therefore, I think this change is a good one as it reduced ambiguity for a corner case.

@github-actions
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 17, 2023
@github-actions
Copy link

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Jun 24, 2023
@MrAlias MrAlias reopened this Jun 26, 2023
@MrAlias MrAlias removed the Stale label Jun 26, 2023
@jmacd jmacd merged commit 129f28d into open-telemetry:main Jun 27, 2023
@MrAlias MrAlias deleted the scope-dupe-inst-mp branch June 27, 2023 19:16
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
…open-telemetry#3538)

Currently the specification seems to implicitly imply a duplicate
instrument registration occurs across identical Meters from the same
MeterProvider. This change makes that fact explicit.

The alternative, having duplicate instrument registrations occur across
all MeterProvides, seems unlikely the original intent. That would
require global tracking beyond the scope of a MeterProvider, and the
MeterProvider is stated to be the main source of configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Editorial changes only (typos, changelog, ...). No content-related changes of any kind.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants