-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Deprecate component.Host.GetExporters #7390
Deprecate component.Host.GetExporters #7390
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #7390 +/- ##
=======================================
Coverage 91.02% 91.02%
=======================================
Files 295 295
Lines 14535 14535
=======================================
Hits 13231 13231
Misses 1042 1042
Partials 262 262
☔ View full report in Codecov by Sentry. |
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, should we also deprecate
opentelemetry-collector/service/host.go
Line 70 in 042b876
func (host *serviceHost) GetExporters() map[component.DataType]map[component.ID]component.Component { |
opentelemetry-collector/service/graph.go
Line 318 in 042b876
func (g *pipelinesGraph) GetExporters() map[component.DataType]map[component.ID]component.Component { |
to avoid further internal usage of these methods?
Also, we may need to add exceptions for existing components on contrib that use this method while we migrate them
432e97c
to
860b695
Compare
There are some usages that cannot be converted I believe, one is in the signalfx receiver. cc @dmitryax |
At Splunk, we rely on metadata updates sent directly from receivers to exporters. The same approach is implemented in k8scluster receiver, which we have an issue for open-telemetry/opentelemetry-collector-contrib#19741. The effort to replace that mechanism is significant. So maybe we wait for an alternative implementation before deprecating host.GetExporters? |
Also, we usually resolve all the to-be-deprecated usages in contrib before the actual deprecation in the core. Then, the deprecated API is usually removed on the next release. That way, we avoid adding |
#7370 details all uses in core and contrib.
In this case at least, I wonder if by waiting to deprecate we could be inviting additional novel uses that would have to be untangled. If you think it'll be a while before |
We also use that in some receivers in Splunk distribution, but it's the same metadata use case.
Sounds good to me. Let's migrate at least a couple of components before deprecating. And I'll start planning the migration for open-telemetry/opentelemetry-collector-contrib#19741. I'm good with deprecating it earlier, but we need a more descriptive message telling users it'll stay until all the usages in contrib are migrated with a link to #7370. Currently, it seems like it'll be dropped next release as it's usually done for other deprecations. |
Good points. I'll update the comment and will continue pushing forward with the other uses. |
6587e2c
to
f6be42d
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 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.
I think we can merge it. Let's just remove the target version for now?
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 can merge it. Let's just remove the target version for now?
f19068b
to
4ffb16f
Compare
See #7370