The present invention provides a distributed service tracking implementation method. When a front-end request arrives at a
server, before an application container performs actual service
processing, the embedded logic of Cicada is executed first, the embedded logic distributes a global unique call chain ID which is called as TraceId for the front-end request, the embedded logic places the TraceId into a calling
context object Span, a calling
context object is stored into ThreadLocal, the ThreadLocal can carry out data storage and reading based on a thread, and information can be transmitted among multiple local
processing methods of a same time of request. The calling context can be transmitted transparently, the
system behavior is understood, a back end calling relation is cleared, the call chain tracking is realized, the path analysis is called, the
service personnel is helped to position a performance
bottleneck and investigate a fault reason, at the same time, the method needs to be transparent to the user, and the invasion to a
business code is reduced.