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

Specify how to handle instrument name conflicts #3606

Closed
wants to merge 6 commits into from

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 17, 2023

  • Refactor the "Duplicate instrument registration" section
  • Clarify how to handle when instrument names differ by only their casing:
    1. Return distinct instruments, each with the requested casing of the user
    2. Log a warning
  • Fix some spelling errors within the section.

Resolves #3539

cc @jack-berg @ocelotl @carlosalberto

@MrAlias MrAlias added area:sdk Related to the SDK spec:metrics Related to the specification/metrics directory labels Jul 17, 2023
@MrAlias MrAlias requested review from a team as code owners July 17, 2023 21:16
@MrAlias MrAlias requested a review from a team July 17, 2023 21:16
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Jul 18, 2023
Resolve open-telemetry#3835

Detect duplicate instrument registrations for instruments that have the
same case-insensitive names. Continue to return the instruments with
different names, but log a warning. This is the solution proposed in
open-telemetry/opentelemetry-specification#3606.
specification/metrics/sdk.md Show resolved Hide resolved
specification/metrics/sdk.md Outdated Show resolved Hide resolved
specification/metrics/sdk.md Show resolved Hide resolved
specification/metrics/sdk.md Outdated Show resolved Hide resolved
MrAlias added a commit to open-telemetry/opentelemetry-go that referenced this pull request Jul 19, 2023
* Detect dup inst for case-insensitive names

Resolve #3835

Detect duplicate instrument registrations for instruments that have the
same case-insensitive names. Continue to return the instruments with
different names, but log a warning. This is the solution proposed in
open-telemetry/opentelemetry-specification#3606.

* Add changes to changelog

* Reset global logger after test
@jack-berg
Copy link
Member

I'm opposed to this PR for the reasons described here.

@MrAlias
Copy link
Contributor Author

MrAlias commented Jul 26, 2023

Plan to re-open with the alternate proposal of using the first-seen.

@MrAlias MrAlias closed this Jul 26, 2023
@MrAlias
Copy link
Contributor Author

MrAlias commented Jul 26, 2023

Plan to re-open with the alternate proposal of using the first-seen.

#3626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:sdk Related to the SDK spec:metrics Related to the specification/metrics directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to handle case-insensitive instrument name collisions in metric SDK
4 participants