Repository navigation
Set kafka client service name to application default service name. - #854
Conversation
So that spans inheriting from that client span have application service name rather than 'kafka'
15323bb to
80a5cc6
Compare
labbati
left a comment
There was a problem hiding this comment.
LGTM! Just a thought though.
Assume that we have an app that only have a consumer and does not have a producer.
Wouldn't we loose visibility on the fact that such app depends on service Kafka? I may be missing something big here and what I wrote might make no sense.
While I do not object that the work done on the consumer callback can be considered part of the application service and not the kafka service, shouldn't we at least instrument the consumer constructor to keep track of the fact that we are at least depending on an external service? Unless I am missing this part from the code, we are not currently doing it.
labbati
left a comment
There was a problem hiding this comment.
I wrongly approved it. Please see the comment above.
|
So in my humble opinion:
I would agree that this may not be an ideal solution and it would be nice to have some way to change service name for children spans while not touching parent span - but so far I do not see a good way to do that, |
|
I see the point and for me this is ok to merge. My comment above was referred also to the fact that in the service map (as an example) you would not even see an arrow from application to a service named kafka. But this may be secondary. |
These are breaking changes that need more vetting.
So that spans inheriting from that client span have application
service name rather than 'kafka'