@testpublic void shouldServerClientRemoteCallsWithServerDescendantBuildLinks() {List trace = asList(span2("a", null, "a", Kind.CLIENT, "client0", null, false),span2("a", "a", "b", Kind.SERVER, "server", "client0", false),span2("a", "b", "c", Kind.CLIENT, "client1", null, false),span2("a", "c", "d", Kind.SERVER, "server1", "client1", false));
> > To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-user+unsubscribe@googlegroups.com.
object Annotation {
final case class ServerAddr(ia: InetSocketAddress) extends Annotation
}
//zipkin2.v1.V1SpanConverter
void processBinaryAnnotations(V1Span source) { zipkin2.Endpoint ca = null, sa = null, ma = null; for (int i = 0, length = source.binaryAnnotations.size(); i < length; i++) { V1BinaryAnnotation b = source.binaryAnnotations.get(i); if (b.stringValue == null) { // <=== this caused ignoring my server endpoint if ("ca".equals(b.key)) { ca = b.endpoint; } else if ("sa".equals(b.key)) { sa = b.endpoint; } else if ("ma".equals(b.key)) { ma = b.endpoint; } continue; }
/*..........*/
}
> To unsubscribe from this group and stop receiving emails from it, send an email to zipki...@googlegroups.com.
Hi, TomaszLet's please come to closure on this topic. Can you please try the change here?Best,-A
On Thursday, July 4, 2019 at 9:08:52 PM UTC+8, Adrian Cole wrote:
One option Brian mentioned on the github issue is.. what if we take
the client's serviceName value and move it to the remoteServiceName
when the zipkin.localServiceName flag is set. Worst case, we get a bad
local service name set as a remote service name. However, since this
flag is opt-in anyway, it could make sense..
https://github.com/openzipkin/zipkin-finagle/pull/68#discussion_r300389213
> > To unsubscribe from this group and stop receiving emails from it, send an email to zipki...@googlegroups.com.
// zipkin2.finagle.MutableSpan
synchronized V1Span toSpan() { // fill in the host/service data for all the annotations for (V1Annotation a : annotations) { Endpoint ep = Endpoints.boundEndpoint(a.endpoint()); span.addAnnotation(a.timestamp(), a.value(), ep.toBuilder().serviceName(service).build()); } for (V1BinaryAnnotation ann : binaryAnnotations) { if (ann.stringValue() == null) continue; Endpoint ep = Endpoints.boundEndpoint(ann.endpoint()); span.addBinaryAnnotation( ann.key(), ann.stringValue(), ep.toBuilder().serviceName(service).build()); } return span.build(); }
// com.twitter.finagle.tracing.Annotation
object Annotation { final case class ServerAddr(ia: InetSocketAddress) extends Annotation
}
//zipkin2.v1.V1SpanConverter
void processBinaryAnnotations(V1Span source) { zipkin2.Endpoint ca = null, sa = null, ma = null; for (int i = 0, length = source.binaryAnnotations.size(); i < length; i++) { V1BinaryAnnotation b = source.binaryAnnotations.get(i); if (b.stringValue == null) { // <=== this caused ignoring my server endpoint if ("ca".equals(b.key)) { ca = b.endpoint; } else if ("sa".equals(b.key)) { sa = b.endpoint; } else if ("ma".equals(b.key)) { ma = b.endpoint; } continue; }
/*..........*/
}
if (sa != null) { // client span if (cs != null) { forEndpoint(source, cs.endpoint).remoteEndpoint(sa); } else if (cr != null) { forEndpoint(source, cr.endpoint).remoteEndpoint(sa); } }
--
---
You received this message because you are subscribed to the Google Groups "zipkin-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zipkin-user/7e10310f-95f9-4e36-8e41-dbaddcc6b2bf%40googlegroups.com.