Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

IHttpRequestIdentifierFeature using Guid vs string #374

Closed
avanderhoorn opened this issue Aug 16, 2015 · 6 comments
Closed

IHttpRequestIdentifierFeature using Guid vs string #374

avanderhoorn opened this issue Aug 16, 2015 · 6 comments
Labels

Comments

@avanderhoorn
Copy link
Member

Just wondering why IHttpRequestIdentifierFeature had its Identifier changed from a Guid to a string. This means that we can't just take this identifier and use it for storing/grouping the data. We will have to generate our own guid and then keep this around as well for correlation sake with other systems. I can see that the decision was made in #310 but it doesn't go into the why.

// @Tratcher @davidfowl @SergeyKanzhelev

@davidfowl
Copy link
Member

This means that we can't just take this identifier and use it for storing/grouping the data.

How did you come to that conclusion?

@avanderhoorn
Copy link
Member Author

Well most storage mechanisms have the concept that a Guid is fairly unique and has bounded "constraints" (i.e. its not 10,000 chars long), who knows that the string will contain.

@avanderhoorn
Copy link
Member Author

Even though this is designed for logging identifiers rather than correlation across systems, I could still imagine that a use might want to correlate between Glimpse and a log file they have.

@sporty81
Copy link

Well for APM type products that inspect variables, I think it is a lot easier to get the value of a string than a guid.

@SergeyKanzhelev
Copy link

In Application Insights all identifier are strings. So we should be good here.

We have two types of user identity - anonymous user and authenticated user. Anonymous user is typically a Guid.NewGuid().ToString(). We use it mostly for filtering and correlation. For authenticated users we recommend to use human-readable strings as we think to use it for usage scenarios.

@avanderhoorn
Copy link
Member Author

Ok sounds good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants