-
Notifications
You must be signed in to change notification settings - Fork 782
Adding the client/server.instanceid tag #488
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
Conversation
without this tag it's impossible to discern from which server was the given span originated with this change we're adding a tag in which we're passing the contents of the spring.application.instanceid value to define the id of the given instance fixes #369
81191b1
to
0b52065
Compare
* ID of the instance from which the span was originated. This tag is related to the | ||
* client side communication of an RPC call. | ||
*/ | ||
public static final String SPAN_CLIENT_INSTANCEID = "client.instanceid"; |
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 don't think you need to add this twice, if you think about how it is used.
For example, are you going to search for a client whose instanceid is this? or anything whose instanceid is this? In the normal dual-host span model, the span detail screen would show the servicename and IP address who reported the instanceid (which would also match any other client-related tags). In any future "single-host span" model, this clarifier will become even more redundant. In other words, unless there's a very good reason to qualify this as client/server I'd just leave it as a normal tag like "spring.application.instanceid" or shorter like "spring.instanceid" id there's not likely an instanceid that isn't an application
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 see one issue with this (but maybe actually I'm wrong then there's no issue at all ;) ). If both the client and the server put the same tag with 2 different values, won't it be broken on the Zipkin UI in the RPC span?
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.
it will show up twice, once for each value (for each tracer)
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.
Awesome! So indeed I'll prefer to simplify things 👍
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.
fixed in 5b442e9 |
spring.application.instanceid
value to define the id of the given instancefixes #369
cc @dsyer @adriancole