Nothing Special   »   [go: up one dir, main page]

CN111381847A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN111381847A
CN111381847A CN201811644522.XA CN201811644522A CN111381847A CN 111381847 A CN111381847 A CN 111381847A CN 201811644522 A CN201811644522 A CN 201811644522A CN 111381847 A CN111381847 A CN 111381847A
Authority
CN
China
Prior art keywords
monitoring
page file
configuration information
client
page
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.)
Granted
Application number
CN201811644522.XA
Other languages
Chinese (zh)
Other versions
CN111381847B (en
Inventor
付萌
侯玉峰
彭伟春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811644522.XA priority Critical patent/CN111381847B/en
Publication of CN111381847A publication Critical patent/CN111381847A/en
Application granted granted Critical
Publication of CN111381847B publication Critical patent/CN111381847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides an information processing method and equipment. The method comprises the following steps: acquiring a page file which is requested to be accessed by a client; modifying the page file according to the monitoring configuration information; and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task. In the technical scheme provided by the application, the page file and the configuration information are maintained separately. When the monitoring configuration information needs to be updated, the monitoring configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.

Description

Information processing method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to an information processing method and device.
Background
With the continuous development of internet technology, more and more users select to obtain corresponding services provided by a server through a client. For example: the user sends a service request to the server through the client page, and the server processes the service request and returns a processing result to the client.
In order to monitor the performance of the client, in the prior art, a developer needs to fuse the operation logic related to page monitoring into a page file code when developing a page. Once the operating logic associated with page monitoring needs to be adjusted, the developer needs to rewrite the page file. Therefore, the prior art is not flexible enough, and the subsequent maintenance cost is increased.
Disclosure of Invention
In view of the above, the present application is proposed to provide an information processing method and apparatus that solve the above problems or at least partially solve the above problems.
Thus, in one embodiment of the present application, an information processing method is provided. The method comprises the following steps:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the monitoring configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
In yet another embodiment of the present application, an information processing method is provided. The method comprises the following steps: acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
In yet another embodiment of the present application, an electronic device is provided. The electronic device includes: a first memory and a first processor, wherein,
the first memory is used for storing programs;
the first processor, coupled with the first memory, to execute the program stored in the first memory to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the monitoring configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
In yet another embodiment of the present application, an electronic device is provided. The electronic device includes: a second memory and a second processor, wherein,
the second memory is used for storing programs;
the second processor, coupled to the second memory, is configured to execute the program stored in the second memory to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of an execution tool corresponding to the configuration information can be realized; the execution tool installed at the client may perform the corresponding task. Therefore, in the technical scheme provided by the application, the page file and the configuration information are maintained separately. When the configuration information needs to be updated, the configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a block diagram of an information processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an information processing method according to another embodiment of the present application;
fig. 4 is a block diagram of an information processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of an information processing apparatus according to another embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the specification, claims, and above-described figures of the present invention, a number of operations are included that occur in a particular order, which operations may be performed out of order or in parallel as they occur herein. The sequence numbers of the operations, e.g., 101, 102, etc., are used merely to distinguish between the various operations, and do not represent any order of execution per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
In the prior art, in order to monitor the performance of a client, a developer needs to integrate operation logic related to page monitoring into a page file code at a page development stage. That is, the finally developed pagefile already contains the running logic related to page monitoring. Once the operating logic related to page monitoring needs to be adjusted, a developer needs to rewrite the page file based on the adjusted operating logic related to page monitoring. Therefore, the prior art is not flexible enough, and the later maintenance cost is increased.
In order to improve the flexibility and reduce the later maintenance cost, the application provides an information processing method.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before introducing the information processing method provided by the present application, a system architecture on which the method provided by the present application is based is explained. As shown in fig. 1, the system provided in this embodiment includes: a client 101 and a server 102. Wherein,
the client 101 is configured to send a page access request to the server 102.
The server 102 is configured to obtain a page file requested to be accessed by the client 101 after receiving the page access request; modifying the page file according to the monitoring configuration information; and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to monitoring configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of a monitoring tool corresponding to the monitoring configuration information can be realized; the monitoring tool installed at the client can execute the corresponding content. Therefore, in the technical scheme provided by the application, the page file and the monitoring configuration information are maintained separately. When the monitoring configuration information needs to be updated, the monitoring configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
The specific workflow of each component, such as the client and the server, and the signaling interaction between the components in the information processing system provided in the embodiment of the present application will be further described in the following embodiments.
Fig. 2 is a schematic flowchart illustrating an information processing method according to an embodiment of the present application. The execution main body of the information processing method provided by the embodiment may be a server. The server may be a common server, a cloud, or a virtual server, and the like, which is not specifically limited in this embodiment of the present application. As shown in fig. 2, the method includes:
201. and acquiring the page file which is requested to be accessed by the client.
202. And modifying the page file according to the monitoring configuration information.
203. And sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
In the above 201, the client may generate a page access request in response to a page access operation of the user and send the page access request to the server. After receiving the page access request, the server obtains a page file corresponding to the page access request, for example: the corresponding page file may be obtained according to a URL (Uniform Resource Locator) carried in the page access request.
In 202, at present, a page file generally used is an HTML (HyperText Mark-up Language) file.
The monitoring configuration information may be understood as a file containing a piece of code regarding the operating logic required for performing the corresponding task. In one implementation, the monitoring configuration information may be a JS (JavaScript, interpreted scripting language) file, such as: SDK (Software Development Kit) file for page monitoring.
The server side can simultaneously acquire the page file and the monitoring configuration information after receiving the page access request sent by the client side. And modifying the page file according to the monitoring configuration information to complete corresponding configuration.
In 203, the modified page file is sent to the client. And after receiving the modified page file, the client loads a target page and installs a monitoring tool corresponding to the monitoring configuration information according to the modified page file.
The monitoring tool may be used to perform page monitoring tasks, such as: the monitoring tool can be used for monitoring the execution condition related to the service request generated by the target page, and monitoring the resource loading condition, page fault information and the like related to the target page. And/or the monitoring tool may be used to obtain certain parameters for addition to business requests generated through the target page, and the like. Wherein, the specific parameters may be: a second monitoring identification for identifying the second monitoring data. The second monitoring data is obtained by monitoring the execution condition related to the service request by the client.
It should be noted that the second monitoring data may be obtained by the client monitoring the execution condition related to the service request based on the monitoring tool. Of course, the client may not monitor the execution condition related to the service request based on the monitoring tool to obtain the second monitoring data.
In practical application, when the monitoring tool is a third-party tool, the configurable monitoring tool has two acquisition modes for the convenience of a business party: silent acquisition mode and non-silent acquisition mode. Silent acquisition mode refers to: the monitoring tool installed on the client can automatically collect data; the non-silent acquisition mode refers to: the monitoring tool installed on the client cannot automatically collect data, and can collect data only when the client calls the interface of the monitoring tool. Specifically, the corresponding monitoring configuration information may be written for the silent acquisition mode and the non-silent acquisition mode, respectively. The service side can set corresponding monitoring configuration information at the service side according to the requirement of the service side.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to monitoring configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of a monitoring tool corresponding to the monitoring configuration information can be realized; the monitoring tool installed at the client can execute the corresponding content. Therefore, in the technical scheme provided by the application, the page file and the monitoring configuration information are maintained separately. When the monitoring configuration information needs to be updated, the monitoring configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
In an implementation scheme, the "modifying the pagefile according to the monitoring configuration information" in the foregoing 102 specifically includes: and inserting the monitoring configuration information into the page file. In general, a pagefile includes: a header head and a body. The monitoring configuration information may be added to the header head or body of the file. It is considered that inserting the monitoring configuration information into the header head affects the client page loading speed. In implementation, the monitoring configuration information may be inserted into the body of the file. In this way, the extension of the loading speed of the page due to the loading of the monitoring tool can be avoided.
In order to modify the page file, a probe agent can be installed at the server. Thus, the "modifying the page file according to the monitoring configuration information" in the foregoing 102 specifically includes: and modifying the byte codes of the page file by using a probe agent so as to inject the monitoring configuration information into the page file.
At present, most of applications of the server side are based on java language (object-oriented programming language). In the java language environment, the probe agent is java agent.
It is necessary to supplement that after the probe agent is installed at the server, the application of the server needs to be restarted to enable the configuration of the probe agent to be effective. The mechanism for installing the probe agent and modifying the bytecode by the probe agent can be found in the prior art, and is not described in detail herein.
And installing an agent probe at the server, wherein the probe is used for inserting the SDK at the front end into the Body of the HTML page on one hand, and monitoring the application condition at the back end in real time on the other hand. Therefore, the monitoring of the client and the server is realized, and only one agent needs to be installed on the server.
Further, the method may further include:
204. and receiving a service request which is sent by the client and generated by the target page.
205. And generating a first monitoring identifier based on the service request.
206. And tracking a response process aiming at the service request by combining the first monitoring identifier so as to obtain first monitoring data of the first monitoring identifier.
Currently, with the expansion of internet architecture, distributed systems become increasingly complex, and more components begin to be distributed, such as microservices, messaging, distributed databases, distributed caches, distributed object storage, and cross-domain calling, and these components together form a complex distributed network. When a client sends a certain service request to a server, the server may have tens or even more services invoked. In order to track the complete streaming process of a service request, the service end generates or allocates a globally unique first monitoring identifier (e.g., traceId) to the service request, and when the service request invokes another service, the first monitoring identifier is passed through, thereby implementing the tracking of the invocation link corresponding to the service request.
In 204, the client may generate a corresponding service request in response to the operation of the user. The service request may be a login request, a payment request, a modification request, etc.
In 205, a globally unique random number may be generated, and the random number may be used as the first monitoring flag.
In an implementation scheme, the service request carries a second monitoring identifier for identifying second monitoring data; the second monitoring data may be obtained by the client monitoring the execution condition related to the service request based on the monitoring tool. In 205, "generating a first monitoring identifier based on the service request" specifically includes: and generating the first monitoring identifier according to the second monitoring identifier.
Wherein the second monitoring data may comprise at least one of: the interface name requested by the service request, the success or failure information of the service request, the initiating time point of the service request, the return content corresponding to the service request, the return time point of the return content, the resource loading condition and the page fault information.
Specifically, the second monitoring identifier may include: a session identification and a service request identification. A session is understood to be a process from page loading to page closing, a session identifier may uniquely identify a session, and a service request identifier may uniquely identify a service request. The client may send out a plurality of service requests in one session, and the plurality of second tracking identifiers corresponding to the plurality of service requests will include the same session identifier. It can be seen that, a plurality of second monitoring data corresponding to a plurality of service requests related to one session may be associated together through the session identifier in the second monitoring identifier. Therefore, when the problem of the service request with the problem is checked subsequently, the operation of the user on the page can be determined by combining other service requests which have a precedence relation with the service request.
It should be added that, in order to truly restore the operating environment of the user at the client side in the subsequent problem troubleshooting process, the client may further use the session identifier to mark the monitoring information, such as the IP address, the browser information, and the terminal information, of the client monitored in the session identified by the session identifier, and upload the session identifier and the monitoring information, such as the IP address, the browser information, and the terminal information, of the client monitored in the session identified by the session identifier to the server side for storage.
In a specific implementation, the step of generating the first monitoring identifier according to the second monitoring identifier may be implemented in one or more of the following manners:
the method comprises the following steps: and taking the second monitoring identification as the first monitoring identification.
The second method comprises the following steps: and taking the service request identifier in the second monitoring identifier as the first monitoring identifier. The service request identifier is globally unique, so that the service request identifier can be used as a first monitoring identifier to globally uniquely identify the first monitoring data.
In 206, the first monitoring data is identified by a first monitoring identity. And subsequently, first monitoring data can be obtained according to the first monitoring identification. And analyzing a complete call link corresponding to the corresponding service request according to the first monitoring data.
The inventor finds out through analysis that: the client and the server in the same service system are two interacting parties, so the "behavior" of one party necessarily affects the operation of the other party. That is, when positioning a problem, not only the operation condition of the local end but also the corresponding operation condition of the opposite end should be considered. However, in the existing monitoring scheme, the client monitoring system and the server monitoring system are performed independently, so that there is no correlation between the client tracking data and the server tracking data. Namely, the problem investigation from the front end to the back end and the problem investigation from the back end to the front end cannot be realized based on the existing monitoring scheme. For example: the user finds out that a problem exists in a certain interface in front-end monitoring, and the problem where the user wants to locate the back end cannot be located.
In order to realize the omnibearing stereoscopic monitoring from the client to the server, the method may further include:
107. and associating the first monitoring identification with the second monitoring identification.
And the second monitoring identifier is carried in the service request. The server may extract the second monitoring identifier from the service request, and associate the first monitoring identifier with the second monitoring identifier. And associating the first monitoring identifier with the second monitoring identifier to realize the association of the first monitoring data and the second monitoring data.
It should be noted that, when the second monitoring identifier is used as the first monitoring identifier or the service request identifier in the second monitoring identifier is used as the first monitoring identifier, it is not necessary to associate the first monitoring identifier with the second monitoring identifier. This is because: according to the first monitoring identification, the second monitoring identification can be matched; according to the second monitoring identification, the first monitoring identification can be matched, and the association of the first monitoring data and the second monitoring data is also realized.
The association of the first monitoring data and the second monitoring data provides convenience for problem troubleshooting from the client to the server and from the server to the client subsequently.
What needs to be supplemented is: the client may add the second monitoring identifier to a request header of the service request, so as to ensure that the server can normally respond to the service request. In addition, when the monitoring tool is in the silent acquisition mode, the monitoring tool can automatically acquire the second monitoring identifier. When the monitoring tool is in the non-silent acquisition mode, the client needs to acquire the second monitoring identifier through an interface provided by the monitoring tool. This ensures that: in the non-silent acquisition mode, the second monitoring identifier added to the service request meets the specification, otherwise, the service party is randomly specified, and the added content and other service requests are repeated, so that the situation that data confusion cannot be positioned occurs.
To sum up, in the technical scheme provided by the application, the page file and the monitoring configuration information are maintained separately. When the monitoring configuration information needs to be updated, the monitoring configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
Before introducing the information processing method provided by the present application, a system architecture on which the method provided by the present application is based is explained. As shown in fig. 1, the system provided in this embodiment includes: a client 101 and a server 102. Wherein,
the client 101 is configured to send a page access request to the server 102.
The server 102 is configured to obtain a page file requested to be accessed by a client; modifying the page file according to the configuration information; and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of an execution tool corresponding to the configuration information can be realized; the execution tool installed at the client may perform the corresponding task. Therefore, in the technical scheme provided by the application, the page file and the configuration information are maintained separately. When the configuration information needs to be updated, the configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
The specific workflow of each component, such as the client and the server, and the signaling interaction between the components in the information processing system provided in the embodiment of the present application will be further described in the following embodiments.
Fig. 3 is a flowchart illustrating an information processing method according to another embodiment of the present application. The execution main body of the information processing method provided by the embodiment may be a server. The server may be a common server, a cloud, or a virtual server, and the like, which is not specifically limited in this embodiment of the present application. As shown in fig. 3, the method includes:
301. and acquiring the page file which is requested to be accessed by the client.
302. And modifying the page file according to the configuration information.
303. And sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
In 301, the client may generate a page access request in response to a page access operation of the user and send the page access request to the server. After receiving the page access request, the server obtains a page file corresponding to the page access request, for example: the corresponding page file may be obtained according to a URL (Uniform Resource Locator) carried in the page access request.
In 302, a currently used page file is an HTML (HyperText Mark-up Language) file.
Configuration information may be understood as a file containing a piece of code for the execution logic required for performing the corresponding task. In one implementation, the configuration information may be a JS (JavaScript, interpreted scripting language) file, such as: SDK (Software Development Kit) files for page monitoring, SDK files for mobile payment, SDK files for image recognition.
The server side can simultaneously acquire the page file and the configuration information after receiving the page access request sent by the client side. And modifying the page file according to the configuration information to complete corresponding configuration.
In 303, the modified pagefile is sent to the client. And after receiving the modified page file, the client loads a target page and installs an execution tool corresponding to the configuration information according to the modified page file.
The tasks that can be executed by the execution tools corresponding to different configuration information are different, for example: the execution tool corresponding to the SDK file for monitoring can execute the page monitoring task; and the execution tool corresponding to the SDK file for mobile payment can execute the mobile payment task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of an execution tool corresponding to the configuration information can be realized; the execution tool installed at the client may perform the corresponding task. Therefore, in the technical scheme provided by the application, the page file and the configuration information are maintained separately. When the configuration information needs to be updated, the configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
In an implementation scheme, the "modifying the pagefile according to the configuration information" in the foregoing 102 specifically includes: the configuration information is inserted into the pagefile. In general, a pagefile includes: a header head and a body. The configuration information may be added to the header head or body of the file. In consideration of the fact that the insertion of the configuration information into the header head affects the page loading speed of the client, the configuration information may be inserted into the body of the file in the specific implementation. In this way, lengthening of the loading speed of a page by loading the execution tool may be avoided.
In order to modify the page file, a probe agent can be installed at the server. Thus, the "modifying the page file according to the configuration information" in the above 102 specifically includes: and performing byte code modification on the page file by using a probe agent so as to inject the configuration information into the page file.
At present, most of applications of the server side are based on java language (object-oriented programming language). In the java language environment, the probe agent is java agent.
It is necessary to supplement that after the probe agent is installed at the server, the application of the server needs to be restarted to enable the configuration of the probe agent to be effective. The mechanism for installing the probe agent and modifying the bytecode by the probe agent can be found in the prior art, and is not described in detail herein.
Here, it should be noted that: the method provided in the embodiment of the present application may include all or part of the steps in the embodiments in addition to the steps described above, and specific reference may be made to corresponding contents in the embodiments above, which are not described herein again.
Fig. 4 shows a block diagram of an information processing apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a first obtaining module 401, configured to obtain a page file requested to be accessed by a client;
a first modifying module 402, configured to modify the page file according to the monitoring configuration information;
a first sending module 403, configured to send the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to monitoring configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of a monitoring tool corresponding to the monitoring configuration information can be realized; the monitoring tool installed at the client can execute the corresponding content. Therefore, in the technical scheme provided by the application, the page file and the monitoring configuration information are maintained separately. When the monitoring configuration information needs to be updated, the monitoring configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
Further, the first modification module 402 is specifically configured to: and inserting the monitoring configuration information into a file body of the page file.
Further, the first modification module 402 is specifically configured to: and modifying the byte codes of the page file by using a probe agent so as to inject the monitoring configuration information into the page file.
Further, the above apparatus further includes:
the first receiving module is used for receiving a service request which is sent by the client and generated by the target page;
the first generation module is used for generating a first monitoring identifier based on the service request;
and the first tracking module is used for tracking a response process aiming at the service request by combining the first monitoring identifier so as to obtain first monitoring data of the first monitoring identifier.
Further, the service request carries a second monitoring identifier for identifying second monitoring data; the second monitoring data is obtained by monitoring the execution condition related to the service request by the client based on the monitoring tool;
the above-mentioned device still includes:
and the first association module is used for associating the first monitoring identifier with the second monitoring identifier.
Further, the first generating module is specifically configured to:
and generating the first monitoring identifier according to the second monitoring identifier.
Further, the second monitoring identifier includes: a session identification and a service request identification.
Further, the second monitoring data comprises at least one of: the interface name requested by the service request, the success or failure information of the service request, the initiating time point of the service request, the return content corresponding to the service request, the return time point of the return content, the resource loading condition and the page fault information.
Here, it should be noted that: the information processing apparatus provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, and is not described herein again.
Fig. 5 is a block diagram showing a configuration of an information processing apparatus according to still another embodiment of the present application. As shown in fig. 5, the apparatus includes:
a second obtaining module 501, configured to obtain a page file requested to be accessed by a client;
a second modifying module 502, configured to modify the page file according to the configuration information;
a second sending module 503, configured to send the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
According to the technical scheme provided by the embodiment of the application, when a user requests to acquire a page file for loading a target page, the page file requested to be acquired by a client is modified according to configuration information, and then the modified page file is fed back to the client; the client loads the modified page file, so that the installation of an execution tool corresponding to the configuration information can be realized; the execution tool installed at the client may perform the corresponding task. Therefore, in the technical scheme provided by the application, the page file and the configuration information are maintained separately. When the configuration information needs to be updated, the configuration information can be directly updated without rewriting page file codes. Compared with the prior art, the technical scheme provided by the application is more flexible, and the later maintenance cost is effectively reduced.
Further, the second modifying module 502 is specifically configured to:
and inserting the configuration information into a file body of the page file.
Further, the second modifying module 502 is specifically configured to:
and performing byte code modification on the page file by using a probe agent so as to inject the configuration information into the page file.
Here, it should be noted that: the information processing apparatus provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, and is not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes: a first memory 1201 and a first processor 1202. The first memory 1201 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The first memory 1201 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The first processor 1202, coupled to the first memory 1201, is configured to execute the program stored in the first memory 1201, so as to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the monitoring configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
When executing the program in the first memory 1201, the first processor 1202 may also implement other functions in addition to the above functions, which may be specifically referred to the description of the foregoing embodiments.
Further, as shown in fig. 6, the electronic device further includes: a first communication component 1203, a first display 1204, a first power component 1205, a first audio component 1206, and the like. Only some of the components are schematically shown in fig. 6, and the electronic device is not meant to include only the components shown in fig. 6.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the information processing method provided in the foregoing embodiments when executed by a computer.
Fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device includes a second memory 1301 and a second processor 1302. The second memory 1301 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The second memory 1201 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The second processor 1302, coupled to the second memory 1301, is configured to execute the program stored in the second memory 1301 to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
When executing the program in the second memory 1301, the second processor 1302 may also implement other functions in addition to the above functions, which may be specifically referred to in the description of the foregoing embodiments.
Further, as shown in fig. 7, the electronic device further includes: a second communication component 1303, a second display 1304, a second power component 1305, a second audio component 1306, and other components. Only some of the components are schematically shown in fig. 7, and the electronic device is not meant to include only the components shown in fig. 7.
Accordingly, the embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the information processing method provided in the foregoing embodiments when executed by a computer.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. An information processing method characterized by comprising:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the monitoring configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
2. The method of claim 1, wherein modifying the pagefile according to monitoring configuration information comprises:
and inserting the monitoring configuration information into a file body of the page file.
3. The method of claim 1, wherein modifying the pagefile according to monitoring configuration information comprises:
and modifying the byte codes of the page file by using a probe agent so as to inject the monitoring configuration information into the page file.
4. The method of any of claims 1 to 3, further comprising:
receiving a service request which is sent by the client and generated through the target page;
generating a first monitoring identifier based on the service request;
and tracking a response process aiming at the service request by combining the first monitoring identifier so as to obtain first monitoring data of the first monitoring identifier.
5. The method according to claim 4, wherein the service request carries a second monitoring identifier for identifying second monitoring data; the second monitoring data is obtained by monitoring the execution condition related to the service request by the client based on the monitoring tool;
the method further comprises the following steps:
and associating the first monitoring identification with the second monitoring identification.
6. The method of claim 5, wherein generating the first monitoring identity based on the service request comprises:
and generating the first monitoring identifier according to the second monitoring identifier.
7. The method of claim 5, wherein the second monitoring flag comprises: a session identification and a service request identification.
8. The method of claim 5, wherein the second monitoring data comprises at least one of: the interface name requested by the service request, the success or failure information of the service request, the initiating time point of the service request, the return content corresponding to the service request, the return time point of the return content, the resource loading condition and the page fault information.
9. An information processing method characterized by comprising:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
10. The method of claim 9, wherein modifying the pagefile according to configuration information comprises:
and inserting the configuration information into a file body of the page file.
11. The method of claim 9 or 10, wherein modifying the pagefile according to configuration information comprises:
and performing byte code modification on the page file by using a probe agent so as to inject the configuration information into the page file.
12. An electronic device, comprising: a first memory and a first processor, wherein,
the first memory is used for storing programs;
the first processor, coupled with the first memory, to execute the program stored in the first memory to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the monitoring configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs a monitoring tool corresponding to the monitoring configuration information to execute a corresponding task.
13. An electronic device, comprising: a second memory and a second processor, wherein,
the second memory is used for storing programs;
the second processor, coupled to the second memory, is configured to execute the program stored in the second memory to:
acquiring a page file which is requested to be accessed by a client;
modifying the page file according to the configuration information;
and sending the modified page file to the client, so that the client loads a target page according to the modified page file and installs an execution tool corresponding to the configuration information to execute a corresponding task.
CN201811644522.XA 2018-12-29 2018-12-29 Information processing method and device Active CN111381847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811644522.XA CN111381847B (en) 2018-12-29 2018-12-29 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811644522.XA CN111381847B (en) 2018-12-29 2018-12-29 Information processing method and device

Publications (2)

Publication Number Publication Date
CN111381847A true CN111381847A (en) 2020-07-07
CN111381847B CN111381847B (en) 2023-04-25

Family

ID=71219433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811644522.XA Active CN111381847B (en) 2018-12-29 2018-12-29 Information processing method and device

Country Status (1)

Country Link
CN (1) CN111381847B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112700707A (en) * 2020-12-28 2021-04-23 中孚安全技术有限公司 Data transmission education demonstration system and method based on sound card
CN113505036A (en) * 2021-05-25 2021-10-15 建信金融科技有限责任公司 Application monitoring method, client and server
CN115794201A (en) * 2022-11-03 2023-03-14 中国石油天然气集团有限公司 Method and device for determining drilling conditions, server and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068560A1 (en) * 2002-10-02 2004-04-08 Yossi Oulu System and methods for monitoring application server performance
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
EP3021523A1 (en) * 2014-11-12 2016-05-18 Bull S.A.S. Method and system for application supervision
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
CN108304312A (en) * 2017-01-11 2018-07-20 阿里巴巴集团控股有限公司 A kind of test method and device of webpage loading velocity
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN108616575A (en) * 2018-04-08 2018-10-02 平安普惠企业管理有限公司 Operate monitoring method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068560A1 (en) * 2002-10-02 2004-04-08 Yossi Oulu System and methods for monitoring application server performance
EP3021523A1 (en) * 2014-11-12 2016-05-18 Bull S.A.S. Method and system for application supervision
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
CN108304312A (en) * 2017-01-11 2018-07-20 阿里巴巴集团控股有限公司 A kind of test method and device of webpage loading velocity
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN108616575A (en) * 2018-04-08 2018-10-02 平安普惠企业管理有限公司 Operate monitoring method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112700707A (en) * 2020-12-28 2021-04-23 中孚安全技术有限公司 Data transmission education demonstration system and method based on sound card
CN113505036A (en) * 2021-05-25 2021-10-15 建信金融科技有限责任公司 Application monitoring method, client and server
CN113505036B (en) * 2021-05-25 2023-04-14 中国建设银行股份有限公司 Application monitoring method, client and server
CN115794201A (en) * 2022-11-03 2023-03-14 中国石油天然气集团有限公司 Method and device for determining drilling conditions, server and readable storage medium
CN115794201B (en) * 2022-11-03 2024-02-27 中国石油天然气集团有限公司 Method and device for determining drilling conditions, server and readable storage medium

Also Published As

Publication number Publication date
CN111381847B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN109787830B (en) Gray scale distribution control method, device, system, electronic device and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN111159614B (en) Webpage resource acquisition method and device
CN111381847B (en) Information processing method and device
CN111930472B (en) Code debugging method and device, electronic equipment and storage medium
CN111176941B (en) Data processing method, device and storage medium
CN112068902B (en) Plug-in calling method and device, electronic equipment and storage medium
US20180159724A1 (en) Automatic task tracking
CN112286776A (en) Method and system for tracking micro-service link
CN104504587A (en) Advertisement monitoring method and device, electronic apparatus
CN109327530B (en) Information processing method, device, electronic equipment and storage medium
CN108345508B (en) Interface call testing method and device
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113535568B (en) Verification method, device, equipment and medium for application deployment version
CN115016995A (en) Interface testing method, computer device and computer storage medium
CN104978199B (en) A kind of plug-in application method and apparatus for a variety of browsers
CN112973129A (en) Game deployment method and device, electronic equipment and computer-readable storage medium
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium
CN110601926A (en) Statistical method and device for throughput of Web service end system
CN113364614B (en) Request processing method, device, server, storage medium and program product
CN113805968B (en) Function execution method and device of application program, computer equipment and storage medium
CN113901377B (en) Service calling method, device, storage medium and equipment of legacy system
CN117193907B (en) Page processing method and device
CN110866211B (en) Method and device for processing abnormal page of client
WO2009037106A2 (en) Mobile phone code debugging method and apparatus

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