Skip to content

Conversation

marcingrzejszczak
Copy link
Contributor

  • 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

cc @dsyer @adriancole

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
* 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";
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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)

Copy link
Contributor Author

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 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non Cloud Foundry execution:

image

Cloud Foundry
image

@marcingrzejszczak
Copy link
Contributor Author

fixed in 5b442e9

@marcingrzejszczak marcingrzejszczak deleted the issues_#369_instanceid branch April 18, 2017 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants