-
Notifications
You must be signed in to change notification settings - Fork 175
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
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.
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. |
Co-authored-by: Liudmila Molkova <[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.
@lmolkova Thanks you for the review. I am going to remove the source.type
with my next commits.
Discussion showed, that the CloudFoundry resource type is not a good candidate for an OpenTelemetry resource attribute. It can be added as a log attribute at a later point in time. Signed-off-by: Karsten Schnitter <[email protected]>
I removed the |
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, suggesting a few cosmetic changes
Co-authored-by: Liudmila Molkova <[email protected]>
Fix markdown template after removal of `source.type`. Signed-off-by: Karsten Schnitter <[email protected]>
Thanks everyone for all the help, work, and dedication you provided to include this change into the repository. |
Signed-off-by: Karsten Schnitter <[email protected]> Co-authored-by: Joao Grassi <[email protected]> Co-authored-by: Liudmila Molkova <[email protected]>
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