Skip to content

[exporter/kafka] Move Authentication Configuration Struct From Internal To Pkg #33180

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

Open
wicklander-bryant opened this issue May 22, 2024 · 13 comments
Assignees

Comments

@wicklander-bryant
Copy link

wicklander-bryant commented May 22, 2024

Component(s)

exporter/kafka

Descrption

Users that are attempting to use the kafka exporter for a custom collector which requires authentication of any kind will encounter errors in doing so. This is because the Authentication field is referencing a struct that is in an internal package, see here.

Desired Resolution

IMHO the desired resolution to this issue is to have interanl/kafka moved to pkg/kafka.

Note: It seems as though this was discussed and decided that this should be done as per issue 30377, additionally there was a PR for these changes done by @vincentfree but it looks as though those changes were merged into a forked repository and not the original repository.

@wicklander-bryant wicklander-bryant added the needs triage New item requiring triage label May 22, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jul 29, 2024
@vincentfree
Copy link
Contributor

@pavolloffay or @MovieStoreGuy could we get this issue resolved? I am willing to update my fork and merge it if we have some buy in that the PR gets picked up and merged.

@wicklander-bryant
Copy link
Author

@vincentfree I've got a PR up (#33181) which resolves this issue, I'm trying to get the pipeline to pass so it may be merged as it already has the approvals.

@github-actions github-actions bot removed the Stale label Jul 30, 2024
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Sep 30, 2024
@wicklander-bryant
Copy link
Author

Still looking to get some assistance on getting the PR in. Seems like the issues that are occurring in the pipeline checks are related to the timing of changes getting in as I explained here (#33181 (comment)). @MovieStoreGuy, @dmitryax, and @TylerHelmuth if any of you guys could shed some light on this that would be amazing 🙏

@github-actions github-actions bot removed the Stale label Oct 2, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Dec 2, 2024
@vincentfree
Copy link
Contributor

I'm still waiting for this to be implemented. The implementation was ready, is there a blocker?

@github-actions github-actions bot removed the Stale label Jan 17, 2025
@wicklander-bryant
Copy link
Author

@vincentfree the blocker was the fact that the pipeline wouldn't pass, I had reached out to some of the code owners for additional eyes but am waiting on that. I had taken a break from rebasing my PR (#33181). I just pushed a rebase to the PR but it is closed and it looks like I don't have the permissions to re-open it. @TylerHelmuth could you please reopen my PR?

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Mar 24, 2025
@axw
Copy link
Contributor

axw commented Mar 24, 2025

Is it only the config struct that you need access to?

I've recently been refactoring the config structs and introduced https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/internal/kafka/configkafka. I think it would be reasonable to move this to pkg/kafka/configkafka

There are also some functions in internal/kafka for creating Sarama clients. I would prefer to not expose them if we don't need to, since I intend to propose replacing the use of Sarama with franz-go.

@github-actions github-actions bot removed the Stale label Mar 24, 2025
@vincentfree
Copy link
Contributor

Why would you change to franz? I did see integration with open telemetry in their libraries. Maybe it could improve the internal observability of the collector.

@axw
Copy link
Contributor

axw commented May 19, 2025

@vincentfree that's definitely one pro. Aside from that, my team has done performance comparisons in the past and found franz-go to be superior. The API is nicer to work with. There are generally fewer bugs. Anyway, the proposal to switch will come with some supporting evidence.

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

No branches or pull requests

4 participants