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

Add ClientId configuration #191

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Add ClientId configuration #191

wants to merge 5 commits into from

Conversation

gliljas
Copy link
Contributor

@gliljas gliljas commented Nov 4, 2020

Adds a ClientId parameter to the KafkaTrigger. This is good thing to have, e.g for collecting metrics. In our Confluent dashboard we get this warning:

"Unable to compute throughput.
There are multiple consumers
reading from this topic that do not
have unique client IDs"

This implementation sets Dns.GetHostName() as the default value. It could be regarded as a breaking change. An option could be to wrap the INameResolver in a "SuperSpecialNameResolver", which checks the output from the wrapped resolver for special values. If you want to use Dns.GetHostName() as your client ID, you could specify e.g. "%{dns.gethostname}%" as the attribute value.

@gliljas
Copy link
Contributor Author

gliljas commented Nov 5, 2020

Apparently, Confluent also wants it to be unique per consumergroup+client. Back to the code.

@ryancrawcour ryancrawcour requested review from TsuyoshiUshio, fbeltrao and amamounelsayed and removed request for TsuyoshiUshio and fbeltrao November 18, 2020 21:34
@ryancrawcour
Copy link
Contributor

to avoid causing a breaking change, could we ignore the clientid if not supplied?

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.

2 participants