Zipkin Plus monitoring function + through TRACID will be more powerful. Stability monitoring and positioning are all done.
This article will detail the Zipkin span model, as well as the design of other "alternative" span models.
Here more than a mouth, in fact, the professional point of the term should be distributed tracking system--distributed Tracingsystem, tracking more suitable for human scenes, such as someone was followed, and tracking more suitable for the computer field. And then the egg. This article continues to use tracking.
The
Zipkin span model almost completely mimics the design of the span model in dapper, and we know that span is used to describe an RPC call, So an RPC call should only be associated with one spanid (not the parent Spanid), and span in Zipkin consists of three data parts: the underlying data: the association and Interface display for the nodes in the trace tree, including Traceid, Spanid, ParentID, name, Timestamp and duration, where the parentid null span will be the root node of the trace tree, and of course it is also the starting point of the call chain, in order to save a spanid creation overhead, making the top-level span more visible, Spanid in the top-level span will be the same as Traceid. Timestamp is used to record the start time of the call, and duration represents the total time spent on the call, so timestamp+duration will be represented as the end of the call, and duration in the trace tree will be represented as the length of the time bar for that span. It is important to note that the name here is used to show up on the time bar of the trace tree node. Annotation data: Used to log critical events, only four, CS (Client send), SR (server receive), SS (server Send), CR (client Receive), so in the span model, Annotation is a list with a maximum length of 4. Each key event contains value, timestamp, and Endpoint,value, which is one of CS, Sr, SS, and CR, timestamp indicates the time that occurred, The endpoint is used to record the machine (IP) and service name (ServiceName) that occurred. It is natural to think that CS and Cr, SR and SS machine names are the same, for the sake of simplicity, CS and CR service name can be the same, SR and SS service name can be the same. Annotation data is primarily used to display specific span information when a user taps a span node. Binaryannotation data: We are not satisfied that only the time information of the call chain is displayed in the trace tree, and if some business data (logs) need to be bound, the data can be written to binaryannotation, and its structure and annotation data are identical. There is also a list in span, which is no longer elaborated, but it is not appropriate to put too much data in the binaryannotation, which will result in a decline in performance and experience.
1.
2.
3.
The difference between the two graphs is that figure 1 Spandid represents a single-degree call. The design of Zipkin, the need to pass Traceid, Spanid and Parentspanid
Figure 2 Spanid represents the server node ID. Both Spanid and parentid that call Server2,server3 are the same and cannot be distinguished.
Figure 3 Spanid with Figure 2, but there is no parentid, more than a childspandid. the Childspanid is generated by the Father node and passed to the child node. You only need to pass cspandid.
[1] Distributed Tracking System (ii): Zipkin span model