-
Notifications
You must be signed in to change notification settings - Fork 45
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
Small fixups for resource detector code and tests #345
Conversation
d5cd63f
to
ed8ed26
Compare
24f4638
to
7340837
Compare
- Updated the tests to not leak into os.environ - Fix code to expect numeric value for `instance/id` metadata - Mark `instance/attributes` as not-total (keys are not all required)
7340837
to
f41b97a
Compare
...emetry-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_gce.py
Show resolved
Hide resolved
is instance/id usually an int? I thought it was a UID on cloud run... |
Hmm that's a good point. On GCE it's numeric. I can type annotate the |
...y-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_metadata.py
Show resolved
Hide resolved
...y-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_metadata.py
Show resolved
Hide resolved
The "ops-python-e2e-cloud-functions-gen2 (opentelemetry-ops-e2e)" CI failure is because I enabled the checked but implementation is in a draft PR still. Merging |
instance/id
metadatainstance.attributes
as not-total (keys are not all required)