Skip to content

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, amamounelsayed and fbeltrao 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