Skip to content

[Suggestion] Centralize CorrelationIds#197

Closed
benaadams wants to merge 1 commit intodotnet:devfrom
benaadams:correlation-Id
Closed

[Suggestion] Centralize CorrelationIds#197
benaadams wants to merge 1 commit intodotnet:devfrom
benaadams:correlation-Id

Conversation

@benaadams
Copy link
Copy Markdown
Member

@benaadams benaadams commented Feb 28, 2017

TraceIdentifier and ConnectionId repeat the same logic; there is no reason why they couldn't come from the same source. Also means a request's Id will be logically greater than its connection's id; and new connection id's will be greater than older requests rather than independent.

Other change is to use more of the numeric domain. Seed the release of ASP.NET Core as min Id. Seed current start as now+timestamp; increase the number of unique events per-second from 10 million to 1 billion to reduce chance of restart clash (overkill 😛 - but might be used for additional events).

/cc @davidfowl

@Eilon
Copy link
Copy Markdown

Eilon commented Mar 20, 2017

@muratg we should ping Svetlana's team to see what they're doing with correlation.

@Tratcher
Copy link
Copy Markdown
Member

Why not leave it in HttpAbstractions? Kestrel and Hosting would have access to it there. Or does something else need it?

@benaadams
Copy link
Copy Markdown
Member Author

benaadams commented Mar 31, 2017

@Tratcher was mostly a suggestion, I can make a PR there instead?

@natemcmaster
Copy link
Copy Markdown

Although only HttpAbstractions and Kestrel would use this right away, it's conceivable that something besides our http servers might be interested in generating unique IDs. It seems logical for this to be in Common.

@benaadams
Copy link
Copy Markdown
Member Author

Don't think the lazy in this is correct, it should be on Id rather than string (but also string for string creation)

@muratg
Copy link
Copy Markdown

muratg commented Jun 26, 2017

@benaadams, good to close in this repo?

@muratg muratg closed this Jul 3, 2017
@ghost ghost locked as resolved and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants