1
0
Форкнуть 0
This commit is contained in:
Timothy Mothra Lee 2019-05-23 15:37:45 -07:00
Родитель 7f1eb6bfb6
Коммит 7f8ea15ea7
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -111,7 +111,6 @@
}
var currentActivity = Activity.Current;
var isActivityCreatedFromRequestIdHeader = true;
string sourceAppId = null;
string originalParentId = currentActivity.ParentId;
@ -119,7 +118,6 @@
// W3C
if (this.enableW3CHeaders)
{
isActivityCreatedFromRequestIdHeader = false;
this.SetW3CContext(httpContext.Request.Headers, currentActivity, out sourceAppId);
var parentSpanId = currentActivity.GetParentSpanId();
@ -134,7 +132,6 @@
httpContext.Request.Headers.TryGetValue(RequestResponseHeaders.StandardRootIdHeader, out StringValues alternativeRootIdValues) &&
alternativeRootIdValues != StringValues.Empty)
{
isActivityCreatedFromRequestIdHeader = false;
newActivity = new Activity(ActivityCreatedByHostingDiagnosticListener)
.SetParentId(StringUtilities.EnforceMaxLength(alternativeRootIdValues.First(),
InjectionGuardConstants.RequestHeaderMaxLength));
@ -213,7 +210,6 @@
}
var activity = new Activity(ActivityCreatedByHostingDiagnosticListener);
var isActivityCreatedFromRequestIdHeader = false;
string sourceAppId = null;
@ -238,7 +234,6 @@
requestIdValues != StringValues.Empty)
{
var requestId = StringUtilities.EnforceMaxLength(requestIdValues.First(), InjectionGuardConstants.RequestHeaderMaxLength);
isActivityCreatedFromRequestIdHeader = true;
activity.SetParentId(requestId);
ReadCorrelationContext(requestHeaders, activity);