-
Notifications
You must be signed in to change notification settings - Fork 635
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
Fix #3695: add attributes to get_meter fn and InstrumentationScope #4015
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably add or update tests to check that __eq__
and __lt__
work with attributes
@vivek378521 thanks for the PR and the quick turnaround! |
opentelemetry-sdk/src/opentelemetry/sdk/util/instrumentation.py
Outdated
Show resolved
Hide resolved
Are we missing a change to the actual api ? |
@lzchen I have added the field to the api (the place you pointed to in the code) |
opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/util/instrumentation.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py
Outdated
Show resolved
Hide resolved
opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/util/instrumentation.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vivek378521 could you please fix lint errors?
There was an import statement linting issue, I fixed that, ran |
To fix |
and here: opentelemetry-python/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py Line 160 in e44bffe
|
yes |
So just these changes, right?
|
yay, all checks passed! 🥳 |
Description
Fixes #3695 (issue)
Part of #2940
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Added unit tests for the get_meter fn call, also included the attributes where instrumentationScope is being called
Does This PR Require a Contrib Repo Change?
Checklist: