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

Conversation

@khellang
Copy link
Contributor

@khellang khellang commented Apr 25, 2017

Take it or leave it 😉 I went with TraceIdentifier to match the request ID on HttpContext.

Closes #827

@khellang khellang force-pushed the connection-trace-identifier branch 2 times, most recently from 4a59d94 to e8a8e4d Compare April 25, 2017 10:10
private FeatureReferences<FeatureInterfaces> _features;

public DefaultConnectionInfo(IFeatureCollection features)
{
Copy link
Member

Choose a reason for hiding this comment

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

Seems unrelated.

Copy link
Contributor Author

@khellang khellang Apr 25, 2017

Choose a reason for hiding this comment

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

Yes, it is. I thought it made sense to clean it up when touching the file anyway. I can strip e8a8e4d if you want...

Copy link
Member

Choose a reason for hiding this comment

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

Yep. Do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! 👍

@khellang khellang force-pushed the connection-trace-identifier branch from e8a8e4d to 00e9bc8 Compare April 25, 2017 10:25
@khellang khellang force-pushed the connection-trace-identifier branch from 00e9bc8 to a38a527 Compare April 25, 2017 10:54
/// <summary>
/// Gets or sets a unique identifier to represent this connection in trace logs.
/// </summary>
public abstract string TraceIdentifier { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

👎 this is mixing names. We already have a TraceIdentifier on HttpContext with a different source value (actually made for tracing). Just call it ConnectionId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So... HttpContext.Connection.ConnectionId? Smurf much? 😉

Copy link
Member

Choose a reason for hiding this comment

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

Or HttpContext.Connection.Id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, that was next on my list after TraceIdentifier 😄

Copy link
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

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

.

@khellang khellang changed the title Add TraceIdentifier to ConnectionInfo Add Id to ConnectionInfo Apr 25, 2017
@Tratcher Tratcher merged commit f510759 into aspnet:dev May 10, 2017
@Tratcher Tratcher added this to the 2.0.0-preview2 milestone May 10, 2017
@khellang khellang deleted the connection-trace-identifier branch May 10, 2017 22:46
@khellang
Copy link
Contributor Author

❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants