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

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudmila Molkova committed Aug 2, 2018
1 parent 588e914 commit 85fd36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Common/W3C/W3COperationCorrelationTelemetryInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal static void UpdateTelemetry(ITelemetry telemetry, Activity activity, bo

if (initializeFromCurrent)
{
opTelemetry.Id = "|" + telemetry.Context.Operation.Id + "." + spanId + ".";
opTelemetry.Id = FormatId(telemetry.Context.Operation.Id, spanId);
if (parentSpanId != null)
{
telemetry.Context.Operation.ParentId = FormatId(telemetry.Context.Operation.Id, parentSpanId);
Expand All @@ -117,7 +117,7 @@ internal static void UpdateTelemetry(ITelemetry telemetry, Activity activity, bo

private static string FormatId(string traceId, string spanId)
{
return "|" + traceId + "." + spanId + ".";
return String.Concat("|", traceId,".", spanId, ".");
}
}
}

0 comments on commit 85fd36a

Please sign in to comment.