Skip to content
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

resourcedetectionprocessor: populate SchemaURL #4608

Conversation

tigrannajaryan
Copy link
Member

This changes ensures that all resources modified by resourcedetectionprocessor
set the SchemaURL if it is not already set. The assumption is that the code that
detects the resources uses semantic conventions defined in package "conventions".

This changes ensures that all resources modified by resourcedetectionprocessor
set the SchemaURL if it is not already set. The assumption is that the code that
detects the resources uses semantic conventions defined in package "conventions".
@tigrannajaryan tigrannajaryan marked this pull request as ready for review August 12, 2021 14:36
if currentSchemaURL == newSchemaURL {
return currentSchemaURL
}
// TODO: handle the case when the schema URLs are different by performing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we open an issue to track this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed an issue #4620

@tigrannajaryan tigrannajaryan merged commit f3ff3e9 into open-telemetry:main Aug 13, 2021
@tigrannajaryan tigrannajaryan deleted the feature/tigran/resourcedetectionprocessor-schema-url branch August 13, 2021 08:01
mstumpfx pushed a commit to mstumpfx/opentelemetry-collector-contrib that referenced this pull request Aug 31, 2021
This changes ensures that all resources modified by resourcedetectionprocessor
set the SchemaURL if it is not already set. The assumption is that the code that
detects the resources uses semantic conventions defined in package "conventions".
hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this pull request Jun 2, 2022
…open-telemetry#4608)

* Deprecate `config.Config` and `config.Service`, use `service.Config*`

Fixes open-telemetry/opentelemetry-collector#4605

Followup PRs:
* Move service/internal/configunmarshaler as private struct into service/ to avoid circular dependency (no public API change)
* Change service/internal/builders to private structs in service/ or don't pass config, instead only pass the components and pipeline from the config.

While doing this, I realize that the "service" section in our config is a bit useless, we can think of promoting everything under "service::" one level up.

Signed-off-by: Bogdan Drutu <[email protected]>

* Update moved_service.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants