Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #87 from petemounce/clarity
Browse files Browse the repository at this point in the history
Change the annotation name to reflect the data
  • Loading branch information
bvillanueva-mdsol authored Jul 14, 2016
2 parents bda17ec + 5377f4b commit e573030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Medidata.ZipkinTracer.Core/SpanTracer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public virtual Span ReceiveServerSpan(string spanName, string traceId, string pa

newSpan.Annotations.Add(annotation);

AddBinaryAnnotation("http.uri", requestUri.AbsolutePath, newSpan, serviceEndpoint);
AddBinaryAnnotation("http.path", requestUri.AbsolutePath, newSpan, serviceEndpoint);

return newSpan;
}
Expand Down Expand Up @@ -80,7 +80,7 @@ public virtual Span SendClientSpan(string spanName, string traceId, string paren
};

newSpan.Annotations.Add(annotation);
AddBinaryAnnotation("http.uri", remoteUri.AbsolutePath, newSpan, serviceEndpoint);
AddBinaryAnnotation("http.path", remoteUri.AbsolutePath, newSpan, serviceEndpoint);
AddBinaryAnnotation("sa", "1", newSpan, zipkinEndpoint.GetRemoteEndpoint(remoteUri, clientServiceName));

return newSpan;
Expand Down
4 changes: 2 additions & 2 deletions tests/Medidata.ZipkinTracer.Core.Test/SpanTracerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void ReceiveServerSpan()

Assert.AreEqual(1, binaryAnnotations.Count());

AssertBinaryAnnotations(binaryAnnotations, "http.uri", serverUri.AbsolutePath);
AssertBinaryAnnotations(binaryAnnotations, "http.path", serverUri.AbsolutePath);
}

[TestMethod]
Expand Down Expand Up @@ -235,7 +235,7 @@ public void SendClientSpan()
var binaryAnnotations = resultSpan.GetAnnotationsByType<BinaryAnnotation>();

Assert.AreEqual(2, binaryAnnotations.Count());
AssertBinaryAnnotations(binaryAnnotations, "http.uri", serverUri.AbsolutePath);
AssertBinaryAnnotations(binaryAnnotations, "http.path", serverUri.AbsolutePath);
AssertBinaryAnnotations(binaryAnnotations, "sa", "1");

var endpoint = binaryAnnotations.ToArray()[1].Host as Endpoint;
Expand Down

0 comments on commit e573030

Please sign in to comment.