-
Notifications
You must be signed in to change notification settings - Fork 161
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 CloudFoundry Resource Attributes #624
base: main
Are you sure you want to change the base?
Add CloudFoundry Resource Attributes #624
Conversation
|
This PR is meant as a proposal for discussion around #622. I am unsure about when and how to fulfil the merge requirements checklist. A changelog entry seems to be necessary. I do not know, how to verify the contribution guidelines. Locally a |
Yes, please add an entry to the CHANGELOG.md file. You can see an example here: #615
I approved the CI run and some checks are failing. Not sure how the |
@joaopgrassi I will take care of the issues and the changelog. Is there anything else? |
51da818
to
47cea68
Compare
@joaopgrassi I noticed some unmerged changes on my side. Hopefully, this resolves the checks. |
I only looked at a high level yesterday, and I'm not experienced with CloudFoundry, so I will need to read a bit to understand the context so I can review it. I will try to do it in the upcoming days. |
2ee4884
to
9fb2ddc
Compare
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 think we should review the naming of some of the attributes.
The OTEL colleagues should weigh in here, as they probably know best about the usual naming conventions.
Hi @FWinkler79, There is one more open question to clear: In Cloud Foundry the |
Using the CloudFoundry documentation, provides a set of resource attribute describing CloudFoundry workloads. Both applications as well as system components are addressed. Helpful resources: * https://github.com/cloudfoundry/loggregator-api#v2-envelope * https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html#VCAP-APPLICATION * https://bosh.io/docs/jobs/#properties-spec * https://docs.cloudfoundry.org/devguide/deploy-apps/streaming-logs.html Signed-off-by: Karsten Schnitter <[email protected]>
Signed-off-by: Karsten Schnitter <[email protected]>
* source_id -> source.id * instance_id -> instance.id * source_type -> source.type Add clarification on source_type: * required if log message * comment on obtaining the value Signed-off-by: Karsten Schnitter <[email protected]>
14d001d
to
f4efa59
Compare
I provided a revised version with the fields renamed as suggested by @FWinkler79. Furthermore, I added some clarification on the |
Thanks for your reply and changes.
I am not 100% sure, but I recently updated our internal version of the OTEL SemConv to the latest version and noticed that the attributes for different signal types are now (rather) cleanly separated into log-attributes, trace-attributes, etc. For example, in the In a similar way, I think you could define log-specific attributes. |
Thanks for the prompt change @KarstenSchnitter and for the suggestions and digging into the definitions @FWinkler79. @joaopgrassi Is there something else to be done apart from the suggestions about the |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Hi @KarstenSchnitter ! We changed how the CHANGELOG.md is managed. Please take a look at https://github.com/open-telemetry/semantic-conventions/blob/main/CONTRIBUTING.md#adding-a-changelog-entry to see what needs to be done. Sorry for the disruption. |
This reverts commit 7a9b0b4.
@KarstenSchnitter I think you still wanted to add something here, right? |
I think, I have addressed all open questions, but need some feedback from @lmolkova before marking them as resolved. If the current state is acceptable, there is nothing to be changed from my side. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@joaopgrassi and @lmolkova is there a way we can make progress here? The PR is approved by subject matter experts from the Cloud Foundry community. |
I will try and take a look at it again in the upcoming days. |
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.
Please take a look at the checks failing. Also update the issue templates by running make generate-gh-issue-templates
and make fix
to update any left over tables.
One general ask I have to the group is: Resource attributes must be immutable - that means a resource is created during the app start up with say CloudFoundry attributes. Once the app is up and running, these attributes cannot change. I wanted to make this clear so you as the experts do the exercise in seeing if there's any such attributes introduced here that are affected by this constraint.
Another fact is that there's effort currently in a new group for Resource and Entities. The reason I'm bringing it up is since this PR is adding resource attributes I'm not sure if we want to block it. Maybe we allow it to be part of the registry as a first step.
@jsuereth could you please share your thoughts here?
result of running `make generate-gh-issue-templates` Signed-off-by: Karsten Schnitter <[email protected]>
Adjust model registry for CloudFoundry to not use prefixes but fully qualified ids. Signed-off-by: Karsten Schnitter <[email protected]>
Avoids misspelling of CloudFoundry during content generation. Signed-off-by: Karsten Schnitter <[email protected]>
Regenerated templates for proper order. Signed-off-by: Karsten Schnitter <[email protected]>
Removes prefixes from CloudFoundry groups. Signed-off-by: Karsten Schnitter <[email protected]>
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 took care of the prefixes and hopefully all validation errors. I can confirm, that all resource attributes are immutable. Once an application instance is started, all its processes will have uniquely and immutably defined resource attributes of the proposed set.
Moves resource and registry yaml to cloudfoundry directory. Add attribute names. Signed-off-by: Karsten Schnitter <[email protected]>
result of `make generate-gh-issue-templates` Signed-off-by: Karsten Schnitter <[email protected]>
There is an issue on the main branch with the Github link to the registry, which has a 404 error: This fails the tests, but is not caused by this PR. |
The latest merge should fix the issue with the main branch. |
Proposal for #622:
Using the CloudFoundry documentation, provides a set of resource attribute describing CloudFoundry workloads. Both applications as well as system components are addressed. Helpful resources:
Changes
Introduces a resource attributes convention for CloudFoundry. Defines resource attributes to identify CloudFoundry applications and system components, enabling and improving OpenTelemetry support. The proposed attributes are selected to provide an as small as possible payload. The changes follow the proposal in #622.
Merge requirement checklist