Fix #3695: add attributes to get_meter fn and InstrumentationScope#4015
Fix #3695: add attributes to get_meter fn and InstrumentationScope#4015lzchen merged 18 commits intoopen-telemetry:mainfrom
Conversation
xrmx
left a comment
There was a problem hiding this comment.
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>
emdneto
left a comment
There was a problem hiding this comment.
@vivek378521 could you please fix lint errors?
There was an import statement linting issue, I fixed that, ran |
|
To fix |
|
and here: ? |
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: