Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Removed TraceIdentifier usage and fixed operation.Id propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnduffy committed Jun 16, 2017
1 parent 403156f commit 49e5c00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void OnBeginRequest(HttpContext httpContext, long timestamp)
httpContext.Features.Set(new RequestTelemetry());

this.beginRequestTimestamp.Value = timestamp;
this.client.Context.Operation.Id = httpContext.TraceIdentifier = Guid.NewGuid().ToString();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected override void OnInitializeTelemetry(HttpContext platformContext, Reque
{
if (string.IsNullOrEmpty(telemetry.Context.Operation.Id))
{
telemetry.Context.Operation.Id = requestTelemetry.Id;
telemetry.Context.Operation.Id = requestTelemetry.Context.Operation.Id ?? requestTelemetry.Id;
}
}
}
Expand Down

0 comments on commit 49e5c00

Please sign in to comment.