-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add schema_url attribute to Resource #17
Conversation
…elemetry-python-contrib into add-schema_url-attribute
CHANGELOG.md
Outdated
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
|
|||
- Fixed cases where description was used with non-error status code when creating Status objects. | |||
([#504](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/504)) | |||
### Changed | |||
- Added optional `schema_url` field to `Resource` class | |||
([opentelemetry-python #1862](https://github.com/open-telemetry/opentelemetry-python/issues/1862)) |
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.
Copied from my comment in the core PR
By the way, this should be the number and link to the PR you submit on the upstream repo. Since you usually wouldn't have submitted it yet, you could just put TBD here until you submit to upstream. Or, you could also use the one you accidentally opened/closed and re-open that PR 😄
A change in the OTel specification requires a new
schema_url
field in theResource
class. This change modifies tests which used the old constructor signature.Type of change
How Has This Been Tested?
All
tox
tests were ran on Python 3.9. One test was modified to account for the change in constructor signature.Does This PR Require a Contrib Repo Change?
The OTel specification has changed which prompted this PR to update the method interfaces of
opentelemetry-api/
oropentelemetry-sdk/
Yes. - Link to PR: Add schema_url attribute to Resource opentelemetry-python#23 NOTE: The GitHub workflow tests for this PR depend on the linked PR.
No.
Checklist: