CN115022410B - A network request tracking method, device and equipment - Google Patents
A network request tracking method, device and equipment Download PDFInfo
- Publication number
- CN115022410B CN115022410B CN202210591031.3A CN202210591031A CN115022410B CN 115022410 B CN115022410 B CN 115022410B CN 202210591031 A CN202210591031 A CN 202210591031A CN 115022410 B CN115022410 B CN 115022410B
- Authority
- CN
- China
- Prior art keywords
- execution unit
- identifier
- request
- network request
- request identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
本申请公开了一种网络请求追踪方法、装置及设备,接收网络请求并获取该网络请求的请求标识。进而,确定该网络请求对应的执行单元,获取该执行单元的执行单元标识。保存请求标识与执行单元标识之间的对应关系。响应于该执行单元调用目标服务器,从保存的对应关系中获取执行单元的执行单元标识对应的请求标识,并将该请求标识发送给目标服务器。可知,通过预先保存执行单元标识与请求标识之间的对应关系,在执行单元需要获取请求标识时,直接根据执行单元标识从对应关系中获取需要的请求标识即可。如此,服务的每个子方法中并不需要逐层传递请求标识,能够增强请求标识传递的可靠性。
The present application discloses a network request tracking method, device and equipment, which receive a network request and obtain a request identifier of the network request. Then, determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit. Save the correspondence between the request identifier and the execution unit identifier. In response to the execution unit calling the target server, obtain the request identifier corresponding to the execution unit identifier of the execution unit from the saved correspondence, and send the request identifier to the target server. It can be seen that by pre-saving the correspondence between the execution unit identifier and the request identifier, when the execution unit needs to obtain the request identifier, it can directly obtain the required request identifier from the correspondence according to the execution unit identifier. In this way, each sub-method of the service does not need to pass the request identifier layer by layer, which can enhance the reliability of the request identifier transmission.
Description
技术领域Technical Field
本申请涉及计算机技术领域,具体涉及一种网络请求追踪方法、装置及设备。The present application relates to the field of computer technology, and in particular to a network request tracking method, device and equipment.
背景技术Background Art
随着应用开发技术的不断发展,微服务器架构应运而生,可用于应用的开发、部署和运维。分布式追踪系统为微服务器架构的一个重要组成部分,能够获取服务之间的调用关系、定位错误以及调试线上问题。With the continuous development of application development technology, microserver architecture has emerged and can be used for application development, deployment, and operation and maintenance. Distributed tracing system is an important part of microserver architecture, which can obtain the call relationship between services, locate errors, and debug online problems.
在分布式追踪系统中,会设置网络请求的请求标识,从发起该网络请求开始,在层层依赖服务以及追踪响应的过程中传递该请求标识,最后根据该请求标识收集日志、打印错误信息以及获取响应耗时等。如此,能够根据该请求标识实现网络请求的可追溯。In the distributed tracing system, a request identifier is set for the network request. Starting from the initiation of the network request, the request identifier is passed in the process of layer-by-layer dependency services and response tracking. Finally, logs are collected, error information is printed, and the time taken to obtain responses is obtained based on the request identifier. In this way, the network request can be traced based on the request identifier.
目前,设备在接收网络请求以及请求标识后,在传递请求标识的过程中,会将该请求标识组装到上下文对象中,并在设备的每个服务的各个子方法中均使用上下文对象透传该请求标识。但是,在该过程中需要用户手动将包含请求标识的上下文对象的传递过程写入各个子方法的代码中。如此,容易发生请求标识漏写入的情况,可靠性差。At present, after receiving a network request and a request identifier, the device will assemble the request identifier into a context object during the process of transmitting the request identifier, and use the context object to transparently transmit the request identifier in each sub-method of each service of the device. However, in this process, the user needs to manually write the transmission process of the context object containing the request identifier into the code of each sub-method. In this way, it is easy for the request identifier to be missed, and the reliability is poor.
发明内容Summary of the invention
有鉴于此,本申请实施例提供了一种网络请求追踪方法、装置及设备,能够提高传递网络请求的请求标识的可靠性。In view of this, embodiments of the present application provide a network request tracking method, apparatus, and device, which can improve the reliability of request identifiers for transmitting network requests.
为解决上述问题,本申请实施例提供的技术方案如下:To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
第一方面,本申请实施例提供一种网络请求追踪方法,所述方法包括:In a first aspect, an embodiment of the present application provides a network request tracking method, the method comprising:
接收网络请求,获取所述网络请求的请求标识;Receive a network request and obtain a request identifier of the network request;
确定所述网络请求对应的执行单元,获取所述执行单元的执行单元标识;Determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit;
保存所述请求标识与所述执行单元标识之间的对应关系;Saving the correspondence between the request identifier and the execution unit identifier;
响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识;In response to the execution unit calling the target server, obtaining a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship;
将所述请求标识发送给所述目标服务器。The request identifier is sent to the target server.
第二方面,本申请实施例提供一种网络请求追踪装置,所述装置包括:In a second aspect, an embodiment of the present application provides a network request tracking device, the device comprising:
第一获取单元,用于接收网络请求,获取所述网络请求的请求标识;A first acquisition unit, configured to receive a network request and acquire a request identifier of the network request;
第二获取单元,用于确定所述网络请求对应的执行单元,获取所述执行单元的执行单元标识;A second acquisition unit, used to determine the execution unit corresponding to the network request, and acquire the execution unit identifier of the execution unit;
保存单元,用于保存所述请求标识与所述执行单元标识之间的对应关系;A storage unit, used for storing the corresponding relationship between the request identifier and the execution unit identifier;
第三获取单元,用于响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识;a third acquisition unit, configured to acquire, in response to the execution unit calling the target server, a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship;
发送单元,用于将所述请求标识发送给所述目标服务器。A sending unit is used to send the request identifier to the target server.
第三方面,本申请实施例提供一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个计算机程序时,使得所述电子设备实现如上述的网络请求追踪方法。In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; and characterized in that when the one or more processors execute the one or more computer programs, the electronic device implements the network request tracking method as described above.
第四方面,本申请实施例提供一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如上述的网络请求追踪方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute the network request tracking method as described above.
第五方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如上述的网络请求追踪方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the network request tracking method as described above.
由此可见,本申请实施例具有如下有益效果:It can be seen that the embodiments of the present application have the following beneficial effects:
本申请实施例提供了一种网络请求追踪方法、装置及设备,接收网络请求并获取该网络请求的请求标识。进而,确定该网络请求对应的执行单元,并获取该执行单元的执行单元标识。保存请求标识与执行单元标识之间的对应关系。当执行单元调用目标服务器时,响应于该执行单元调用目标服务器,从保存的对应关系中获取执行单元的执行单元标识对应的请求标识,并将该请求标识发送给目标服务器。可知,在本申请实施例中,预先保存执行单元标识与请求标识之间的对应关系,在执行单元需要获取请求标识时,直接根据执行单元标识从对应关系中获取需要的请求标识即可。如此,服务的每个子方法中并不需要逐层传递请求标识,能够增强请求标识传递的可靠性。The embodiments of the present application provide a network request tracking method, device and equipment, which receive a network request and obtain a request identifier of the network request. Then, determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit. Save the correspondence between the request identifier and the execution unit identifier. When the execution unit calls the target server, in response to the execution unit calling the target server, obtain the request identifier corresponding to the execution unit identifier of the execution unit from the saved correspondence, and send the request identifier to the target server. It can be seen that in the embodiments of the present application, the correspondence between the execution unit identifier and the request identifier is saved in advance. When the execution unit needs to obtain the request identifier, it can directly obtain the required request identifier from the correspondence according to the execution unit identifier. In this way, the request identifier does not need to be passed layer by layer in each sub-method of the service, which can enhance the reliability of the request identifier transmission.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为相关技术中网络请求的请求标识的传递示意图;FIG1 is a schematic diagram of the transmission of a request identifier of a network request in the related art;
图2为本申请实施例提供的一种示例性应用场景的示意图;FIG2 is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;
图3为本申请实施例提供的一种网络请求追踪方法的流程图;FIG3 is a flow chart of a network request tracking method provided in an embodiment of the present application;
图4为本申请实施例提供的另一种网络请求的请求标识的传递示意图;FIG4 is a schematic diagram of transmitting a request identifier of another network request provided in an embodiment of the present application;
图5为本申请实施例提供的另一种网络请求的请求标识的传递示意图;FIG5 is a schematic diagram of transmitting another request identifier of a network request provided in an embodiment of the present application;
图6为本申请实施例提供的一种网络请求追踪装置的结构示意图;FIG6 is a schematic diagram of the structure of a network request tracking device provided in an embodiment of the present application;
图7为本申请实施例提供的一种电子设备的基本结构的示意图。FIG. 7 is a schematic diagram of a basic structure of an electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请实施例作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
为了便于理解和解释本申请实施例提供的技术方案,先对本申请实施例中所涉及到的背景技术进行介绍。In order to facilitate the understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application is first introduced.
随着应用开发技术的不断发展,微服务器架构应运而生,其可用于应用的开发、部署和运维。分布式追踪系统为微服务器架构的一个重要组成部分,能够获取服务之间的调用关系、定位错误、分析调用链路以及调试线上问题。With the continuous development of application development technology, micro-server architecture has emerged, which can be used for application development, deployment and operation and maintenance. Distributed tracing system is an important part of micro-server architecture, which can obtain the call relationship between services, locate errors, analyze call links and debug online problems.
在分布式追踪系统中,会设置网络请求的请求标识,从发起该网络请求开始,在层层依赖服务以及追踪响应的过程中传递该请求标识,通过该请求标识能够标记服务对该网络请求的调用顺序以及服务之间的嵌套关系。最后,根据该请求标识收集日志、打印错误信息以及获取响应耗时。如此,能够根据该请求标识实现网络请求的可追溯,进而能够实现错误的快速定位、调用关系的获取以及调用链路的分析等。In a distributed tracing system, a request identifier for a network request is set. Starting from the initiation of the network request, the request identifier is passed in the process of layer-by-layer dependency on services and tracking responses. The request identifier can mark the order in which the service calls the network request and the nested relationship between services. Finally, the time consumed in collecting logs, printing error information, and obtaining responses is determined based on the request identifier. In this way, the network request can be traced based on the request identifier, and then the error can be quickly located, the call relationship can be obtained, and the call link can be analyzed.
参见图1,图1为相关技术中网络请求的请求标识的传递示意图,图1展示了目前相关方法中请求标识的传递过程。如图1所示,设备,如服务器Service Y,能够接收来自服务器Service X的网络请求以及请求标识trace-id。进而,Service Y在传递trace-id的过程中,会将该trace-id组装到上下文对象context中,并在服务(如Service Y)的各个子方法中均使用context透传trace-id。其中,执行单元用于实现每个服务的各个子方法。例如,图1中的function-a、function-b、function-a1、function-a2等子方法中均使用ctx(即上下文对象context)透传trace-id。当子方法function-a1需要调用服务器Service Z、子方法function-a2需要调用服务器Service U或者子方法function-b需要调用数据库DB时,均可利用context透传trace-id给相应的服务器或数据库。Referring to FIG. 1 , FIG. 1 is a schematic diagram of the transmission of the request identifier of the network request in the related technology, and FIG. 1 shows the transmission process of the request identifier in the current related method. As shown in FIG. 1 , a device, such as a server Service Y, can receive a network request and a request identifier trace-id from a server Service X. Furthermore, in the process of transmitting the trace-id, Service Y will assemble the trace-id into the context object context, and use context to transparently transmit the trace-id in each sub-method of the service (such as Service Y). Among them, the execution unit is used to implement each sub-method of each service. For example, in FIG. 1 , function-a, function-b, function-a1, function-a2 and other sub-methods all use ctx (i.e., context object context) to transparently transmit the trace-id. When the sub-method function-a1 needs to call the server Service Z, the sub-method function-a2 needs to call the server Service U, or the sub-method function-b needs to call the database DB, the context can be used to transparently transmit the trace-id to the corresponding server or database.
但是,在该过程中,需要用户在各个子方法中手动编写传递包含trace-id的context的代码。如此,如某个子方法未写入传递context的代码,则容易发生trace-id漏写入的情况,可靠性差。另外,在各个子方法中传递trace-id这个与子方法业务无关的额外参数,不利于代码维护。However, in this process, users need to manually write code to pass the context containing trace-id in each sub-method. In this way, if a sub-method does not write the code to pass the context, it is easy for trace-id to be missed, which leads to poor reliability. In addition, passing trace-id, an additional parameter that is irrelevant to the business of the sub-method, in each sub-method is not conducive to code maintenance.
基于此,本申请实施例提供了一种网络请求追踪方法、装置及设备,接收网络请求并获取该网络请求的请求标识。进而,确定该网络请求对应的执行单元,并获取该执行单元的执行单元标识。保存请求标识与执行单元标识之间的对应关系。当执行单元调用目标服务器时,响应于该执行单元调用目标服务器,从保存的对应关系中获取执行单元的执行单元标识对应的请求标识,并将该请求标识发送给目标服务器。可知,在本申请实施例中,预先保存执行单元标识与请求标识之间的对应关系,在执行单元需要获取请求标识时,直接根据执行单元标识从对应关系中获取需要的请求标识即可。如此,服务的每个子方法中并不需要逐层传递请求标识,能够增强请求标识传递的可靠性。Based on this, the embodiments of the present application provide a network request tracking method, device and equipment, which receive a network request and obtain a request identifier of the network request. Then, determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit. Save the correspondence between the request identifier and the execution unit identifier. When the execution unit calls the target server, in response to the execution unit calling the target server, obtain the request identifier corresponding to the execution unit identifier of the execution unit from the saved correspondence, and send the request identifier to the target server. It can be seen that in the embodiments of the present application, the correspondence between the execution unit identifier and the request identifier is saved in advance. When the execution unit needs to obtain the request identifier, it can directly obtain the required request identifier from the correspondence according to the execution unit identifier. In this way, the request identifier does not need to be passed layer by layer in each sub-method of the service, which can enhance the reliability of the request identifier transmission.
为了便于理解本申请实施例提供的网络请求追踪方法,下面结合图2所示的场景示例进行说明。参见图2所示,该图为本申请实施例提供的示例性应用场景的框架示意图。该方法可以应用于当前服务器201中,例如当前服务器201为Service Y。In order to facilitate understanding of the network request tracking method provided in the embodiment of the present application, the following is an explanation in conjunction with the scenario example shown in Figure 2. Referring to Figure 2, this figure is a schematic diagram of the framework of an exemplary application scenario provided in the embodiment of the present application. The method can be applied to the current server 201, for example, the current server 201 is Service Y.
在实际应用中,当前服务器201能够接收来自客户端或其他服务器的网络请求,并可以获取网络请求的请求标识。进一步,当前服务器201确定网络请求对应的执行单元,获取执行单元的执行单元标识,并将请求标识与执行单元标识之间的对应关系进行保存。其中,执行单元用于执行网络请求。In actual application, the current server 201 can receive a network request from a client or other server, and can obtain a request identifier of the network request. Further, the current server 201 determines the execution unit corresponding to the network request, obtains the execution unit identifier of the execution unit, and saves the corresponding relationship between the request identifier and the execution unit identifier. Among them, the execution unit is used to execute the network request.
若当前服务器201中的执行单元需要调用目标服务器202(例如Service Z)以实现请求标识的传递,则当前服务器201响应于执行单元调用目标服务器,根据执行单元标识从对应关系中获取对应的请求标识,进而将该请求标识发送给目标服务器以实现请求标识的传递,完成网络请求的追踪。If the execution unit in the current server 201 needs to call the target server 202 (for example, Service Z) to realize the transfer of the request identifier, the current server 201 responds to the execution unit calling the target server, obtains the corresponding request identifier from the corresponding relationship according to the execution unit identifier, and then sends the request identifier to the target server to realize the transfer of the request identifier and complete the tracking of the network request.
本领域技术人员可以理解,图2所示的框架示意图仅是本申请的实施方式可以在其中得以实现的一个示例。本申请实施方式的适用范围不受到该框架任何方面的限制。Those skilled in the art will appreciate that the framework diagram shown in FIG2 is only an example in which the embodiments of the present application can be implemented. The scope of application of the embodiments of the present application is not limited in any aspect by the framework.
为了便于理解本申请,下面结合附图对本申请实施例提供的一种网络请求追踪方法进行说明。To facilitate understanding of the present application, a network request tracking method provided in an embodiment of the present application is described below with reference to the accompanying drawings.
参见图3所示,该图为本申请实施例提供的一种网络请求追踪方法的流程图,该方法可以应用于上述实施例所述的当前服务器中,例如当前服务器为Service Y。如图3所示,该方法可以包括S301-S305:Referring to FIG. 3 , this figure is a flow chart of a network request tracking method provided in an embodiment of the present application. The method can be applied to the current server described in the above embodiment, for example, the current server is Service Y. As shown in FIG. 3 , the method can include S301-S305:
S301:接收网络请求,获取网络请求的请求标识。S301: Receive a network request and obtain a request identifier of the network request.
当前服务器可以接收来自客户端或者其他服务器等设备发送的网络请求。例如,当前服务器Service Y可接收来自服务器Service X的网络请求。其中,网络请求中携带网络请求的请求标识,当前服务器接收网络请求后,可获取网络请求的请求标识。在本申请实施例中,网络请求的请求标识可用trace-id进行表示。The current server can receive a network request sent from a client or other server or other device. For example, the current server Service Y can receive a network request from a server Service X. The network request carries a request identifier of the network request. After the current server receives the network request, it can obtain the request identifier of the network request. In an embodiment of the present application, the request identifier of the network request can be represented by a trace-id.
在本申请实施例中,网络请求为至少一个,本申请对网络请求的具体数量不进行限定。参见图4,图4为本申请实施例提供的另一种网络请求的请求标识的传递示意图。如图4所示,Service Y收到三个网络请求,分别为网络请求1、网络请求2以及网络请求3,对应的请求标识分别用trace-id1、trace-id2以及trace-id3进行表示。In the embodiment of the present application, there is at least one network request, and the present application does not limit the specific number of network requests. Referring to FIG. 4 , FIG. 4 is a schematic diagram of the transmission of a request identifier of another network request provided in the embodiment of the present application. As shown in FIG. 4 , Service Y receives three network requests, namely, network request 1, network request 2, and network request 3, and the corresponding request identifiers are represented by trace-id1, trace-id2, and trace-id3, respectively.
S302:确定网络请求对应的执行单元,获取执行单元的执行单元标识。S302: Determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit.
在当前服务器接收到网络请求后,开始在当前服务器的各个子服务内进行调用追踪。具体实施时,当前服务器会为每个网络请求分配一个执行单元,该执行单元用于执行/处理该网络请求。可以理解的是,若当前服务器接收的网络请求为多个时,分别为每个网络请求分配一个执行单元。该多个网络请求中的一些网络请求可能相同,或者可能不同。相应地,网络请求对应的执行单元可能执行的网络请求是相同的,或者可能执行的网络请求是不同的。After the current server receives the network request, it starts to perform call tracking in each sub-service of the current server. In specific implementation, the current server will assign an execution unit to each network request, and the execution unit is used to execute/process the network request. It can be understood that if the current server receives multiple network requests, an execution unit is assigned to each network request. Some of the multiple network requests may be the same, or may be different. Accordingly, the execution unit corresponding to the network request may execute the same network request, or may execute different network requests.
如图4所示,当Service Y接收网络请求1、网络请求2以及网络请求3之后,为三个网络请求分别分配执行单元T1、执行单元T2以及执行单元T3。其中,T1、T2以及T3为对应的执行单元的执行单元标识。As shown in Fig. 4, after Service Y receives network request 1, network request 2 and network request 3, it allocates execution unit T1, execution unit T2 and execution unit T3 to the three network requests respectively, wherein T1, T2 and T3 are the execution unit identifiers of the corresponding execution units.
S303:保存请求标识与执行单元标识之间的对应关系。S303: Save the correspondence between the request identifier and the execution unit identifier.
在获取网络请求的请求标识以及用于处理网络请求的执行单元的执行单元标识之后,当前服务器保存请求标识与执行单元标识之间的对应关系。例如,当网络请求1的请求标识为trace-id1时,处理网络请求1的执行单元的执行单元标识为T1时,保存的对应关系为T1->trace-id1。类似地,还可保存对应关系T2->trace-id2以及对应关系T3->trace-id3。After obtaining the request identifier of the network request and the execution unit identifier of the execution unit for processing the network request, the current server saves the corresponding relationship between the request identifier and the execution unit identifier. For example, when the request identifier of network request 1 is trace-id1, and the execution unit identifier of the execution unit for processing network request 1 is T1, the saved corresponding relationship is T1->trace-id1. Similarly, the corresponding relationship T2->trace-id2 and the corresponding relationship T3->trace-id3 can also be saved.
可以理解的是,本申请实施例提供的保存请求标识与执行单元标识之间的对应关系是基于为网络请求分配的执行单元(或者称为计算执行单元)实现的。It can be understood that the correspondence between the storage request identifier and the execution unit identifier provided in the embodiment of the present application is implemented based on the execution unit (or called the computing execution unit) allocated to the network request.
通常,在单线程模式下,整个程序生命周期的变量只有一份,对应有一个执行单元。而多线程模式下,一些变量需要支持每个线程私有的功能,每个线程私有的变量被放到每个线程专有的存储区域中。TLS(Thread Local Storage,线程本地存储)可以理解为多线程模式下的每个线程的私有变量,具体为私有的全局变量(或者称为全局对象)。在多线程模式下,多线程中的每个线程均可使用TLS分配用以存储线程特定数据的位置。Usually, in single-threaded mode, there is only one copy of the variables for the entire program life cycle, corresponding to one execution unit. In multi-threaded mode, some variables need to support private functions for each thread, and the private variables of each thread are placed in a storage area dedicated to each thread. TLS (Thread Local Storage) can be understood as the private variables of each thread in multi-threaded mode, specifically private global variables (or global objects). In multi-threaded mode, each thread in the multi-threaded mode can use TLS to allocate a location for storing thread-specific data.
基于上述内容,在一种可能的实现方式中,本申请实施例提供了一种保存请求标识与执行单元标识之间的对应关系的具体实施方式,包括:Based on the above content, in a possible implementation manner, the embodiment of the present application provides a specific implementation manner of saving the correspondence between the request identifier and the execution unit identifier, including:
在线程本地存储中,保存请求标识与执行单元标识之间的对应关系。In the thread local storage, the correspondence between the request identifier and the execution unit identifier is saved.
可以理解的是,在线程本地存储中,保存请求标识与执行单元标识之间的对应关系,是基于执行单元的存储对应关系的一种方式。It can be understood that, in the thread local storage, saving the correspondence between the request identifier and the execution unit identifier is a way of storing the correspondence based on the execution unit.
由于不同编程语言所采用的存储方式不一样,基于TLS(或者称为类似TLS)的存储对应关系的方式仅为一种示例,本申请实施例不限于基于线程进行存储。在一种可能的实现方式中,Node.js基于事件循环进行存储,可通过Async_hooks获取并存储当前执行的Async Id。在另一种可能的实现方式中,Golang基于Goroutine调度进行存储,可通过Runtime获取并存储当前的Goroutine Id。可以理解的是,无论是何种具体的存储方式,本质上都是基于执行单元实现的对应关系的存储,即对应关系为请求标识与执行单元标识之间的关系。Since different programming languages use different storage methods, the storage correspondence method based on TLS (or similar to TLS) is only an example, and the embodiments of the present application are not limited to storage based on threads. In one possible implementation, Node.js is stored based on the event loop, and the currently executed Async Id can be obtained and stored through Async_hooks. In another possible implementation, Golang is stored based on Goroutine scheduling, and the current Goroutine Id can be obtained and stored through Runtime. It can be understood that no matter what specific storage method is used, it is essentially based on the storage of the corresponding relationship implemented by the execution unit, that is, the corresponding relationship is the relationship between the request identifier and the execution unit identifier.
作为一种可选示例,该网络请求追踪方法还包括初始化Map结构的全局对象。基于此,在一种可能的实现方式中,本申请实施例还提供了一种保存请求标识与执行单元标识之间的对应关系的具体实施方式,包括:As an optional example, the network request tracking method further includes initializing a global object of a Map structure. Based on this, in a possible implementation, the embodiment of the present application further provides a specific implementation method for saving the correspondence between the request identifier and the execution unit identifier, including:
向全局对象中写入请求标识与执行单元标识之间的对应关系。Write the correspondence between the request identifier and the execution unit identifier into the global object.
即,向Map结构的全局对象中写入请求标识与执行单元标识之间的对应关系,以使各个执行单元都能从对应的Map结构的全局对象获取存储的对应关系。That is, the correspondence between the request identifier and the execution unit identifier is written into the global object of the Map structure, so that each execution unit can obtain the stored correspondence from the corresponding global object of the Map structure.
基于上述关于TLS以及Map结构的全局对象的相关叙述,在一种可能的实现方式中,本申请实施例提供了一种初始化Map结构的全局对象的具体实施方式,包括:Based on the above description of TLS and global objects of Map structure, in a possible implementation, the embodiment of the present application provides a specific implementation method of initializing a global object of Map structure, including:
在线程本地存储中,初始化Map结构的全局对象。Initialize a global object of Map structure in thread local storage.
由此,可以在TLS中的Map结构全局对象中写入请求标识与执行单元标识之间的对应关系。可以理解的是,当编程语言不同时,还可以在Async_hooks或者Runtime中初始化MAP结构的全局对象。Thus, the correspondence between the request identifier and the execution unit identifier can be written into the global object of the Map structure in TLS. It is understandable that when the programming language is different, the global object of the MAP structure can also be initialized in Async_hooks or Runtime.
举例说明,如图4所示,初始化Map结构的TLS的全局对象S1,在收到携带有请求标识trace-id1的网络请求1时,Service Y为网络请求1分发执行单元T1。此时在全局对象S1中写入请求标识trace-id1与执行单元T1之间的对应关系{T1,traceid1}。类似地,初始化全局对象S2和全局对象S3,在全局对象S2中写入请求标识trace-id2与执行单元T2之间的对应关系{T2,traceid2},在全局对象S3中写入请求标识trace-id3与执行单元T3之间的对应关系{T3,traceid3}。For example, as shown in Figure 4, the global object S1 of TLS with a Map structure is initialized. When receiving a network request 1 carrying a request identifier trace-id1, Service Y distributes execution unit T1 to the network request 1. At this time, the corresponding relationship between the request identifier trace-id1 and the execution unit T1 {T1, traceid1} is written in the global object S1. Similarly, the global objects S2 and S3 are initialized, and the corresponding relationship between the request identifier trace-id2 and the execution unit T2 {T2, traceid2} is written in the global object S2, and the corresponding relationship between the request identifier trace-id3 and the execution unit T3 {T3, traceid3} is written in the global object S3.
S304:响应于执行单元调用目标服务器,从对应关系中获取执行单元的执行单元标识对应的请求标识。S304: In response to the execution unit calling the target server, obtaining a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship.
当前服务器中的执行单元能够调用目标服务器,例如,如图4所示,目标服务器为Service Z。当前服务器中的执行单元在调用目标服务器时,响应于执行单元调用目标服务器,当前服务器会从对应关系中获取执行单元的执行单元标识对应的请求标识。The execution unit in the current server can call the target server, for example, as shown in FIG4 , the target server is Service Z. When the execution unit in the current server calls the target server, in response to the execution unit calling the target server, the current server obtains the request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship.
在一种可能的实现方式中,本申请实施例提供了一种响应于执行单元调用目标服务器,从对应关系中获取执行单元的执行单元标识对应的请求标识的具体实施方式,包括:In a possible implementation, the embodiment of the present application provides a specific implementation of obtaining a request identifier corresponding to an execution unit identifier of the execution unit from a corresponding relationship in response to the execution unit calling a target server, including:
响应于执行单元调用目标服务器,从全局对象中查找执行单元的执行单元标识对应的请求标识。In response to the execution unit calling the target server, a request identifier corresponding to the execution unit identifier of the execution unit is searched from the global object.
举例说明,如图4所示,在执行单元T1调用目标服务器Service Z时,获取执行单元的执行单元标识T1,基于执行单元标识T1,到TLS的全局对象S1中查询获得执行单元标识T1对应的请求标识trace-id1。For example, as shown in FIG4 , when the execution unit T1 calls the target server Service Z, the execution unit identifier T1 of the execution unit is obtained, and based on the execution unit identifier T1, the request identifier trace-id1 corresponding to the execution unit identifier T1 is queried in the TLS global object S1.
S305:将请求标识发送给目标服务器。S305: Send the request identifier to the target server.
在获取请求标识后,当前服务器将请求标识发送给目标服务器。具体地,在当前服务器的执行单元获取请求标识后,当前服务器的执行单元将请求标识发送给目标服务器。After obtaining the request identifier, the current server sends the request identifier to the target server. Specifically, after the execution unit of the current server obtains the request identifier, the execution unit of the current server sends the request identifier to the target server.
如图4所示,在获取请求标识trace-id1之后,执行单元T1将请求标识trace-id1发送给目标服务器Service Z。具体地,在实际应用中,请求标识会随着执行单元生成的网络请求一起发送给目标服务器。As shown in Fig. 4, after obtaining the request identifier trace-id1, the execution unit T1 sends the request identifier trace-id1 to the target server Service Z. Specifically, in actual applications, the request identifier will be sent to the target server together with the network request generated by the execution unit.
可以理解的是,在目标服务器Service Z接收到网络请求以及网络请求的请求标识后,目标服务器Service Z会重复执行S301-S305以向调用下游继续传递请求标识。It is understandable that after the target server Service Z receives the network request and the request identifier of the network request, the target server Service Z will repeatedly execute S301-S305 to continue to pass the request identifier to the calling downstream.
需要说明的是,本申请实施例提供的网络请求追踪方法是面向所有微服务架构下的链路追踪优化方法,整个服务器内的服务均可以按此方法执行。It should be noted that the network request tracking method provided in the embodiment of the present application is a link tracking optimization method for all microservice architectures, and all services in the entire server can be executed according to this method.
参见图5,图5为本申请实施例提供的另一种网络请求的请求标识的传递示意图。图5为本申请实施例采用S301-S305方法的请求标识的传递示意图。从图5可知,相比于图4,代替上下文对象context,本申请实施例可采用TLS实现对应关系的存储,并能够根据保存的对应关系获取请求标识,以实现请求标识的向调用下游的传递。See Figure 5, which is a schematic diagram of the transmission of a request identifier of another network request provided in an embodiment of the present application. Figure 5 is a schematic diagram of the transmission of a request identifier using the S301-S305 method in an embodiment of the present application. As can be seen from Figure 5, compared to Figure 4, instead of the context object context, the embodiment of the present application can use TLS to implement the storage of the corresponding relationship, and can obtain the request identifier based on the saved corresponding relationship to implement the transmission of the request identifier to the downstream of the call.
参见表1,表1为基于上下文对象context透传请求标识的方式与本申请实施例中基于全局对象保存的执行单元标识与请求标识之间的对应关系获取请求标识并传递请求标识的方式的对比。See Table 1, which is a comparison of a method of transparently transmitting a request identifier based on a context object context and a method of obtaining and transmitting a request identifier based on a correspondence between an execution unit identifier and a request identifier stored in a global object in an embodiment of the present application.
表1请求标识的两种传递方式对比Table 1 Comparison of two ways of transmitting request identifiers
如表1所示,目前的请求标识传递方式中,需要在每个服务的各个子方法中均人工写入传递包括请求标识的上下文对象context的代码,容易发生漏写的情况。一旦漏写请求标识,调用链追踪会中断。而且目前的请求标识传递方式中,请求标识不属于业务参数,其对于子方法的业务逻辑来说是一个冗余参数。服务在子方法中传递额外的冗余参数,会降低服务的可维护性。As shown in Table 1, in the current request identifier transmission method, the code for transmitting the context object context including the request identifier needs to be manually written in each sub-method of each service, which is prone to omission. Once the request identifier is omitted, the call chain tracking will be interrupted. Moreover, in the current request identifier transmission method, the request identifier is not a business parameter, and it is a redundant parameter for the business logic of the sub-method. The service passes additional redundant parameters in the sub-method, which reduces the maintainability of the service.
在本申请实施例中,通过TLS的全局对象存储请求标识与执行单元标识之间的对应关系,在需要传递请求标识时,从保存的对应关系中获取请求标识。可知,采用本申请实施例提供的网络请求追踪方法,能够尽最大可能降低服务器内追踪请求标识的遗漏率,使调用链完整串联起来。如此,有助于提升调用链追踪的准确性以及服务的可维护性,还可以降低每个服务的问题追踪排查时间成本。此外,由于本申请实施例提供的网络请求追踪方法无需额外传递冗余参数,代码趋于简洁,能够降低每个服务的研发时间成本。In an embodiment of the present application, the correspondence between the request identifier and the execution unit identifier is stored through the global object of TLS. When the request identifier needs to be passed, the request identifier is obtained from the saved correspondence. It can be seen that the network request tracking method provided in the embodiment of the present application can reduce the omission rate of tracking request identifiers in the server as much as possible, so that the call chain can be completely connected in series. In this way, it helps to improve the accuracy of call chain tracking and the maintainability of the service, and can also reduce the time cost of problem tracking and troubleshooting for each service. In addition, since the network request tracking method provided in the embodiment of the present application does not require the additional transmission of redundant parameters, the code tends to be concise, which can reduce the time cost of research and development of each service.
本申请实施例提供了一种网络请求追踪方法,接收网络请求并获取该网络请求的请求标识。进而,确定该网络请求对应的执行单元,并获取该执行单元的执行单元标识。保存请求标识与执行单元标识之间的对应关系。当执行单元调用目标服务器时,响应于该执行单元调用目标服务器,从保存的对应关系中获取执行单元的执行单元标识对应的请求标识,并将该请求标识发送给目标服务器。可知,在本申请实施例中,预先保存执行单元标识与请求标识之间的对应关系,在执行单元需要获取请求标识时,直接根据执行单元标识从对应关系中获取需要的请求标识即可。如此,代替通过人工将包括请求标识的上下文对象写入服务的每个子方法中,即服务的每个子方法中并不需要逐层传递请求标识,能够增强请求标识传递的可靠性。The embodiment of the present application provides a network request tracking method, which receives a network request and obtains a request identifier of the network request. Then, the execution unit corresponding to the network request is determined, and the execution unit identifier of the execution unit is obtained. The correspondence between the request identifier and the execution unit identifier is saved. When the execution unit calls the target server, in response to the execution unit calling the target server, the request identifier corresponding to the execution unit identifier of the execution unit is obtained from the saved correspondence, and the request identifier is sent to the target server. It can be seen that in the embodiment of the present application, the correspondence between the execution unit identifier and the request identifier is saved in advance, and when the execution unit needs to obtain the request identifier, the required request identifier can be directly obtained from the correspondence according to the execution unit identifier. In this way, instead of manually writing the context object including the request identifier into each sub-method of the service, that is, each sub-method of the service does not need to pass the request identifier layer by layer, the reliability of the request identifier transmission can be enhanced.
在一种可能的实现方式中,本申请实施例还提供了另一种网络请求追踪方法,除S301-S305之外,该网络请求追踪方法还包括:In a possible implementation, the embodiment of the present application further provides another network request tracing method. In addition to S301-S305, the network request tracing method further includes:
在执行单元执行结束之后,删除请求标识与执行单元标识之间的对应关系。After the execution unit finishes executing, the correspondence between the request identifier and the execution unit identifier is deleted.
由此,可以存储新的请求标识与新的执行单元标识之间的对应关系。In this way, the correspondence between the new request identifier and the new execution unit identifier can be stored.
具体地,当请求标识与执行单元标识之间的对应关系存储于全局对象中时,在一种可能的实现方式中,本申请实施例还提供了另一种网络请求追踪方法,除S301-S305之外,该网络请求追踪方法还包括:Specifically, when the correspondence between the request identifier and the execution unit identifier is stored in a global object, in a possible implementation, the embodiment of the present application further provides another network request tracing method, which, in addition to S301-S305, also includes:
在执行单元执行结束之后,从全局对象中删除请求标识与执行单元标识之间的对应关系。After the execution of the execution unit is completed, the corresponding relationship between the request identifier and the execution unit identifier is deleted from the global object.
由此,可以释放全局对象,以存储新的请求标识与新的执行单元标识之间的对应关系。Thus, the global object can be released to store the corresponding relationship between the new request identifier and the new execution unit identifier.
基于上述方法实施例提供的一种网络请求追踪方法,本申请实施例还提供了一种网络请求追踪装置,下面将结合附图对网络请求追踪装置进行说明。Based on a network request tracing method provided by the above method embodiment, the embodiment of the present application also provides a network request tracing device, which will be described below in conjunction with the accompanying drawings.
参见图6所示,该图为本申请实施例提供的一种网络请求追踪装置的结构示意图。如图6所示,该网络请求追踪装置包括:See FIG6 , which is a schematic diagram of the structure of a network request tracking device provided in an embodiment of the present application. As shown in FIG6 , the network request tracking device includes:
第一获取单元601,用于接收网络请求,获取所述网络请求的请求标识;A first acquisition unit 601 is used to receive a network request and acquire a request identifier of the network request;
第二获取单元602,用于确定所述网络请求对应的执行单元,获取所述执行单元的执行单元标识;A second acquisition unit 602 is used to determine the execution unit corresponding to the network request and acquire the execution unit identifier of the execution unit;
保存单元603,用于保存所述请求标识与所述执行单元标识之间的对应关系;A storage unit 603 is used to store the corresponding relationship between the request identifier and the execution unit identifier;
第三获取单元604,用于响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识;A third acquisition unit 604 is configured to acquire, in response to the execution unit calling the target server, a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship;
发送单元605,用于将所述请求标识发送给所述目标服务器。The sending unit 605 is configured to send the request identifier to the target server.
在一种可能的实现方式中,所述保存单元603,具体用于:In a possible implementation, the storage unit 603 is specifically configured to:
在线程本地存储中,保存所述请求标识与所述执行单元标识之间的对应关系。In the thread local storage, the correspondence between the request identifier and the execution unit identifier is saved.
在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
初始化单元,用于初始化Map结构的全局对象;Initialization unit, used to initialize the global object of Map structure;
所述保存单元603,具体用于:The storage unit 603 is specifically used for:
向所述全局对象中写入所述请求标识与所述执行单元标识之间的对应关系。The correspondence between the request identifier and the execution unit identifier is written into the global object.
在一种可能的实现方式中,所述初始化单元,具体用于:In a possible implementation manner, the initialization unit is specifically used to:
在线程本地存储中,初始化Map结构的全局对象。Initialize a global object of Map structure in thread local storage.
在一种可能的实现方式中,所述第三获取单元604,具体用于:In a possible implementation, the third obtaining unit 604 is specifically configured to:
响应于所述执行单元调用目标服务器,从所述全局对象中查找所述执行单元的执行单元标识对应的请求标识。In response to the execution unit calling the target server, searching the global object for a request identifier corresponding to the execution unit identifier of the execution unit.
在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第一删除单元,用于在所述执行单元执行结束之后,删除所述请求标识与所述执行单元标识之间的对应关系。The first deleting unit is used to delete the corresponding relationship between the request identifier and the execution unit identifier after the execution of the execution unit is completed.
在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第二删除单元,用于在所述执行单元执行结束之后,从所述全局对象中删除所述请求标识与所述执行单元标识之间的对应关系。The second deleting unit is used to delete the corresponding relationship between the request identifier and the execution unit identifier from the global object after the execution of the execution unit is completed.
基于上述方法实施例提供的一种网络请求追踪方法,本申请还提供一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述任一实施例所述的网络请求追踪方法。Based on a network request tracking method provided by the above method embodiment, the present application also provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are executed by the one or more processors, the one or more processors implement the network request tracking method described in any of the above embodiments.
下面参考图7,其示出了适于用来实现本申请实施例的电子设备1300的结构示意图。本申请实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(Personal Digital Assistant,个人数字助理)、PAD(portable androiddevice,平板电脑)、PMP(Portable Media Player,便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV(television,电视机)、台式计算机等等的固定终端。图7示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 7 below, it shows a schematic diagram of the structure of an electronic device 1300 suitable for implementing an embodiment of the present application. The terminal device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. The electronic device shown in FIG. 7 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
如图7所示,电子设备1300可以包括处理装置(例如中央处理器、图形处理器等)1301,其可以根据存储在只读存储器(ROM)1302中的程序或者从存储装置1306加载到随机访问存储器(RAM)1303中的程序而执行各种适当的动作和处理。在RAM1303中,还存储有电子设备1300操作所需的各种程序和数据。处理装置1301、ROM 1302以及RAM 1303通过总线1304彼此相连。输入/输出(I/O)接口1305也连接至总线1304。As shown in FIG7 , the electronic device 1300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage device 1306 into a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the electronic device 1300 are also stored. The processing device 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input/output (I/O) interface 1305 is also connected to the bus 1304.
通常,以下装置可以连接至I/O接口1305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置1306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1307;包括例如磁带、硬盘等的存储装置1306;以及通信装置1309。通信装置1309可以允许电子设备1300与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的电子设备1300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 1305: input devices 1306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1306 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1309. The communication devices 1309 may allow the electronic device 1300 to communicate wirelessly or wired with other devices to exchange data. Although FIG. 7 shows an electronic device 1300 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1309从网络上被下载和安装,或者从存储装置1306被安装,或者从ROM1302被安装。在该计算机程序被处理装置1301执行时,执行本申请实施例的方法中限定的上述功能。In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1309, or installed from the storage device 1306, or installed from the ROM 1302. When the computer program is executed by the processing device 1301, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
本申请实施例提供的电子设备与上述实施例提供的网络请求追踪方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。The electronic device provided in the embodiment of the present application and the network request tracking method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
基于上述方法实施例提供的一种网络请求追踪方法,本申请实施例提供一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如上述任一实施例所述的网络请求追踪方法。Based on a network request tracing method provided by the above method embodiment, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the network request tracing method as described in any of the above embodiments is implemented.
需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述网络请求追踪方法。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the network request tracking method.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and/or flow chart, and the combination of the boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元/模块的名称在某种情况下并不构成对该单元本身的限定,例如,语音数据采集模块还可以被描述为“数据采集模块”。The units involved in the embodiments described in this application may be implemented by software or hardware. The name of a unit/module does not limit the unit itself in some cases. For example, a voice data acquisition module may also be described as a "data acquisition module".
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
根据本申请的一个或多个实施例,【示例一】提供了一种网络请求追踪方法,所述方法包括:According to one or more embodiments of the present application, [Example 1] provides a network request tracing method, the method comprising:
接收网络请求,获取所述网络请求的请求标识;Receive a network request and obtain a request identifier of the network request;
确定所述网络请求对应的执行单元,获取所述执行单元的执行单元标识;Determine the execution unit corresponding to the network request, and obtain the execution unit identifier of the execution unit;
保存所述请求标识与所述执行单元标识之间的对应关系;Saving the correspondence between the request identifier and the execution unit identifier;
响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识;In response to the execution unit calling the target server, obtaining a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship;
将所述请求标识发送给所述目标服务器。The request identifier is sent to the target server.
根据本申请的一个或多个实施例,【示例二】提供了一种网络请求追踪方法,所述保存所述请求标识与所述执行单元标识之间的对应关系,包括:According to one or more embodiments of the present application, [Example 2] provides a network request tracking method, wherein the storing of the correspondence between the request identifier and the execution unit identifier includes:
在线程本地存储中,保存所述请求标识与所述执行单元标识之间的对应关系。In the thread local storage, the correspondence between the request identifier and the execution unit identifier is saved.
根据本申请的一个或多个实施例,【示例三】提供了一种网络请求追踪方法,所述方法还包括:According to one or more embodiments of the present application, [Example 3] provides a network request tracing method, the method further comprising:
初始化Map结构的全局对象;Initialize the global object of Map structure;
所述保存所述请求标识与所述执行单元标识之间的对应关系,包括:The storing the correspondence between the request identifier and the execution unit identifier includes:
向所述全局对象中写入所述请求标识与所述执行单元标识之间的对应关系。The correspondence between the request identifier and the execution unit identifier is written into the global object.
根据本申请的一个或多个实施例,【示例四】提供了一种网络请求追踪方法,所述初始化Map结构的全局对象,包括:According to one or more embodiments of the present application, [Example 4] provides a network request tracking method, wherein the global object of the initialization Map structure includes:
在线程本地存储中,初始化Map结构的全局对象。Initialize a global object of Map structure in thread local storage.
根据本申请的一个或多个实施例,【示例五】提供了一种网络请求追踪方法,所述响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识,包括:According to one or more embodiments of the present application, [Example 5] provides a network request tracking method, wherein in response to the execution unit calling the target server, obtaining the request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship includes:
响应于所述执行单元调用目标服务器,从所述全局对象中查找所述执行单元的执行单元标识对应的请求标识。In response to the execution unit calling the target server, searching the global object for a request identifier corresponding to the execution unit identifier of the execution unit.
根据本申请的一个或多个实施例,【示例六】提供了一种网络请求追踪方法,在所述执行单元执行结束之后,所述方法还包括:According to one or more embodiments of the present application, [Example 6] provides a network request tracing method. After the execution unit is executed, the method further includes:
删除所述请求标识与所述执行单元标识之间的对应关系。The correspondence between the request identifier and the execution unit identifier is deleted.
根据本申请的一个或多个实施例,【示例七】提供了一种网络请求追踪方法,在所述执行单元执行结束之后,所述方法还包括:According to one or more embodiments of the present application, [Example 7] provides a network request tracing method. After the execution unit is executed, the method further includes:
从所述全局对象中删除所述请求标识与所述执行单元标识之间的对应关系。The correspondence between the request identifier and the execution unit identifier is deleted from the global object.
根据本申请的一个或多个实施例,【示例八】提供了一种网络请求追踪装置,所述装置包括:According to one or more embodiments of the present application, [Example 8] provides a network request tracking device, the device comprising:
第一获取单元,用于接收网络请求,获取所述网络请求的请求标识;A first acquisition unit, configured to receive a network request and acquire a request identifier of the network request;
第二获取单元,用于确定所述网络请求对应的执行单元,获取所述执行单元的执行单元标识;A second acquisition unit, used to determine the execution unit corresponding to the network request, and acquire the execution unit identifier of the execution unit;
保存单元,用于保存所述请求标识与所述执行单元标识之间的对应关系;A storage unit, used for storing the corresponding relationship between the request identifier and the execution unit identifier;
第三获取单元,用于响应于所述执行单元调用目标服务器,从所述对应关系中获取所述执行单元的执行单元标识对应的请求标识;a third acquisition unit, configured to acquire, in response to the execution unit calling the target server, a request identifier corresponding to the execution unit identifier of the execution unit from the corresponding relationship;
发送单元,用于将所述请求标识发送给所述目标服务器。A sending unit is used to send the request identifier to the target server.
根据本申请的一个或多个实施例,【示例九】提供了一种网络请求追踪装置,所述保存单元603,具体用于:According to one or more embodiments of the present application, [Example 9] provides a network request tracking device, wherein the storage unit 603 is specifically used to:
在线程本地存储中,保存所述请求标识与所述执行单元标识之间的对应关系。In the thread local storage, the correspondence between the request identifier and the execution unit identifier is saved.
根据本申请的一个或多个实施例,【示例十】提供了一种网络请求追踪装置,所述装置还包括:According to one or more embodiments of the present application, [Example 10] provides a network request tracking device, the device further comprising:
初始化单元,用于初始化Map结构的全局对象;Initialization unit, used to initialize the global object of Map structure;
所述保存单元603,具体用于:The storage unit 603 is specifically used for:
向所述全局对象中写入所述请求标识与所述执行单元标识之间的对应关系。The correspondence between the request identifier and the execution unit identifier is written into the global object.
根据本申请的一个或多个实施例,【示例十一】提供了一种网络请求追踪装置,所述初始化单元,具体用于:According to one or more embodiments of the present application, [Example 11] provides a network request tracking device, wherein the initialization unit is specifically used to:
在线程本地存储中,初始化Map结构的全局对象。Initialize a global object of Map structure in thread local storage.
根据本申请的一个或多个实施例,【示例十二】提供了一种网络请求追踪装置,所述第三获取单元604,具体用于:According to one or more embodiments of the present application, [Example 12] provides a network request tracking device, wherein the third acquisition unit 604 is specifically used to:
响应于所述执行单元调用目标服务器,从所述全局对象中查找所述执行单元的执行单元标识对应的请求标识。In response to the execution unit calling the target server, searching the global object for a request identifier corresponding to the execution unit identifier of the execution unit.
根据本申请的一个或多个实施例,【示例十三】提供了一种网络请求追踪装置,所述装置还包括:According to one or more embodiments of the present application, [Example 13] provides a network request tracking device, the device further comprising:
第一删除单元,用于在所述执行单元执行结束之后,删除所述请求标识与所述执行单元标识之间的对应关系。The first deleting unit is used to delete the corresponding relationship between the request identifier and the execution unit identifier after the execution of the execution unit is completed.
根据本申请的一个或多个实施例,【示例十四】提供了一种网络请求追踪装置,所述装置还包括:According to one or more embodiments of the present application, [Example 14] provides a network request tracking device, the device further comprising:
第二删除单元,用于在所述执行单元执行结束之后,从所述全局对象中删除所述请求标识与所述执行单元标识之间的对应关系。The second deleting unit is used to delete the corresponding relationship between the request identifier and the execution unit identifier from the global object after the execution of the execution unit is completed.
根据本申请的一个或多个实施例,【示例十五】提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个计算机程序时,使得所述电子设备实现如上述任一项所述的网络请求追踪方法。According to one or more embodiments of the present application, [Example 15] provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; and characterized in that when the one or more processors execute the one or more computer programs, the electronic device implements the network request tracking method as described in any one of the above items.
根据本申请的一个或多个实施例,【示例十六】提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如上述任一项所述的网络请求追踪方法。According to one or more embodiments of the present application, [Example 16] provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute a network request tracking method as described in any one of the above items.
根据本申请的一个或多个实施例,【示例十七】提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如上述任一项所述的网络请求追踪方法。According to one or more embodiments of the present application, [Example 17] provides a computer program product, which, when executed on a computer, enables the computer to execute a network request tracking method as described in any one of the above items.
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统或装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And/or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character "/" generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210591031.3A CN115022410B (en) | 2022-05-27 | 2022-05-27 | A network request tracking method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210591031.3A CN115022410B (en) | 2022-05-27 | 2022-05-27 | A network request tracking method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115022410A CN115022410A (en) | 2022-09-06 |
CN115022410B true CN115022410B (en) | 2024-10-01 |
Family
ID=83071728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210591031.3A Active CN115022410B (en) | 2022-05-27 | 2022-05-27 | A network request tracking method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115022410B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445643A (en) * | 2019-07-25 | 2019-11-12 | 泰康保险集团股份有限公司 | Asynchronous micro services call link tracking, device, medium and electronic equipment |
CN110489315A (en) * | 2019-07-18 | 2019-11-22 | 威富通科技有限公司 | A kind of tracking of operation requests, tracking device and server |
CN114398179A (en) * | 2022-01-14 | 2022-04-26 | 北京思明启创科技有限公司 | Method and device for acquiring tracking identifier, server and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108038145A (en) * | 2017-11-23 | 2018-05-15 | 携程旅游网络技术(上海)有限公司 | Distributed Services tracking, system, storage medium and electronic equipment |
CN108289038A (en) * | 2017-12-30 | 2018-07-17 | 金蝶软件(中国)有限公司 | Request tracing method, apparatus, computer equipment and storage medium |
CN113760562A (en) * | 2020-09-30 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Link tracking method, apparatus, system, server and storage medium |
CN112363855B (en) * | 2020-11-13 | 2021-06-18 | 北京基调网络股份有限公司 | Call chain data generation method, topology generation method and system and computer equipment |
-
2022
- 2022-05-27 CN CN202210591031.3A patent/CN115022410B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489315A (en) * | 2019-07-18 | 2019-11-22 | 威富通科技有限公司 | A kind of tracking of operation requests, tracking device and server |
CN110445643A (en) * | 2019-07-25 | 2019-11-12 | 泰康保险集团股份有限公司 | Asynchronous micro services call link tracking, device, medium and electronic equipment |
CN114398179A (en) * | 2022-01-14 | 2022-04-26 | 北京思明启创科技有限公司 | Method and device for acquiring tracking identifier, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115022410A (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111475298A (en) | Task processing method, device, device and storage medium | |
CN111679990A (en) | Test data generation method and device, readable medium and electronic equipment | |
CN110391938B (en) | Method and apparatus for deploying services | |
CN113761588A (en) | Data verification method and device, terminal equipment and storage medium | |
CN111240834A (en) | Task execution method, apparatus, electronic device and storage medium | |
CN113391860A (en) | Service request processing method and device, electronic equipment and computer storage medium | |
CN113297277B (en) | Test statistic determining method and device, readable medium and electronic equipment | |
CN111324470A (en) | Method and apparatus for generating information | |
WO2023273576A1 (en) | Abnormal request processing method and apparatus, electronic device and storage medium | |
CN115022410B (en) | A network request tracking method, device and equipment | |
CN113220281A (en) | Information generation method and device, terminal equipment and storage medium | |
CN110727694B (en) | Data processing method, device, electronic equipment and storage medium | |
CN110489219B (en) | Method, device, medium and electronic equipment for scheduling functional objects | |
CN112286773A (en) | Method, device, medium and electronic equipment for collecting crash information | |
CN117931813A (en) | Lake bin metadata change determining method, device, equipment and medium | |
CN111694672A (en) | Resource allocation method, task submission method, device, electronic equipment and medium | |
CN112445820A (en) | Data conversion method and device | |
CN111414161B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN111209042B (en) | Method, device, medium and electronic equipment for establishing function stack | |
CN117391801A (en) | An item information display method, device, equipment and medium | |
CN112148448A (en) | Resource allocation method, device, equipment and computer readable medium | |
US20250251931A1 (en) | Method for data management, medium, and electronic device | |
CN119025383B (en) | Monitoring method, device, equipment and storage medium of DPU hybrid cluster | |
CN112631592B (en) | Data request method, device, apparatus, medium and program product | |
CN111309549B (en) | Monitoring method, monitoring system, readable medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |