-
Notifications
You must be signed in to change notification settings - Fork 651
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
Populate resource attributes as per semantic conventions #1053
Populate resource attributes as per semantic conventions #1053
Conversation
As per semantic conventions, set the `telemetry.sdk` parameters.
Was it established that we were not going the resource detector route? @aabmass |
That was my understanding based on the last comment here: #932 (comment) |
From the comment, it is not exactly clear to me what was the decision. I'm not sure "He suggested yesterday doing it right in the providers." refers to. Doing what in the providers? Instantiating Resources with defaults or instantiating a default resource provider somewhere else and populating the resources within the providers? |
Ah I see what you mean. I took it as instantiating the provider with the default resource which would contain the sdk attributes. |
Talked with James yesterday and he thinks this solution is fine. The semantic convention says:
And I think the only way to accomplish this is adding the detection in the providers, not requiring the user to do it. The only other special case that I know of (that must be done in the provider) is this:
These could be done by implementing
The other resources/semantic conventions that I know of are not worded as strongly (e.g. |
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.
LGTM
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.
LGTM. I think #1063 would be a good followup for this.
As per semantic conventions , this changes sets the
telemetry.sdk
resource attributes.Fixes #1033
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: