How to see Links in Zipkin #4484
-
I've got a basic question about links and how to see and query for them. My SpringBoot app uses both automatic and manual instrumentation. I have a REST endpoint that I post data to. That data is buffered for a while. I save off the SpanContext with the buffered data. Eventually, another REST endpoint will pick up all buffered data and I use the original SpanContext to create a link. private void processItem(Item item, SpanContext originalContext) {
Span span = tracer.spanBuilder("process-item")
.addLink(originalContext)
.setSpanKind(SpanKink.INTERNAL)
.startSpan();
try {
span.setAttribute("item.number", item.getItemNumber());
// do some processing on the item...
}
finally {
span.end();
}
} Here's my environment variables: export OTEL_SERVICE_NAME=Item Service
export OTEL_TRACES_EXPORTER=zipkin
export OTEL_EXPORTER_ZIPKIN_ENDPOINT=http://localhost:9411/api/v2/spans
export OTEL_PROPAGATORS=tracecontext,baggage In Zipkin, I can see the traces/spans like I mostly expect. The attributes are visible in Zipkin, however I would have expected to see the link also in Zipkin. Have I done something wrong, or is Zipkin incapable of showing Links? If Zipkin is the wrong service to be able to see links, what's a better alternative? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @frgauthier , |
Beta Was this translation helpful? Give feedback.
Hey @frgauthier ,
Unfortunately Zipkin does not support span links. You can try using the OTLP exporter, or the Jaeger exporter instead -- both of them are capable of exporting span links.