-
Notifications
You must be signed in to change notification settings - Fork 647
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
Duplicate instrument handling in API #2142
Comments
I am a bit confused:
|
From specs:
So should probably be done as part of error handling. |
Should this issue be closed @lzchen in favor of implementing this later with general error handling? |
@ocelotl |
* Add check for duplicate instrument names Fixes #2142 * Add repeated instrument names for SDK as well * Update opentelemetry-api/src/opentelemetry/_metrics/__init__.py Co-authored-by: Srikanth Chekuri <[email protected]> * Add instrument names lock * Replace raised exception for a warning * Added some fiexes * Add double check * Add type annotations * Update opentelemetry-api/src/opentelemetry/_metrics/__init__.py Co-authored-by: Srikanth Chekuri <[email protected]> * Move check invocation to SDK * Fix lint * Separate instrument checking from warning logging * Use consistent class * Fix typo in example (#2597) * Fix docs Co-authored-by: Srikanth Chekuri <[email protected]> Co-authored-by: Alex Boten <[email protected]>
The text was updated successfully, but these errors were encountered: