Smart span prioritization based on insertion service backpressure

The system automatically instruments web applications to collect detailed telemetry data across distributed systems, addressing inefficiencies in existing solutions by prioritizing spans and maintaining context across threads and servers.

JP2026031967APending Publication Date: 2026-02-25ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025182521
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-09-13
Filing Date
2025-10-29
Publication Date
2026-02-25

AI Technical Summary

Technical Problem

Existing solutions for capturing telemetry data across multiple servers, platforms, or threads in web-based applications are inefficient, requiring manual instrumentation and lacking in scalability and flexibility.

Method used

A system that automatically instruments web applications by detecting events and server calls, enabling telemetry data collection across distributed systems, prioritizes spans to minimize network congestion, and maintains instrumentation context across threads and servers.

Benefits of technology

Enables detailed, automated telemetry data collection across heterogeneous distributed systems, reducing network congestion and enhancing instrumentation efficiency without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026031967000001_ABST
    Figure 2026031967000001_ABST
Patent Text Reader

Abstract

To provide a method and system for automatically instrumenting a web application.SOLUTION: The method identifies that a web application includes an event triggered by a user interaction, logs tracing information based on execution of a first set of operations caused by the event, associates the event with a tracer that obtains a first measurement of performance of a first span, identifies in code that the execution of the first set of operations causes a request to be made to a server, and associates the request with the tracer. The tracer logs tracing information based on the execution of the second set of operations caused by the request to obtain a second measurement of performance of a second span that is a child span of the first span.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS background As web-based applications evolve, traditional tracer applications will be unable to capture accurate telemetry data across multiple servers, multiple platforms, or multiple threads. The disclosed solution facilitates improved telemetry capabilities and analytics that overcome these deficiencies. Summary of the Invention

[0002] overview In one aspect, a method for automatically instrumenting a web application includes identifying from code of the web application that the web application includes an event triggered by a user interaction. The method further includes associating the event with a tracer. The tracer is configured to log tracing information based on execution of a first set of operations caused by the event to obtain a first measure of performance of the first span. The first span includes the first set of operations. The first measure of performance includes one or more of (i) a number of processing cycles to execute the first set of operations and (ii) an execution time of the first set of operations. The method further includes identifying in the code that execution of the first set of operations causes a request to be made to a server. The method includes associating the request with the tracer. The tracer is configured to log tracing information based on execution of a second set of operations caused by the request to obtain a second measure of performance of the second span. The second span includes the second set of operations. The second span is a child span of the first span. The second measure of performance includes one or more of (i) the number of processing cycles to execute the second set of operations and (ii) the execution time of the second set of operations.

[0003] In an aspect, the method further includes receiving a priority of the first span, determining that the priority is outside a priority tolerance range, and treating the first span as a proxy span based on the determining. Treating the first span as a proxy span causes the tracer to not log information based on execution of the first set of operations.

[0004] In an aspect, the method further includes accessing the updated priority of the first span and, in response to determining that the updated priority is within a priority tolerance, instantiating a tracer and newly considering the first span as a span.

[0005] In an aspect, a method includes instantiating a tracer and a tracer based on the start of a web application. The method further includes automatically logging the start of a first span based on the triggering of an event. The method further includes automatically logging the start of a second span based on the triggering of a request. The method further includes automatically logging the end of a second span based on the completion of a second set of operations. The method further includes automatically logging the end of a first span based on the completion of the first set of operations.

[0006] In an aspect, the method further includes sending the request to the external server based on the trigger of the request. The method further includes automatically logging the start of the second span on the external server based on the sending. Executing the second set of operations on the external server. The method further includes automatically logging the completion of the second span on the external server. The method further includes receiving an indication of the completion of the second span from the external server.

[0007] In an aspect, the method includes accessing a priority of the first span. The method further includes instantiating a tracer based on the priority of the first span and the start of the web application. The method further includes automatically logging the start of a second span based on the triggering of a request. The method further includes automatically logging the end of the second span based on the completion of a second set of operations.

[0008] In an aspect, the request causes the server to perform a second set of operations. The method further includes automatically logging the end of the second span by receiving a header from the server that includes information about the second span.

[0009] The above methods may be implemented as a tangible computer-readable medium and / or operable within a computer processor and associated memory. [Brief explanation of the drawings]

[0010] [Figure 1] 1 illustrates an example system for automatically instrumenting enterprise applications with telemetry according to aspects of the present disclosure. [Figure 2] 1 illustrates an example of a process used to collect telemetry data, according to an aspect of the present disclosure. [Figure 3] 1 illustrates an example of an instrumented application for generating span contexts in accordance with certain aspects of the present disclosure. [Figure 4] 1 illustrates an example of a span hierarchy, according to an aspect of the present disclosure. [Figure 5] 1 illustrates a tracer component used to generate span context and logs within an instrumented application according to certain aspects of the present disclosure. [Figure 6] 1 illustrates an example tracing architecture used to manage backpressure caused by instrumentation of spans, according to certain aspects of the present disclosure. [Figure 7] 1 illustrates an example of a prioritized span hierarchy in accordance with certain aspects of the present disclosure. [Figure 8] 1 illustrates an example process for prioritizing spans according to certain aspects of the present disclosure. [Figure 9] 1 illustrates an example of a distributed tracing environment with traceworker clients, according to certain aspects of the present disclosure. [Figure 10] 1 illustrates an example process for instrumenting threads according to certain aspects of the present disclosure. [Figure 11] 1 is an example of a process for propagating tracing across a distributed software application in accordance with certain aspects of the present disclosure. [Figure 12] 1 illustrates an example of propagating span context across services in a distributed system in accordance with certain aspects of the present disclosure. [Figure 13] 10 illustrates an example header in accordance with certain aspects of the present disclosure. [Figure 14] 1 shows a simplified diagram of a distributed system for implementing one of the aspects. [Figure 15] FIG. 1 is a simplified block diagram of components of a system environment in which services provided by components of an embodiment of the system may be provided as cloud services, according to an embodiment. [Figure 16] 1 illustrates an exemplary computing subsystem in which various aspects of the present invention may be implemented. DETAILED DESCRIPTION OF THE INVENTION

[0011] Detailed Description The technology disclosed herein provides a solution for automatically providing telemetry capabilities for enterprise applications. Telemetry refers to the collection of performance data reports about the runtime execution of software. Such data may include how frequently specific features on a web page or application are used, startup or execution time measurements, whether operations crashed, failure information, and user experience. Telemetry data can be collected on an application-by-application basis, or at a more granular level, such as runtime metrics about how long each operation on a web page takes to complete. The disclosed solution enables access to the telemetry data using API (Application Programmer Interface) functionality.

[0012] As noted, existing solutions have deficiencies. For example, some existing solutions may require developers to manually import or link a tracing library and then add one or more function calls in the portion of the code for which instrumentation data is desired. In addition, such solutions require developers to select instrumentation libraries from one or more vendors and configure those libraries. In contrast, the disclosed solution automatically instruments web-based applications by detecting events and calls to a server in the code and automatically instrumenting those events.

[0013] In certain aspects, the disclosed system can automatically instrument enterprise applications without requiring input from software developers. Certain aspects of the present disclosure relate to software development tools that provide a runtime telemetry framework that can be automatically incorporated into custom applications designed by software developers. For example, the software development tool can automatically inject tracing functionality into enterprise applications. The tracing functionality automatically tracks operations such as user interactions, page navigation, and server calls, and stitches together related logical transactions to enable end-to-end tracing from a user's clicks on a web page, including distributed server systems (heterogeneous or otherwise) that implement back-end services.

[0014] In another aspect, the disclosed system enables prioritization of one or more spans and one or more messages related to those spans to minimize network congestion that can be caused by large amounts of instrumentation data. For example, at or before runtime, a particular span can be given a low priority, preventing instrumentation from measuring the performance of that particular span while continuing to collect data about child spans that may be of great interest to developers.

[0015] In yet another aspect, the disclosed solution includes enabling a web-based application developer to obtain detailed instrumentation for one or more processes running as part of an enterprise application, regardless of whether those processes contain multiple threads. During application runtime, the telemetry framework facilitates instrumentation across different processes, different threads, and different servers. In this way, instrumentation context is maintained across threads, allowing for more granular instrumentation data.

[0016] In another aspect, the disclosed system may be configured to utilize a tracing feature for security requirements or other reasons. The disclosed system facilitates telemetry across distributed systems, including distributed servers that do not automatically allow instrumentation indicated by the protocol header. More specifically, certain aspects can automatically discover protocol support and tailor the injection of tracing information into different calls based on protocol support. This enables the disclosed system to obtain detailed telemetry data about processes running on remote servers, particularly those accessed by cross-domain requests. Such servers may be operated by different entities in different domains.

[0017] FIG. 1 illustrates an example system for automatically instrumenting enterprise applications with telemetry according to an embodiment of the present disclosure. FIG. 1 illustrates a developer computing device 110, an end-user computing device 130, a network 150, and servers 140a-140n. In the example illustrated in FIG. 1, developer computing device 110 builds and deploys an instrumented application 120 to server 140a. Server 140a then serves the application to end-user computing device 140. An example process used by an instrumented application to obtain telemetry data is illustrated in FIG. 2. An example instrumented application is illustrated in FIG. 3. Suitable computing devices for developer computing device 110 and end-user computing device 140 include the computing devices illustrated as client computing devices 1402, 1404, 1406, and 1408, and suitable servers include server 1412 illustrated in FIG. 14.

[0018] During or in conjunction with the execution of the instrumented application 120, the end user's computing device 140 may connect with one or more servers 140b-140n to obtain various resources (e.g., images, scripts, etc.) and / or perform instrumentation functions. During or after the execution of the instrumented application 120, telemetry data 122 is returned to the developer's computing device 110 for analysis.

[0019] The developer computing device 110 includes one or more of a developer's IDE (Integrated Development Environment) 112, back-end developer tools 114, a console 116, and telemetry data 122. The developer's IDE 112 is a graphical development tool that provides compiling, linking, debugging, tracing, and other functions. The back-end developer tools 114 may include one or more compilers, one or more linkers, one or more debuggers, one or more simulators, etc. The console 116 is used to view telemetry data 122 obtained by running the instrumented application 120. As shown, the telemetry data 122 includes data indicating that a particular web page ran on "Server 1" and took 0.5 seconds, that an image load ran on "Server 2" and took 0.4 seconds, and that a button click was triggered and took 0.2 seconds to process.

[0020] Servers 140a-140n may be configured to perform the same, similar, or different functions. For example, servers 140a-140n may operate as a distributed server system. In another example, servers 140a-140n may be web servers, file servers, or other servers capable of serving one or more components from web pages or receiving database queries and providing the results. In some cases, servers 140a-140n may be under the control of different entities (companies or individuals) and / or may be located in different locations. Accordingly, certain aspects described herein relate to obtaining telemetry data across different servers via span context propagation. Developer computing device 110, end user computing device 140, network 150, and servers 140a-140n can be connected across one or more connections, such as network 150. Network 150 can include wired networks, wireless networks, the Internet, and the like.

[0021] The end user's computing device 130 includes a web application 134 (e.g., a web page), a web browser 132, and a tracer application 136. The web application 134 can be rendered by the web browser 132. The tracer application 136, which is part of the web application 134, provides instrumentation functionality. For example, the tracer application 136 collects telemetry data. The telemetry data can be exported to an external device periodically or on demand. The telemetry data can include how frequently a particular function is used, startup or execution time measurements, whether a process crashed, failure information, and user type.

[0022] In one example, a software developer builds a custom web-based application using a developer's IDE 112 and back-end developer tools 114. In particular, the software tools running on the developer's computing device 110 insert code that provides telemetry functionality (e.g., tracer code) to generate an instrumented application 120. In some cases, the instrumented application 120 can be sent directly from the developer's computing device 110 to an end-user's computing device 140. In other cases, the instrumented application 120 is sent directly to a server 140a-140n, where the instrumented application 120 is hosted and later downloaded by the end-user's computing device 140.

[0023] An end-user computing device 140 accesses an application from server 140a, for example, across network 150. A user operating end-user computing device 140 interacts with the application, which causes end-user computing device 140 to access one or more of servers 140a-140n. The one or more servers then serve all or part of the application to end-user computing device 140. End-user computing device 140 performs a telemetry function that instruments actions directly (e.g., clicks, refreshes) or indirectly (e.g., loading of an image linked from a page) caused by user interactions with the application. This allows for more detailed telemetry information to be available than previous solutions. Telemetry data 122 is collected by one or more servers 140a-140n.

[0024] As mentioned, certain aspects relate to obtaining telemetry information from an enterprise application. To facilitate telemetry, one or more spans are created within the enterprise application. As used herein, a span refers to a collection of named operations that represent a unit of work. A particular span may refer to a process. A span has a span context. As used herein, a span context may include a trace identifier and a span identifier. Thus, a first process may have a first span, a second process may have a second span, and so on. If a second process is invoked by a span in a different process, the first span is the parent and the second span is the child, and so the first and second spans are related by a parent-child relationship. Tracking spans in different processes facilitates more detailed instrumentation.

[0025] Particular figures and their associated descriptions further explain particular aspects. For example, Figures 4-5 are diagrams relating to different aspects of span instrumentation. Figures 6-8 are diagrams relating to prioritizing various spans during instrumentation. Figures 9 and 10 are diagrams relating to instrumenting threads. Figures 11-13 are diagrams relating to propagating span context across different devices. Figures 14-16 are diagrams illustrating various computing systems in which instrumentation functionality can be implemented.

[0026] Instrumentation of web-based enterprise applications 2 illustrates an example process 200 used to collect telemetry data according to an embodiment of the present disclosure. Process 200 may be performed by developer computing device 110 and one or more of servers 140a-140n.

[0027] In block 202, process 200 provides a web page application to a web browser on a client device. For example, server 140a serves web application 134 to web browser 132. Web application 134 includes tracer application 136, which provides instrumentation. Web application 134 has been instrumented with tracer application 136 prior to process 200.

[0028] At block 204, process 200 includes detecting the start of a web page application. Web browser 132 begins execution of web application 134 and tracer application 136. Server 140a can detect the start of execution by determining that web browser 132 has requested one or more resources.

[0029] At block 206, the process 200 includes instantiating a tracer application 136 based on the initiation of the web page application. The tracer application 136 is configured to log tracing data of the web application 134.

[0030] At block 208, the process 200 includes detecting an event initiated by an interaction with the web page application. The web application 134 continues to run and an event is triggered. The event may include a user interface interaction, a click, a navigation, a mouseover, a refresh, etc. Additionally, the event may be Representational State Transfer (REST).

[0031] At block 210, the process 200 includes automatically logging the start of the span based on the detection. The logging action associates the span with a tracer application 136. The tracer application 136 causes the span corresponding to the event to be logged.

[0032] At block 212, the process 200 includes performing an operation corresponding to the event. The web browser 132 executes code corresponding to the event, such as loading an image or resource.

[0033] At block 214, process 200 includes automatically logging the end of the span based on the completion of the operation corresponding to the event. When the code referenced in block 212 completes, tracer application 136 logs the end of the span. Data collected may include processing cycles utilized, time taken to execute the span, memory consumption, etc.

[0034] As described herein, certain embodiments may measure data regarding spans that span multiple servers, spans that span multiple processing threads, or spans that utilize multiple individually identifiable operations. For example, execution of block 210 may create additional spans that may provide more granular information. For example, tracer application 136 may create a first child span corresponding to a first operation and a second child span corresponding to a second operation. The first child span and the second child span may be children of the span.

[0035] Continuing with this example, the tracer application 136 automatically logs the end of the first child span based on the completion of the first operation, and automatically logs the end of the first child span based on the completion of the first operation. Thus, the tracer application 136 obtains more granular information than just the span alone. The first child span and the second child span are associated with the span.

[0036] The following example shows code for injecting a client-side span context using Javascript.

[0037]

number

[0038] 3 illustrates an example of an instrumented application for generating span context according to certain aspects of the present disclosure. The instrumented application may be built and instrumented by a software development tool, such as a developer's IDE 112, and may be executed by a browser running on a computing device. Figure 3 illustrates a web application environment 300 that includes a web application 302, a server 340, a query 350, and a response 352. In the example illustrated in Figure 3, the web application 302, instrumented with tracer functionality, runs on a web browser and communicates with the server 340 to serve one or more web pages. The web application 302 sends one or more queries 350 and receives one or more responses 352 in response. While Figure 3 is described with respect to a web page, it will be appreciated that the flows and components may be performed by mobile applications or other applications.

[0039] Web application 302 shows flow 310, which includes web page 312 with components 314, 316, and 318. These components can be mobile applications, web applications, service connections, business objects, or processes. Each component can perform a different function, such as a portion of a web page. Components 314, 316, and 318 can each raise component events 315, 317, and 318, respectively. Each of component events 315, 317, and 318 triggers one or more occurrences in telemetry runtime 320. Telemetry runtime 320 then causes one or more actions to be performed while logging the events.

[0040] Modules in a flow 310 or web page 312 may interact with or be involved with one another. For example, for a particular web page, components may be UI (user interface) components, variables, action chains, the flow of the web page, and page navigation, as well as data access via REST endpoints. Variables may be a mechanism used to store and manage the state of browser settings, client device settings, user settings, or other parameters. Components of a web page may interact with a telemetry runtime, which processes various events for each component.

[0041] Telemetry runtime 320 can cause an action or change of action corresponding to component events 315, 317, and 319. For example, a user may click on a particular display element of a web page displayed in a browser, causing a component event. Telemetry runtime 320 can determine that the web browser navigates to a new web page (330). Telemetry runtime 320 can determine that the action associated with the user click is to update a portion of the UI (user interface) of web page 312.

[0042] In another example, the telemetry runtime 320 may initiate an action chain 333 corresponding to steps to update a portion of the UI. For example, an action chain can be a set of one or more individual actions related to each other, or a sequence of actions 336. Each action chain can be triggered by an event. For example, a user click can trigger navigation to a page corresponding to the location on the browser where the user click occurred (e.g., a hyperlink, a navigation button, etc.). The action chain can specify input parameters and local variables available within the scope of the action chain, which can include parameters and variables in the scope of the application. The telemetry runtime can determine that updating a portion of the UI requires one or more REST calls 338 to a server.

[0043] In response to the REST call 338, the web application 302 sends a query 350 to the REST service endpoint 332 of the server 340. The query 350 may include an inject span context. The server 340 then returns a response 352, which may include additional HTTP headers. The web application 302 then uses this response to complete the action(s) triggered by the component event(s).

[0044] The flow of web pages and page navigation governs the transfer of information from one page to another. Like each application running in a browser, each web page has a defined lifecycle. Each lifecycle event, such as entering or exiting a page, can trigger an action chain. All data entering a mobile or web application can be based on the REST protocol. This data can come from custom business objects or from business objects provided by a service connection. Actions and variables control how data is sent to and received from REST endpoints in a mobile or web application. Action chains have a clear context and contract. Action chains orchestrate the state flow and execution paths of their underlying actions. Action chains can define input parameters and local variables that are available only within their context. An example of an action chain might make a REST call (first action) and then receive the result and store it in a variable (second action). An action can export new state to its context, which is only available to future actions along the same action chain. Action chains can be created in the context of a page or application and exist within the scope of that page or application. They have a defined interface and contract and can be invoked by event triggers using their ID.

[0045] The telemetry API (application programmer interface) 322 can provide programmers with access to the operation of the telemetry runtime, any actions or action chains, component events, and other related operations (e.g., server responses to actions). The telemetry API 322 can output span logs to a database, storage medium, or another server or browser for further processing. In one example, the telemetry API can be a REST API. The telemetry API 322 can store cloud infrastructure objects, such as audit logs, application flow logs, or other log files. The telemetry API 322 can periodically sample the stored cloud infrastructure objects and output telemetry data to common analytics injection 324 or client log injection endpoint 326.

[0046] Common analytics injection 324 may inject log data from telemetry API 322. In one example, common analytics injection 324 can inject log data from cloud infrastructure object storage using a REST API. In one example, common analytics injection 324 can determine a storage location for collected log data. Common analytics injection 324 can inject various log data at a user level, a group level, or an organization level. In some examples, common analytics injection 324 can convert the log data into images for an analytics console.

[0047] Additionally, the client log merge endpoint 326 can be configured to receive log data from the telemetry API 322. The client log merge endpoint 326 can store the log data, convert the log data into various images, or perform further processing on the log data.

[0048] In general, distributed tracing can be implemented using the Trace-Client API within a distributed tracing architecture. The Trace-Client API consists of tracers that are used to create spans around multiple operations within an application. Spans can have child spans, which are then passed to each parent span. A span indicates an operation at a finer granularity than a span. A parent span can then have children that indicate operations at a finer granularity than the initial child span. The collection of spans originating from a single parent can be considered a trace. These spans contain metadata about the operation they measure, along with identifying information. For applications with operations that make out-of-process calls (e.g., a client application making a call to a REST service), span context can be propagated with the outgoing request (e.g., in the form of specific HTTP headers). The receiving application or server can extract the span context and use it to create child spans of the parent span on the client. The Trace-Client API has the ability to output span information in the form of log messages (one for each of the start and end of the span) to various backend servers.

[0049] An example of an application span is a simple application flow: a user navigates to a web page and clicks a button. This button click triggers an event, which causes the application to invoke an event handler. The event handler makes a REST(define) request that is processed by a REST service. The service returns a response that causes the application's user interface to update. This example is shown in Figure 4.

[0050] FIG. 4 illustrates an example span hierarchy according to an aspect of the present disclosure. FIG. 4 illustrates a span hierarchy 410 and a span timeline 430. Together, the span hierarchy 410 and the span timeline 430 describe a set of relationships between various spans in a span context. Within the span hierarchy 410 or the span timeline 430, there are relationships between parent spans and child spans. As illustrated, the span hierarchy 410 represents a hierarchy of events, such as a user click 412, an event handler 414, a REST request 416, a response processing 418, a server processing request 420, and a UI update 422. The span timeline 430 includes span A 424, span B 434, span C 436, span D 440, span E 438, and span F 442.

[0051] In one example, web browser 132 receives a user click 412. The user click 412 creates span A 424. In response, web browser 132 fires an event represented by the action of the user click. This event triggers the operation of event handler 414. Web browser 132 can use event handler 414 to determine one or more actions to take depending on which event is detected based on the received user click. Instantiation of event handler 414 results in span B 434, a child span of span A 424.

[0052] Continuing with this example, event handler 414 triggers REST request 416 and response processing 418. Because processing of a REST request's response occurs after the REST itself, span C 436 (corresponding to the REST request) occurs before span E 438. The REST request causes the server to process the request. Processing the REST response causes the UI (user interface) to be updated accordingly. Thus, as shown, REST request 416 triggers server processing request and UI update 422. Because the UI is not updated until the server processes the request, span D 440 (corresponding to the server processing request) begins and completes before span F 442 (corresponding to the UI update). Thus, span D 440 represents the server's processing of the request.

[0053] As can be seen, span D 440 occurs between span C 436, and span F 442 occurs between span E 438. Span E 438 is the REST request made from the browser. Represents the browser's processing of the response from the server corresponding to span B. Span F442 represents the browser updating the user interface based on the processing of the response from the server. Spans C436 and E438 are children of span B, but operate sequentially. Spans D440 and F442 are children of spans C436 and E438, respectively.

[0054] Span contexts such as those described in FIG. 4 are managed by instrumentation libraries that are added to custom enterprise applications by software development tools (eg, a developer's IDE 112).

[0055] Figure 5 illustrates a tracer component used to generate span context and logs within an instrumented application according to certain aspects of the present disclosure. In the example shown in Figure 5, an end-user computing device 520 running a web application 522 communicates with a server 560 via various commands and / or API calls. The web application 522 can be developed by a developer's IDE 112 or can be customer-developed software. Code to support instrumentation is automatically added by the developer's IDE 112.

[0056] The end user's computing device 520 includes one or more modules, such as a web application 522 (or other consuming client), a trace module 524, a tracer interface 526, a span interface 528, a tracer 530, spans 532, a span log library 534 (i.e., Bunyan logger), a span stack 536, a browser console 538, a compression layer 544, a tracer server stream 546, a sender task 548, a message queue 542, and a tracer console stream 552. The tracer 530 then operates to instrument the web application, create one or more spans 532, and add active spans to the span stack 536. The server 560 includes one or more modules, such as a trace collector servlet 562.

[0057] Subsequently, the web application 522 receives or detects an interaction from a user (e.g., a user click). The web application 522 interacts with the tracing module 524 and / or tracer interface 526 to start one or more tracers 530. The span log library 534 then logs information and metadata via the span interface 528, such as the event type, the name of the event, the URL of the server request, the return status code, errors, and warnings.

[0058] Various API calls are available: The API call initTracer() initializes and returns a global tracer object. The API call initTracer is called once per application context and returns a TracerOptions object. The API call activeTracer returns a global tracer object. For example, the API call inject() injects a span into a request (e.g., to a server). On return, the span can be extracted using the API call extract().

[0059] Multiple spans can be generated. For example, the tracer 530 can create a span to represent an event or thread in the web application 522. The tracer 530 can create child spans as appropriate (e.g., as described in FIG. 4) based on the particular operation for which the tracer created the span. As described further herein, instrumentation A client application can obtain information from different threads and / or different servers that service requests made by triggering events in the application.

[0060] Web application 522 can use tracer interface 526 to control the tracer or receive span injection. The tracer can also monitor writes or reads to span stack 536, where the tracer can cache or access one or more spans to monitor parent spans or insert span context into newly created spans, such as span 532. Web application 522 can use span interface 528 to transmit span-related information to span log library 534. Compression layer 544 can minimally compress span-related information before sending it to trace collector servlet 562. Compression techniques utilized by compression layer 544 include zip and gzip. In one example, tracer console stream 552 can output a stream of span logs to a browser console presented on end-user computing device 140. Server 560 can then execute trace collector servlet 562. The trace collector servlet 562 collects traces from the stream of span logs and the sender task 548 on the end user's computing device 520 .

[0061] Span Prioritization Aspects of the present disclosure relate to instrumenting web applications. In some cases, managing and prioritizing the number of spans can be difficult due to the large number of events and the resulting spans and / or calls that result in child spans. In such cases, certain aspects provide functionality for reducing the payload of spans in order to reduce capacity for span logs and streamline telemetry data.

[0062] In its default mode, the instrumentation can capture all spans and emit messages based on all these spans to the browser console and to any service. However, in some cases, there can be an unmanageable number of span messages, obscuring the full scope of the relevant target telemetry data. Therefore, spans can be filtered based on one or more criteria.

[0063] Furthermore, in some cases, a target span is a child span, providing more detailed information than its corresponding parent span. However, parent span information can contribute to span data congestion. Therefore, certain aspects employ the concept of proxy spans, allowing for maintaining a span tree while gathering only instrumentation details related to one or more specific child spans of a target.

[0064] Figure 6 illustrates an example tracing architecture used to manage backpressure caused by span instrumentation according to certain aspects of the present disclosure. Figure 6 illustrates tracing architecture 600 comprising one or more of an application runtime 602, a tracer implementation 604, a span controller 606, a browser span log library 634, a console stream 610, a CLS (Client Log Service) stream 612, and a client log service 614. In the illustrated example, span controller 606 manages and prioritizes spans based on one or more parameters. Application runtime 602 may be similar to telemetry runtime 320 and may perform operations similar to telemetry runtime 320 described in Figure 3.

[0065] In a first example, the tracer implementation 604 initiates a span in the application runtime 602. While the tracer implementation 604 executes the span, it may simultaneously communicate span monitoring data to the browser span log library 634. The browser span log library 634 outputs the span log data to the console stream 610. The console stream 610 may be presented within a browser on the end user device. The browser span log library 634 may also output the span log data to the CLS stream 612. The CLS stream 612 may be a stream of log data transmitted to the client log service 614. The client log service 614 may store the log data for further processing.

[0066] In another example, the tracer implementation 604 receives spans created by the span controller 606. The tracer implementation 604 can also return spans (e.g., terminate spans) when the event that generated the span completes. The tracer implementation 604 may also receive a command from the application runtime 602 to terminate the span. The span controller 606 can perform span prioritization. Each span can have a priority level. For example, the span controller 606 can receive one or more parameters that indicate which span(s) to prioritize. In one example, a default span priority is set. If the priority of a given span is lower than the default priority, data for this span and its associated child spans is not returned.

[0067] In yet another example, tracing architecture 600 enables generation of an initial set of spans, e.g., as described in process 200. Each span in the initial set of spans can be given a corresponding priority. Then, at runtime, spans in the initial set of spans can be measured, not measured, pruned, or subsetted based on programmer or user input. For example, a threshold priority can be set. At runtime, any spans with a priority higher than the threshold priority are converted to proxy spans and not measured.

[0068] Proxy spans maintain a span tree, which is the relationship between parent spans and child spans. However, because proxy spans are not measured, the span controller 606 does not obtain runtime instrumentation measurements for the spans, but it does continue to obtain measurements for child spans that are not proxy spans. Because span proxies maintain parent-child relationships, they maintain the tree structure, even if a particular proxy span in the tree does not have instrumentation data. Thus, from a perspective, the span tree is pruned to maintain the data for spans that are of interest to the developer. Figure 7 shows an example of the use of proxy spans.

[0069] 7 illustrates examples of span hierarchies in which spans are not prioritized and prioritized, according to certain aspects of the present disclosure. In particular, FIG. 7 illustrates a span hierarchy 700 without prioritization and a span hierarchy 730 with prioritization.

[0070] In span hierarchy 700, span A 702 is the parent span of span B 704. Span B 704 is in turn the parent span of span C 706, span D 708, and span E 710. In span hierarchy 700, data for all spans, span A 702, span B 704, span C 706, span D 708, and span E 710, is aggregated.

[0071] In contrast, span hierarchy 730 shows a hierarchy in which spans are prioritized. Span hierarchy 730 includes span A 732 and span proxy B 734, which is a child of span A 732. Span A 732 has a priority of 1. Span proxy B 734 has a priority of 2, which is higher than the priority of span A 732. In this example, the default priority is The priority is set to 1. Span proxy B 734 is converted from the original span B because the instrumentation data from span B was not needed, as indicated by the priority of span B being 2, which is higher than the default priority.

[0072] As a result, span C 736, span D 738, and span E 740, all of which are not pruned because they have priority 1, are marked as having parent span A 732 because their original parent, span B, was proxied. Therefore, at runtime, instrumentation data is collected for span A 732, span proxy B 734, span D 738, and span E 740.

[0073] From an implementation perspective, the SpanOptions object used to create a span includes a priority field. In some cases, the absence of a priority for a span implies a "high" (1) priority if it is a root span, or a "medium" (2) priority if it is a child span. The span (identified by SpanImpl) is created and returned, and the message is dispatched as usual. If the span is being proxied, a SpanProxy object is created instead. Interaction with the SpanProxy object can be similar to any other span object, but the fields and methods of the SpanProxy are delegated to the active span. For example, in the above example, span proxy B 734 corresponds to an object called SpanProxy, and the methods and fields therein default to those corresponding to the object in span A 732. This way, there is no need to adjust the application runtime environment, as the application is always receiving spans for as long as it is concerned.

[0074] In some implementations, priority values ​​are represented by positive numbers, with higher values ​​indicating lower priority. For example, a priority of 0 is the highest priority, followed by level 1, then level 2, and so on. Therefore, in this implementation, any span with a priority higher than the threshold priority is converted to a proxy span. However, different numbering schemes are possible, for example, where higher values ​​indicate higher priority. In some cases, priorities are represented by aliases. For example, "important" is assigned to level 0, "high" is assigned to level 1, "medium" is assigned to level 2, and "low" is assigned to level 3. By default, a root span may have a priority of 1, and a child span may have a priority of 2.

[0075] In some cases, you can change the priority threshold with a fleetwide sampling algorithm. In this algorithm, each priority is assigned a percentage value, and you must choose a random number that falls within one of these percentage values. A high percentage value is typically assigned a high priority, ensuring that most users of your application emit minimal telemetry (for capacity and performance reasons). To get deeper information about user movements or other more granular information, a low percentage value can be assigned a low priority, indicating that fewer users emit more telemetry. The percentage value can be applied in the tracer configuration or by a server-side profile option.

[0076] In some cases, priority boosting can occur. Priority boosting refers to increasing the priority of a proxied span at runtime. This can occur when the span is found to have interesting instrumentation data. Examples of priority boosting include when processing is taking a very long time and the span does not have any children that account for the majority of the span's processing time, or when an error occurs. This occurs where.

[0077] The tracer system can be configured to dynamically adjust the priority threshold, for example, when a request is accepted and / or when the payload is too large (also known as "injection service backpressure"). For example, an injection service (CLS) that collects spans and logs can respond with an HTTP error code (e.g., "429 Too Many Requests" or "413 Payload Too Large") indicating that too many spans and / or logs have been sent. The system can then respond by dynamically changing the priority threshold so that fewer logs are sent on subsequent requests.

[0078] The table below shows an example of span priorities by event.

[0079] [Table 1]

[0080] 8 illustrates an example process 800 for prioritizing spans according to certain aspects of the present disclosure. The developer's computing device 110 and one or more of the servers 140a-140n can perform the process 800.

[0081] At block 802, the process 800 determines from the code of the web application that the web application contains events that are triggered by user interactions. For example, during instrumentation, the developer's IDE 112 running on the developer's computing device 110 determines that the web application 134 includes events that are triggered by user interactions.

[0082] At block 804, the process 800 includes associating an event with a first span. The developer's IDE 112 configures a tracer to log tracing information based on the execution of the first set of operations triggered by (corresponding to) the execution of the event. The tracer is configured to obtain a first measurement of performance of the first span. The span refers to the first set of operations. The performance measurement may include cycles, processing time, memory usage, latency, etc.

[0083] At block 806, the process 800 includes specifying in the code that execution of the first set of operations causes a request to be made to a server. For example, the first set of operations may include a REST call.

[0084] At block 808, the process 800 includes associating the request with a second span. Based on the identified request, the tracer is configured to log tracing information based on the execution of a second set of operations caused by the request. The tracer is configured to obtain a second measure of performance of the second span. The second span is a child span of the first span.

[0085] At block 810, the process 800 includes receiving a priority of the first span. For example, at runtime when the web browser 132 is executing the web application 134, a developer can adjust the priority of the first span. The priority can be adjusted up or down.

[0086] At block 812, the process 800 includes determining that the priority is outside a priority tolerance range. In some cases, a threshold value can be used instead of a tolerance range.

[0087] At block 814, process 800 includes labeling the first span as a proxy span based on the determination. Continuing with this example, web browser 132 labels the first span as a proxy span to avoid collecting instrumentation data. At runtime, during execution of the web application, the tracer does not log information based on the execution of the first set of operations corresponding to the first span.

[0088] Thread Instrumentation Traditionally, web-based applications can utilize the main browser thread for manipulating the user interface. For example, improvements to asynchronous Javascript programming have made the main browser thread a viable way to create responsive applications. However, for certain long-running background processes, application developers may choose to utilize the Web Worker API, which allows them to create actual native threads to execute application logic.

[0089] However, in standard distributed tracing applications, a separate thread (such as via the Worker API) is expected to be out-of-process, or at least have a different scope than a tracer running on the main thread. As a result, tracers need to be configured in the code to operate on worker threads.

[0090] In contrast, certain aspects can automatically instrument threads. For example, the Traceworker class abstracts the task of configuring tracers in application code by encapsulating the tracer in a subclass of the standard Worker class. The Traceworker class uses an algorithm that automatically creates a worker thread, configures the tracer, and then loads the application code. Telemetry in the application code is then automatically enabled. The Traceworker can then be optionally configured to override the native Web Worker API so that whenever the application attempts to create a worker thread, it becomes a Traceworker wrapping the functionality of the standard Worker.

[0091] The advantages of this approach are that it is a transparent operation for developers and users, and it enables telemetry for code outside of threads while preserving the spanning hierarchy across threads. Additionally, there is no requirement for duplicate configuration data, as per-thread configuration data automatically inherits the main thread's configuration.

[0092] 9 illustrates an example of a distributed tracing environment with a traceworker client according to certain aspects of the present disclosure. Figure 9 shows a main browser thread 910 and a worker thread 920. In the example shown in Figure 9, the main browser thread 910 invokes the worker thread 920. The worker thread 920 returns instrumentation data to the main browser thread 910.

[0093] The main browser thread 910 includes a main application 912, a tracer 914, and a Traceworker client 917. The worker thread 920 includes Traceworker shim code 922, an application worker script 924, and a tracer 925. The worker thread 920 is an object created using the Traceworker client 917 and can be written in Javascript.

[0094] Worker thread 920 can run in a context separate from the main browser operation, such as a browser window, to maintain a more responsive user interface, for example, if the task performed by worker thread 920 is a time-consuming or complex task.

[0095] The Traceworker client 917 can manage threads such as worker threads 920, such as by configuring the worker threads 920 with traceworker shim code 922. Adding traceworker shim code 922 facilitates obtaining span and trace contexts. The wrapper's constructor is wrapped with a span, and the span becomes a child of the current span's context, if applicable. The worker thread is initialized with an application script that has a communication port to run on creation.

[0096] The Traceworker client 917 spawns and executes shim code 922 that performs the following actions: (1) temporarily installs a message handler to process all incoming messages coming from the main thread, (2) loads all distributed tracing dependencies, and (3) replies with a message indicating success (or failure).

[0097] If successful, the Traceworker client 917 retrieves the active span context and tracer configuration and sends it to the shim. The shim receives the tracer configuration, initializes the tracer, and creates child spans for the received span context. The shim then injects the application worker code and removes its message handler. The application and worker threads then perform various operations.

[0098] Once created, the worker thread 920 may create a tracer and copy one or more configuration parameters from the worker thread 920 to the tracer 925. The worker thread 920 may also extract span contexts associated with spans created by the main application 912. The worker thread 920 may create child spans of the spans created by the main application 912, including the span contexts. During execution of the application worker script 924 by the worker thread 920, child spans are created and captured by the tracer 925 for further processing. The worker thread 920 may communicate to the Traceworker client 917 that the application worker script 924 completed successfully. The Traceworker client 917 may then communicate to the main application 912 that the worker thread was successful. The main application 912 may communicate to the tracer 914 that the span is complete and terminate the span.

[0099] In one example, data may be sent between a worker thread and the main application via a system of messages, with each side sending a message. Messages may be sent using methods such as postMessage(), and responses to received messages are sent using onMessage(), with the message included in the data property of the message event. message) event handler. In this particular configuration, message data is replicated rather than shared between the main application and the worker thread. The worker thread may spawn auxiliary workers (e.g., auxiliary threads), where the workers are hosted in the same origin as the parent page.

[0100] The sample code below shows how a developer can utilize the trace worker thread.

[0101]

number

[0102] 10 illustrates an example process 1000 for instrumenting threads according to certain aspects of the present disclosure. The process 1000 can be executed by one or more of the developer computing device 110 and the servers 140a-140n.

[0103] At block 1002, the process 1000 includes providing a web page application to a web browser on a client device. For example, the server 140a provides the web application 134 to the web browser 132 on the end-user's computing device 130.

[0104] At block 1004, process 1000 includes creating a global tracer configured to log tracing data of the web page application from the web page application. The global tracer is created in a similar manner as described with respect to block 206 of process 200.

[0105] At block 1006, the process 1000 receives assistance from the web page application. Instantiating a wrapper for the thread, the wrapper configured to execute the shim code before executing the auxiliary thread.

[0106] At block 1008, the process 1000 includes passing configuration data for the global tracer from the wrapper to the shim code.

[0107] At block 1010, the process 1000 includes creating an auxiliary tracer from the shim code. The auxiliary tracer is configured to log tracing data for auxiliary threads. Configuration data for the global tracer associates tracing data for the web page application with auxiliary threads.

[0108] At block 1012, the process 1000 includes executing an auxiliary thread from the shim code.

[0109] Instrumenting spans across multiple server calls FIG. 11 illustrates an example process 1100 for propagating tracing throughout a distributed software application according to certain aspects of the present disclosure. Process 1100 may be implemented by a computing system, such as an end-user computing device 140, and may be part of a tracer application 136. Process 1100 includes making an appropriate request to a remote server to retrieve a resource (e.g., a web page, an image, or a file). The request may be in HTTP (Hypertext Transfer Protocol). For illustrative purposes, process 1100 will be described in conjunction with FIG. 12.

[0110] FIG. 12 illustrates an example of propagating a span context across services in a distributed system according to certain aspects of the present disclosure. Services may include REST calls to a server. For example, rendering a particular web page may require multiple REST calls, each with a specific purpose. A first REST call may cause a web browser to render the page, a second REST call may retrieve an image located on the server (a REST endpoint) that is displayed on the page, and a third REST call may query a database to obtain information such as the designation of an employee's manager. A REST call may also cause one or more child REST calls to be executed.

[0111] The REST call may be a cross-origin call. A cross-origin call requests information from a server that is not the origin server (e.g., the server serving the web page). For example, the origin server may be on oracle.com, and the second server may be on google.com. In some cases, process 1100 is performed after determining that the web page from the origin server requires a request to an external server outside the origin server's domain. This determination may be compatible with CORS (Cross-Origin Resource Sharing).

[0112] FIG. 12 includes service 1210 and service 1220. Service 1210 can run a browser, and service 1220 runs on a server identified by a REST endpoint. Service 1210 includes parent span 1212, child span 1214, and child span 1216. Service 1220 includes child span 1222, which occurs after the REST call. In one example, child spans 1214 and 1216 represent processing that needed to occur before the REST call, and the context of child span 1222 is sent over the network to the server. The server can then propagate the span context to other servers if they are capable of making such requests. Each server collects its own traces and sends them to the appropriate location.

[0113] As mentioned, a span context contains a root span or trace identifier that indicates the overall goal being achieved (e.g., loading a page). A complete span context contains a trace ID, typically a 128-bit representation, and a child ID, typically a 64-bit random number. From each span context, a graph can be created of all of the span contexts that point to their parents.

[0114] Returning to FIG. 11 , in block 1101, process 1100 begins. Tracer application 136 can log tracing data for web pages from origin servers. The tracing data can include previous requests and their successes and failures. From the tracing data, tracer application 136 can create a deny list containing destination servers that did not accept requests with tracing headers, and / or an allow list containing destination servers that accepted requests with tracing headers. In some cases, process 1100 operates when a cross-domain request is detected.

[0115] Instrumentation can be achieved by injecting tracing headers into requests for resources from a server (e.g., as part of a web page load). However, tracing headers are often rejected, e.g., for security reasons. Thus, process 1100 includes circumventing such security measures to facilitate telemetry. For example, considering FIG. 12, service 1210 runs on an origin server and service 1220 runs on an external server. Thus, parent span 1212 (e.g., of a first process) runs on the origin server. Using the techniques disclosed herein, tracer application 136 can analyze not only parent span 1212 but also child span 1214 and child span 1216 derived from child span 1214. However, as can be seen, parent span 1212 is also associated with child span 1222, which runs on service 1220 (and thus on the external server). Process 1100 can be used to propagate span context from parent span 1212 to child span 1222, facilitating instrumentation.

[0116] At block 1102, process 1100 includes determining whether CORS is active (e.g., a cross-domain request is detected). If CORS is active, process 1100 proceeds to block 1103. In this case, if CORS is not required, process 1100 proceeds to block 1108. At block 1108, headers are injected.

[0117] At block 1103, process 1100 includes determining whether the request for the resource is idempotent. Idempotence means that the intended result of multiple identical requests to the server using that method is the same as the result of a single request. Thus, if the intended result of the request to the server is not idempotent, i.e., not the same as the previous request, process 1100 proceeds to block 1104. Otherwise, if the request is idempotent, process 1100 proceeds to block 1115.

[0118] In block 1104, process 1100 includes determining whether the destination of the request is a destination on a server reject list. For example, tracer application 136 searches the reject list to determine whether the foreign server prohibits tracing headers in requests from the origin server. The server reject list includes servers that have been identified as rejecting requests with additional headers (e.g., headers such as those produced by the request identified in block 1112 of process 1100). The denied server list is useful because if the choice is between a REST call failing or simply not having telemetry information, it is better to simply not have telemetry information.

[0119] If a request to a service does not support propagation headers, the request is added to a deny list. This prevents further automatic attempts to inject context for this user session and serves requests without header injection. In one aspect, the deny list is not cached in local storage, so that future requests are not blocked due to an incomplete configuration. A destination may be on both the allow list and the deny list, in which case the deny list takes precedence.

[0120] The allow and deny lists are implemented as associative arrays to improve lookup time. These lists are specified by the URL origin of the failing request (which has no parameters) or by individual services, which can be determined by the configuration of the request. The values ​​of the map can be NULL, but can then contain other metadata about the actual failure or the reason it was added to the list.

[0121] Examples of calls include:

[0122]

number

[0123] If the server is on the denied list, the process 1100 proceeds to block 1114. If the server is not on the denied list, the process 1100 moves to block 1105.

[0124] At block 1105, process 1100 includes determining whether the destination of the request is a server on a permitted list. For example, tracer application 136 searches the permitted list to determine whether the foreign server allows tracing headers in requests from the origin server. The permitted list includes servers that have been identified as allowing requests with additional headers (e.g., headers as created by the request at block 1112 of process 1100).

[0125] If it is determined that the propagation header is supported, the specific destination is added to the allow list. The allow list can be cached in local storage to avoid further OPTIONS calls. This approach eliminates the need to support a user interface to an explicit allow list service endpoint. If the destination is on the allow list, process 1100 continues to inject the header at block 1108. If the destination is not on the allow list, process 1100 continues at block 1106.

[0126] At block 1106, the process 1100 includes executing an HTTP OPTIONS call. The OPTIONS call requests the allowed communication options from the server. Under the CORS protocol, a preflight request is sent with the OPTIONS method so that the server can respond as to whether it is acceptable to send the request. The OPTIONS call allows the insertion of tracing headers. is accepted. Optionally, at block 1106, process 1100 includes performing a preflight request before the browser automatically performs such a check. Process 1100 continues at block 1107.

[0127] At block 1107, process 1100 includes determining whether tracing headers are supported by the server from the results of the OPTIONS call. In some cases, the OPTIONS call may return a list of allowable (or permitted) headers. If tracing headers are supported, process 1100 moves to block 1108. At block 1108, the headers are inserted. If tracing headers are not supported, process 1100 moves to block 1113. At block 1113, the server is added to a server reject list.

[0128] Below are some simple OPTIONS requests / responses (note that some headers have been omitted to avoid clutter), for example, an OPTIONS request to detect propagation:

[0129]

number

[0130] Another example shows the response when a service endpoint is configured for propagation.

[0131]

number

[0132] Another example shows a response for which no propagation is configured.

[0133]

number

[0134] At block 1108, the process 1100 includes injecting a header into the request. Injecting a tracing header into the request is based on a determination that the foreign server allows the tracing header to be present in the request. The content of the tracing header may include a span context, etc.

[0135] In one example, two sets of headers are injected into outgoing requests using Zipkin and / or execution context (ECID). These protocols provide scope for maintaining context with minimal effort on the part of the service developer.

[0136] In some cases, the Zipkin B3 HTTP header scheme is used because of its wide support. B3 headers include:

[0137]

number

[0138] TraceId is a unique 32-character UUID string, SpanId is a unique 16-character string indicating the containing span, ParentSpanId is the unique ID of the span's parent (if applicable), and Sampled is a flag indicating whether span telemetry should be reported.

[0139] Another example uses the Oracle-specific ECID-Context header.

[0140]

number

[0141] The RID is an encoded string of bytes that represents the path of the context; from the browser, this string appears as "kXjE" and, when decoded, represents the root of the request.

[0142] If it is determined that a header can be injected, it is injected using the Tracer.inject() API call, which injects an HTTP header into the outgoing request before it is sent to the server.

[0143] Figure 13 illustrates example headers according to certain aspects of the present disclosure, including header 1310, an HTTP header without instrumentation, and header 1320, the same HTTP header as header 1310 but with added instrumentation (shown in bold).

[0144] Returning to FIG. 11, process 1100 continues at block 1109. In block 1109, the process 1100 makes a request to a server. The web browser sends a request with a tracing header to an external server. The external server is configured to log tracing data based on the tracing header.

[0145] At block 1110, process 1100 includes determining whether the request to the server was successful. If the request was successful, process 1100 moves to block 1111. At block 1111, the process ends. If the request was not successful, process 1100 moves to block 1112.

[0146] At block 1111, the process 1100 includes terminating processing for the request. At block 1111, additional headers are successfully sent to the server, resulting in the propagation of the span context to the destination server, which then assists with instrumentation.

[0147] At block 1112, process 1100 includes determining whether the failure identified in block 1110 was a header failure rather than some other error. If the failure was not a header failure, process 1100 moves to block 1116, during which normal failover / retry procedures may be performed. If the failure was a header failure, process 1100 moves to block 1113 and adds the server to a server reject list.

[0148] At block 1113, process 1100 includes adding the destination server to a server reject list so that if the destination server for the request is identified as the same, process 1100 does not attempt to send the request with the tracing header to the same rejected server. After completing block 1113, process 1100 moves to block 1114. At block 1114, the uninjected request is made.

[0149] At block 1114, process 1100 includes making an uninjected request, e.g., a normal REST call without tracing headers. In some cases, the timing of processing the request can be used for telemetry. After block 1114, process 1100 continues to block 1118. Block 1118 includes processing the response normally.

[0150] At block 1115, process 1100 includes determining whether the request is in a cached request list. The request may be cached to improve performance and reduce failures. If the request is cached, process 1100 proceeds to block 1117. If the request is not cached, process 1100 proceeds to block 1104. The request may include a span context.

[0151] At block 1116, the process 1100 includes performing a failover operation or retrying the request. In this case, given that a page that fails to load or complete is not the best user experience, at block 1116: Process 1100 includes retrying failed operations to ensure tracing header injection attempts do not cause failures. In some cases, developers may not add sufficient error checking or may not terminate gracefully. Therefore, in this regard, block 1116 helps ensure custom applications do not fail due to telemetry. The request may include a span context.

[0152] At block 1117, the process 1100 includes continuing with the cached response. The cached response is used to process the request. The request may include a span context. The span and log are sent to a span log library, as described in Figures 4 and 5.

[0153] 14 is a simplified diagram of a distributed system 1400 for implementing one of the aspects. In the illustrated aspect, the distributed system 1400 includes one or more client computing devices 1402, 1404, 1406, and 1408. The client computing devices 1402, 1404, 1406, and 1408 are configured to run and operate client applications, such as web browsers, proprietary clients (e.g., Oracle Forms), etc., over one or more network(s) 1410. A server 1412 may be communicatively coupled to the remote client computing devices 1402, 1404, 1406, and 1408 via the network 1410.

[0154] In various aspects, server 1412 may be configured to execute one or more services or software applications provided by one or more of the system's components. The services or software applications may include non-virtual and virtual environments. The virtual environments may include virtual environments for virtual events, trade shows, simulators, classrooms, commerce, and businesses, page-based logical environments, or others, whether in two-dimensional or three-dimensional (4D) representations. In some aspects, these services may be provided to users of client computing devices 1402, 1404, 1406, and / or 1408 as web-based or cloud services or under a software-as-a-service (SaaS) model. Users operating client computing devices 1402, 1404, 1406, and / or 1408 utilize one or more client applications to interact with server 1412 and utilize the services provided by these components.

[0155] In the illustrated configuration, software components 1418, 1420, and 1422 of distributed system 1400 are shown as implemented on server 1412. In other aspects, one or more of the components of distributed system 1400 and / or one or more of the services provided by these components may be implemented by one or more of client computing devices 1402, 1404, 1406, and / or 1408. A user operating a client computing device may then utilize one or more client applications to use the services provided by these components. These components may be implemented in hardware, firmware, software, or a combination thereof. It should be understood that a variety of different system configurations are possible and may differ from distributed system 1400. Thus, the illustrated aspect is one example of a distributed system for implementing an exemplary system and is not intended to be limiting.

[0156] The client computing devices 1402, 1404, 1406, and / or 1408 may be Microsoft Windows Mobile® The client computing device may be a palm-sized portable device (e.g., an iPhone®, mobile phone, iPad®, computing tablet, personal digital assistant (PDA)) or a wearable device (e.g., a Google Glass® head-mounted display) running software such as macOS and / or various mobile operating systems such as iOS, Windows Phone, Android, BlackBerry 15, Palm OS, etc., and supporting the Internet, email, SMS (Short Message Service), Blackberry®, or other communication protocols. The client computing device may be, by way of example, a general-purpose personal computer, including personal and / or laptop computers running various versions of Microsoft Windows®, Apple Macintosh®, and / or Linux® operating systems. The client computing device may be, by way of example, but not limitation, a workstation computer running various commercially available UNIX® or UNIX-like operating systems, including various GNU / Linux operating systems such as Google Chrome OS. Alternatively or additionally, client computing devices 1402, 1404, 1406, and 1408 may be other electronic devices capable of communicating over network(s) 1410, such as thin client computers, Internet-enabled gaming systems (e.g., Microsoft Xbox gaming consoles with or without Kinect® gesture input devices), and / or personal messaging devices.

[0157] Although the distributed system 1400 is shown with four client computing devices, any number of client computing devices may be supported. Other devices, such as sensor-equipped devices, may also interact with the server 1412.

[0158] The network(s) 1410 in the distributed system 1400 may be any type of network familiar to those skilled in the art capable of supporting data communications using various commercially available protocols, including, but not limited to, Transmission Control Protocol / Internet Protocol (TCP / IP), Systems Network Architecture (SNA), Internet Packet Exchange (IPX), AppleTalk, etc. By way of example only, the network(s) 1110 may be a local area network (LAN), such as a LAN based on Ethernet and / or token ring, etc. The network(s) 1410 may be a wide area network and the Internet. The network(s) 1410 may include, but are not limited to, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., a network operating under any of the IEEE (Institute of Electrical and Electronics) 802.14 suite of protocols, Bluetooth, and / or other wireless protocols), and / or a virtual network including any combination thereof, and / or other networks.

[0159] The server 1412 may be one or more general-purpose computers, dedicated server computers (e.g., personal computer (PC) servers, UNIX servers, mid-range servers, mainframe computers, rack-mounted The server 1412 may comprise a server farm, a server cluster, or any other suitable arrangement and / or combination. The server 1412 may include one or more virtual machines running a virtual operating system or other computing architecture involving virtualization. One or more flexible pools of logical storage may be virtualized to maintain virtual storage for the server. A virtual network may be controlled by the server 1412 using software-defined networking (SDN). In various aspects, the server 1412 may be configured to execute one or more services or software applications described in the above disclosure. For example, the server 1412 may correspond to a server for performing the processes described above in accordance with aspects of the present disclosure.

[0160] Server 1412 may run any of the operating systems mentioned above, as well as any commercially available server operating system. Server 1412 may also run a Hypertext Transport Protocol (HTTP) server, a File Transfer Protocol (FTP) server, a Common Graphics Interface (CGI) server, and / or a .NET Framework (UTF-8) server. The server may also run various additional server and / or mid-tier applications, including a Java Gateway Interface server, a Java server, a database server, etc. Exemplary database servers include, but are not limited to, database servers sold by Oracle, Microsoft, Sybase, IBM (International Business Machines), etc.

[0161] In some implementations, the server 1412 may include one or more applications for analyzing and consolidating data feeds and / or event updates received from users of the client computing devices 1402, 1404, 1406, and 1408. By way of example, and without limitation, the data feeds and / or event updates may include Twitter® feeds, Facebook® updates, or real-time updates received from one or more third-party information sources and continuous data streams. The data feeds and / or event updates may include real-time events related to sensor data applications, financial tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, etc. The server 1412 may also include one or more applications for displaying the data feeds and / or real-time events via one or more display devices of the client computing devices 1402, 1404, 1406, and 1408.

[0162] Distributed system 1400 may also include one or more databases 1414 and 1416. Databases 1414 and 1416 may reside in a variety of locations. By way of example, one or more of databases 1414 and 1416 may reside on non-transitory storage media that is local to (and / or resides within) server 1412. Alternatively, databases 1414 and 1416 may reside remotely from server 1412 and communicate with server 1412 through a network-based or dedicated connection. In one set of embodiments, databases 1414 and 1416 may reside on a Storage-Area Network (SAN). Similarly, any files necessary to perform functions attributed to server 1412 may be stored locally on server 1412 and / or remotely from server 1412, as appropriate. In one set of embodiments, databases 1414 and 1416 may include relational databases, such as those provided by Oracle, adapted to store, update, and retrieve data in response to SQL-formatted commands.

[0163] FIG. 15 is a simplified block diagram of one or more components of a system environment 1500 in which services provided by one or more components of an embodiment of the system may be provided as cloud services, according to one embodiment of the present disclosure. In the illustrated embodiment, the system environment 1500 includes one or more client devices 1504, 1506, and 1508. The one or more client devices 1504, 1506, and 1508 may be used by users to interact with a cloud infrastructure system 1502 that provides cloud services. The client computing devices may be configured to operate a client application, such as a web browser, a proprietary client application (e.g., Oracle Forms), or other application. The client application may be used by users of the client computing devices to interact with the cloud infrastructure system 1502 to utilize the services provided by the cloud infrastructure system 1502.

[0164] It should be understood that the cloud infrastructure system 1502 depicted in the figure may have components other than those depicted. Moreover, the depicted embodiment is only one example of a cloud infrastructure system that may incorporate aspects of the present invention. In other embodiments, cloud infrastructure system 1502 may have more or fewer components than those depicted in the figure, may combine two or more components, or may have a different configuration or arrangement of components.

[0165] Client devices 1504, 1506, and 1508 may be devices similar to the client devices described above with respect to 1402, 1404, 1406, and 1408.

[0166] Although the exemplary system environment 1500 is shown with three client computing devices, any number of client computing devices may be supported. Other devices, such as sensor-equipped devices, may also interact with the cloud infrastructure system 1502.

[0167] Network(s) 1510 may facilitate communication and data exchange between client devices 1504, 1506, and 1508 and cloud infrastructure system 1502. Each network may be any type of network familiar to those skilled in the art that is capable of supporting data communication using any of a variety of commercially available protocols, including those described above with respect to network(s) 1510.

[0168] Cloud infrastructure system 1502 may be comprised of one or more computers and / or servers, which may include the computers and servers described above with respect to server 1412 .

[0169] In certain aspects, the services provided by a cloud infrastructure system may include a host of services that are available upon request by users of the cloud infrastructure system, such as online data storage and backup solutions, web-based email services, hosted office suite document collaboration services, database processing, managed technical support services, etc. The services provided by the cloud infrastructure system may be dynamically scaled to meet the needs of its users. A specific instantiation of a service provided by a cloud infrastructure system is referred to herein as a "service instance." Generally, any service from a cloud service provider's system that is made available to users over a communications network such as the Internet is referred to as a "cloud service." Typically, in a public cloud environment, the servers and systems that make up the cloud service provider's system are separate from the customer's on-premise servers and systems. For example, the cloud service provider's system may host an application, and users may order and use the application upon request over a communications network such as the Internet.

[0170] In some examples, services in a computer network cloud infrastructure may include storage, hosted databases, hosted web servers, protected computer network access to software applications, or other services provided by a cloud vendor to users, or other services known in the art. For example, a service may include password-protected access to remote storage on the cloud over the Internet. As another example, a service may include a web-services-based hosted relational database and scripting language middleware engine for the private use of networked developers. As another example, a service may include access to an email software application hosted on a cloud vendor's website.

[0171] In certain aspects, cloud infrastructure system 1502 may include a suite of application, middleware, and database service offerings delivered to customers on a self-service, subscription basis in an elastically scalable, reliable, highly available, and secure manner. An example of such a cloud infrastructure system is the Oracle Public Cloud, offered by the assignee of the present application.

[0172] Large volumes of data, sometimes referred to as big data, can be hosted and / or manipulated by infrastructure systems at many levels and at different scales. Such data can include data sets that are too large and complex to process using typical database management tools or traditional data processing applications. For example, it would be difficult to store, retrieve, and process terabytes of data using a personal computer or a rack of personal computers. It would be difficult to handle data of this size using modern relational database management systems and desktop statistical and visualization packages. Acquiring, organizing, managing, and processing data of this size within acceptable elapsed times may require massively parallel processing software running on thousands of server computers, which is beyond the reach of commonly used software tool structures.

[0173] Extremely large data sets can be stored and manipulated by analysts and researchers to visualize, detect trends, and / or interact with large amounts of data. Dozens, hundreds, or thousands of processors linked in parallel can act on this data to present it or simulate forces on it or what it represents. These data sets can involve structured data organized in databases or according to structured models, and / or unstructured data (e.g., emails, images, data blobs (binary large objects), web pages, complex event processing). By leveraging aspects' ability to relatively quickly focus more (or fewer) computing resources on a goal, cloud infrastructure systems can: The system may further be made available to perform tasks on large data sets upon request from a business, government agency, research institution, private individual, group or organization of like-minded individuals, or other entity.

[0174] In various aspects, cloud infrastructure system 1502 may be adapted to automatically provision, manage, and track customer subscriptions to services provided by cloud infrastructure system 1502. Cloud infrastructure system 1502 may provide cloud services through different deployment models. For example, services may be provided under a public cloud model, in which an organization that sells cloud services (e.g., owned by Oracle Corporation) owns cloud infrastructure system 1502 and makes services available to the general public or to different industry enterprises. As another example, services may be provided under a private cloud model, in which cloud infrastructure system 1502 is run solely for one organization and may provide services for one or more entities within the organization. Cloud services may also be provided under a community cloud model, in which cloud infrastructure system 1502 and the services it provides are shared by several organizations within an associated community. Cloud services may also be provided under a hybrid cloud model, which is a combination of two or more different models.

[0175] In some aspects, the services offered by cloud infrastructure system 1502 may include one or more services offered under the categories of Software as a Service (SaaS), Platform as a Service (PaaS), Infrastructure as a Service (IaaS), or other categories of services, including hybrid services. A customer may order one or more services offered by cloud infrastructure system 1502 through a subscription order. Cloud infrastructure system 1502 then performs processing to provide the services in the customer's subscription order.

[0176] In some embodiments, the services provided by the cloud infrastructure system 1502 may include, but are not limited to, application services, platform services, and infrastructure services. In some examples, application services may be provided by the cloud infrastructure system via SaaS services. A SaaS platform may be configured to provide cloud services that fall under the category of SaaS. For example, the SaaS platform may provide functionality for building and delivering a suite of on-demand applications to an integrated development / deployment platform. The SaaS platform may manage and control the underlying software and infrastructure for providing the SaaS services. Services provided by the SaaS platform allow customers to utilize applications running on the cloud infrastructure system. Customers can obtain application services without having to purchase separate licenses and support. A variety of different SaaS services may be offered. Examples include, but are not limited to, services that provide solutions for sales performance management, enterprise integration, and business flexibility for large organizations.

[0177] In some aspects, the platform services may be provided by a cloud infrastructure system via a PaaS platform. A platform may be configured to provide cloud services that fall into the category of PaaS. Platform services include, but are not limited to, services that allow an organization (such as Oracle) to aggregate existing applications onto a shared common architecture, and the ability to create new applications that leverage the shared services provided by the platform. A PaaS platform may manage and control the underlying software and infrastructure to provide the PaaS services. Customers can obtain the services provided by the PaaS cloud infrastructure system without having to purchase separate licenses and support. Platform services include JCS (Oracle Java Cloud Service), DBCS (Oracle Database Cloud Service), and others.

[0178] By utilizing services provided by a PaaS platform, customers can adopt programming languages ​​and tools supported by the cloud infrastructure system and manage deployed services. In some embodiments, the platform services provided by the cloud infrastructure system may include database cloud services, middleware cloud services (e.g., Oracle Fusion Middleware services), and Java cloud services. In one embodiment, the database cloud services may support a shared services deployment model that enables organizations to pool database resources and provide database-as-a-service (DB-as-a-service) services to customers in the form of a database cloud. In the cloud infrastructure system, the middleware cloud services may provide a platform for customers to develop and deploy various business applications, and the Java cloud services may provide a platform for customers to deploy Java applications.

[0179] In a cloud infrastructure system, an IaaS platform may provide a variety of different infrastructure services that facilitate the management and control of underlying computing resources such as storage, networking, and other fundamental computing resources for customers utilizing the services provided by the SaaS and PaaS platforms.

[0180] In certain aspects, cloud infrastructure system 1502 may include infrastructure resources 1530 for providing resources used to provide various services to customers of the cloud infrastructure system. In one aspect, infrastructure resources 1530 may include a pre-integrated, optimized combination of hardware, such as servers, storage, and networking resources for running the services provided by the PaaS and SaaS platforms.

[0181] In some aspects, resources in cloud infrastructure system 1502 may be shared by multiple users and dynamically reallocated upon request. Additionally, resources may be allocated to users in different time zones. For example, cloud infrastructure system 1502 may allow a first set of users in a first time zone to utilize resources in the cloud infrastructure system for a specified period of time, and then reallocate those same resources to another set of users located in a different time zone, thereby maximizing resource utilization.

[0182] In certain aspects, several internal shared services 1532 may be provided that are shared by different components or modules of cloud infrastructure system 1502 and by the services provided by cloud infrastructure system 1502. These internal shared services may include, but are not limited to, security / identity services, integration services, enterprise repository services, enterprise manager services, virus scanning / whitelisting services, highly available backup and recovery services, services for enabling cloud support, email services, notification services, file transfer services, etc.

[0183] In certain aspects, cloud infrastructure system 1502 may provide comprehensive management of cloud services (e.g., SaaS services, PaaS services, and IaaS services) in the cloud infrastructure system. In one aspect, cloud management functionality may include functionality for provisioning, managing, and tracking customer subscriptions, etc. received by cloud infrastructure system 1502.

[0184] In one aspect, as shown, cloud management functionality may be provided by one or more modules, such as an order management module 1520, an order orchestration module 1522, an order provisioning module 1524, an order management / monitoring module 1526, and an identity management module 1528. These modules may include or be provided using one or more computers and / or servers. The one or more computers and / or servers may be general-purpose computers, dedicated server computers, server farms, server clusters, or any other suitable arrangement and / or combination.

[0185] At operation 1534, a customer using a client device, such as client device 1504, 1506, or 1508, may interact with cloud infrastructure system 1502 by requesting one or more services offered by cloud infrastructure system 1502 and ordering a subscription for one or more services offered by cloud infrastructure system 1502. In particular aspects, the customer may access and place a subscription order via cloud user interfaces (UIs), cloud UI 1512, cloud UI 1514, and / or cloud UI 1516. Order information received by cloud infrastructure system 1502 in response to a customer placing an order may include information identifying the customer and one or more services offered by cloud infrastructure system 1502 to which the customer subscribes.

[0186] After an order is placed by a customer, the order information is accepted via the cloud UI, 1512, 1514 and / or 1516.

[0187] In operation 1536, the order is stored in order database 1518. Order database 1518 may be one of several databases operated by cloud infrastructure system 1502 and in conjunction with other system elements.

[0188] At operation 1538, the order information is forwarded to the order management module 1520. In some cases, the order management module 1520 may be configured to perform billing and accounting functions for the order, such as confirming the order and registering the order after confirmation.

[0189] At operation 1540, information regarding the order is transmitted to the order orchestration module 1522. The order orchestration module 1522 may utilize this order information to orchestrate the provisioning of services and resources related to the order placed by the customer. In some cases, the order orchestration module 1522 may orchestrate the provisioning of resources to support services subscribed to using the services of the order provisioning module 1524.

[0190] In certain aspects, the order orchestration module 1522 enables management of the business flow associated with each order and applies business logic to determine whether the order should proceed to provisioning. At operation 1542, upon receiving a new subscription order, the order orchestration module 1522 sends a request to the order provisioning module 1524 to allocate and configure the resources needed to fulfill the subscription order. The order provisioning module 1524 enables the allocation of resources for the services subscribed to by the customer. The order provisioning module 1524 provides a level of abstraction between the cloud services provided by the system environment 1500 and the physical implementation layer used to provision the resources to provide the requested services. This allows the order orchestration module 1522 to be decoupled from implementation details, such as whether services and resources are actually provisioned on the fly or whether they are pre-provisioned and allocated only when requested.

[0191] In operation 1542, once the services and resources are provisioned, the order provisioning module 1524 of the cloud infrastructure system 1502 may send a notification to the customer on the client device 1504, 1506 and / or 1508 about the services provided.

[0192] At operation 1546, customer subscription orders may be managed and tracked by the order management / monitoring module 1526. In some cases, the order management / monitoring module 1526 may be configured to collect usage statistics regarding the services in the subscription order, such as the amount of storage used, the amount of data transferred, the number of users, and system uptime and system downtime.

[0193] In particular aspects, cloud infrastructure system 1502 may include identity management module 1528. Identity management module 1528 may be configured to provide identity services, such as access management and access authorization services, in cloud infrastructure system 1502. In some aspects, identity management module 1528 may control / manage information about customers who wish to use services offered by cloud infrastructure system 1502. Such information may include information authenticating the identities of such customers and information describing what operations those customers are authorized to perform on various system resources (e.g., files, directories, applications, communication ports, memory segments, etc.). Identity management module 1528 may also include management of descriptive information about each customer, as well as how that descriptive information can be accessed and modified and by whom.

[0194] 16 illustrates an exemplary computer system 1600 in which various aspects of the present invention may be implemented. System 1600 may be used to implement any of the computer systems described above. As shown, computer system 1600 includes a processing unit 1604 that communicates with several peripheral subsystems via a bus subsystem 1602. These peripheral subsystems may include a processing acceleration device 1606, an I / O subsystem 1608, a storage subsystem 1618, and a communication subsystem 1624. The storage subsystem 1618 includes a tangible computer-readable storage medium 1622 and the system memory 1610.

[0195] Bus subsystem 1602 provides a mechanism for allowing the various components and subsystems of computer system 1600 to communicate with each other as intended. While bus subsystem 1602 is illustrated as a single bus, alternative embodiments of the bus subsystem may utilize multiple buses. Bus subsystem 1602 may be any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, and a local bus using various bus architectures. For example, such architectures may include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus, which may be implemented as a Mezzanine bus manufactured in accordance with the IEEE P1686.1 standard.

[0196] Processing unit 1604, which may be implemented as one or more integrated circuits (e.g., conventional microprocessors or microcontrollers), controls the operation of computer system 1600. Processing unit 1604 may include one or more processors. These processors may include single-core or multi-core processors. In particular aspects, processing unit 1604 may be implemented as one or more independent processing units 1632 and / or 1634, each including a single-core or multi-core processor. In other aspects, processing unit 1604 may be implemented as a quad-core processing unit formed by incorporating two dual-core processors on a single chip.

[0197] In various aspects, the processing unit 1604 may execute various programs in response to program code and may maintain multiple simultaneously executing programs or processes. At any time, some or all of the program code being executed may reside on the processing unit 1604 and / or on the storage subsystem 1618. With appropriate programming, the processing unit 1604 may provide the various functions described above. The computer system 1600 may further include a processing acceleration unit 1606. The processing acceleration unit 1606 may include a digital signal processor (DSP) and / or a special purpose processor, etc.

[0198] The I / O subsystem 1608 may include user interface input devices and user interface output devices. User interface input devices may include pointing devices such as a keyboard, a mouse, or a trackball, a touchpad or a touchscreen integrated into a display, a scroll wheel, a click wheel, dials, buttons, switches, keypads, voice input devices with voice command recognition systems, microphones, and other types of input devices. User interface input devices may also include motion sensing and / or gesture recognition devices, such as a Microsoft Kinect® motion sensor, which allows a user to control and interact with input devices such as a Microsoft Xbox® 460 game controller through a natural user interface using gesture and voice commands. User interface input devices may also detect a user's eye actions (e.g., taking a photo and / or The user interface input device may include an eye gesture recognition device, such as the Google Glass® blink detector, that detects eye movements (e.g., "blinks" while making menu selections) and translates eye gestures into input to an input device (e.g., Google Glass®). Additionally, the user interface input device may include a voice recognition sensing device that allows a user to interact with a voice recognition system (e.g., the Siri® navigator) via voice commands.

[0199] User interface input devices also include, but are not limited to, 4D (three-dimensional) mice, joysticks or pointing sticks, gamepads, and graphic tablets, as well as audio / visual devices such as speakers, digital cameras, digital camcorders, portable media players, webcams, image scanners, fingerprint scanners, barcode readers, 4D scanners, 4D printers, laser range finders, and eye-tracking devices. Additionally, user interface input devices may include medical imaging input devices, such as computed tomography, magnetic resonance imaging, positron emission tomography, and ultrasound devices. User interface input devices may also include audio input devices, such as MIDI keyboards and digital musical instruments.

[0200] User interface output devices may include display subsystems, indicator lights, or non-visual display devices such as audio output devices. The display subsystem may be a flat-panel display such as one using a CRT (cathode ray tube), LCD (liquid crystal display), or plasma display, a projection device, a touch screen, etc. In general, use of the term "output device" is intended to include all manner of devices and mechanisms for outputting information from computer system 1600 to a user or to another computer. For example, user interface output devices may include, but are not limited to, various display devices that visually convey textual, graphical, and audio / visual information, such as monitors, printers, speakers, headphones, automobile navigation systems, drawing devices, audio output devices, and modems.

[0201] Computer system 1600 may also be configured with a storage subsystem 1618 that includes software elements illustrated as currently residing in system memory 1610. System memory 1610 may store program instructions that are loadable and executable on processing unit 1604, as well as data generated during the execution of these programs.

[0202] Depending on the configuration and type of computer system 1600, system memory 1610 may be volatile memory (such as RAM (random access memory)) and / or nonvolatile memory (such as ROM (read only memory), flash memory, etc.). RAM typically contains data and / or program modules that are immediately accessible to and / or currently being operated on and executed by the processing unit 1604. In some implementations, system memory 1610 may include several different types of memory, such as SRAM (static RAM) or DRAM (dynamic RAM). In some implementations, a basic input / output system (BIOS), containing the basic routines that help to transfer information between elements within computer system 1600, such as during start-up, may typically be stored in ROM. Also, by way of example, system memory 1610 includes application programs 1612, which may include client applications, a web browser, mid-tier applications, an RDBMS (relational database management system), etc.; program data 1614; and an operating system 1616. By way of example, operating system 1616 may include various versions of Microsoft Windows, Apple Macintosh, and / or Linux operating systems. The operating systems may include various commercially available UNIX or UNIX-like operating systems (including, but not limited to, various GNU / Linux operating systems, Google Chrome OS, etc.), and / or mobile operating systems such as iOS, Windows Phone, Android OS, BlackBerry 15 OS, and Palm OS operating systems.

[0203] The storage subsystem 1618 may also provide a tangible, computer-readable storage medium for storing basic programming and data constructs that provide the functionality of certain aspects. Software (programs, code modules, instructions) that, when executed by a processor, provide the functionality described above may be stored in the storage subsystem 1618. These software modules or instructions may be executed by the processing unit 1604. The storage subsystem 1618 may also provide a repository for storing data used in accordance with the present invention.

[0204] Storage subsystem 1600 may also include a computer-readable storage medium reader 1620 that may be further coupled to a computer-readable storage medium 1622. In conjunction with system memory 1610, and optionally in combination with system memory 1610, computer-readable storage medium 1622 may comprehensively represent remote, local, fixed, and / or removable storage devices, as well as storage media for containing, storing, transmitting, and retrieving computer-readable information temporarily and / or permanently.

[0205] The computer-readable storage medium 1622 containing the code or portions of code may include any suitable medium known or used in the art, including, but not limited to, storage and communication media such as volatile and nonvolatile, removable and non-removable media implemented in any method and technology for storing and / or transmitting information. This may include tangible, non-transitory computer-readable storage media such as RAM, ROM, Electronically Erasable Programmable ROM (EEPROM), flash memory, or other memory technology, CD-ROM, Digital Versatile Disk (DVD), or other optical storage devices, magnetic cassettes, magnetic tape, magnetic disk storage devices, or other magnetic storage devices, or other tangible computer-readable media. Explicitly, this may also include intangible, transitory computer-readable media such as data signals, data transmissions, or other media that can be used to transmit the desired information and that can be accessed by computer system 1600.

[0206] By way of example, computer-readable storage medium 1622 may include hard disk drives that read from or write to fixed, nonvolatile magnetic media, magnetic disk drives that read from or write to removable, nonvolatile magnetic disks, and optical disk drives that read from or write to removable, nonvolatile optical disks or other optical media, such as CD-ROMs, DVDs, and Blu-Ray® disks. Computer-readable storage medium 1622 may include, but is not limited to, Zip® drives, flash memory cards, Universal Serial Bus (USB) flash drives, Secure Digital (SD) cards, DVD disks, digital video tapes, etc. Additionally, computer-readable storage medium 1622 may include solid-state drives (SSDs) based on nonvolatile memory, such as flash memory-based solid-state drives (SSDs), enterprise flash drives, solid-state ROMs, and volatile memory, such as solid-state RAM, dynamic RAM, static RAM, and DRAM-based SSDs. The disk drives and their associated computer-readable media may provide non-volatile storage of computer-readable instructions, data structures, program modules, and other data for computer system 1600.

[0207] The communications subsystem 1624 provides an interface to other computer systems and networks. The communications subsystem 1624 serves as an interface for receiving data from the computer system 1600 and transmitting data from the computer system 1600 to other systems. For example, the communications subsystem 1624 may enable the computer system 1600 to connect to one or more devices over the Internet. In some aspects, the communications subsystem 1624 may use a wireless network (e.g., cellular technology, 4G, 4G, or EDGE (Enhanced Data Rates)). The communications subsystem 1624 may include a Radio Frequency (RF) transceiver component for accessing a wireless voice or / and data network (using next generation data network technologies such as Wireless LAN for Global Evolution (WLAN), WiFi (IEEE 802.28 family of standards), other mobile communications technologies, or any combination thereof), a Global Positioning System (GPS) receiver component, and / or other components. In some aspects, the communications subsystem 1624 can provide wired network connectivity (e.g., Ethernet) in addition to or instead of a wireless interface.

[0208] In some aspects, the communications subsystem 1624 may receive incoming communications in the form of structured and / or unstructured data feeds 1626, event streams 1628, event updates 1630, etc., on behalf of one or more users who may utilize the computer system 1600.

[0209] As an example, the communications subsystem 1624 may be configured to receive unstructured data feeds 1626 in real time from users of social media networks and / or other communications services, such as web feeds such as Twitter® feeds, Facebook® updates, RSS (Rich Site Summary) feeds, and / or real-time updates from one or more third-party information sources.

[0210] Additionally, the communications subsystem 1624 may be configured to receive data in the form of a continuous data stream, which may include an event stream 1628 of real-time events and / or event updates 1630 that has essentially no apparent end, that is continuous or infinite. Applications that generate continuous data may include, for example, sensor data applications, tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, and the like.

[0211] The communications subsystem 1624 may also be configured to output structured and / or unstructured data feeds 1626, event streams 1628, event updates 1630, etc. to one or more databases that may be in communication with one or more streaming data source computers connected to the computer system 1600.

[0212] The computer system 1600 may be one of a variety of types, including a palm-sized portable device (e.g., an iPhone® mobile phone, an IPad® computing tablet, a PDA), a wearable device (e.g., a Google Glass® head-mounted display), a PC, a workstation, a mainframe, a kiosk, a server rack, or other data processing system.

[0213] Due to the ever-changing nature of computers and networks, the illustrated description of computer system 1600 is illustrative only. Many other configurations are possible having more or fewer components than the illustrated system. For example, customized hardware may be used, and / or particular elements may be implemented in hardware, firmware, software (including applets), or a combination thereof. Furthermore, connection to other computing devices, such as network input / output devices, may be employed. Based on the disclosure and teachings provided herein, one of ordinary skill in the art will recognize other ways and / or methods for implementing various aspects.

[0214] While aspects of the invention have been described in the foregoing specification with reference to specific examples thereof, those skilled in the art will recognize that the invention is not limited thereto. The various features and aspects of the invention described above may be used individually or jointly. Moreover, aspects may be utilized in any number of environments and applications beyond those described herein without departing from the broader spirit and scope of the specification. Accordingly, the specification and accompanying drawings are to be regarded as illustrative rather than limiting.

Claims

1. 1. A method for automatically instrumenting a web application, comprising: Identifying from code of the web application that the web application includes an event triggered by a user interaction; and associating the event with a tracer, the tracer configured to log tracing information based on execution of a first set of operations triggered by the event, and obtain a first measure of performance of a first span, the first span including a first set of operations, the first measure of performance including one or more of (i) a number of processing cycles to execute the first set of operations, and (ii) an execution time of the first set of operations, the method further comprising: specifying in the code that execution of the first set of operations causes a request to be made to a server; and associating the request with the tracer, wherein the tracer is configured to log tracing information based on execution of a second set of operations caused by the request and obtain a second measure of performance of a second span, the second span including the second set of operations, the second span being a child span of the first span, and the second measure of performance comprising one or more of (i) a number of processing cycles to execute the second set of operations and (ii) an execution time of the second set of operations.

2. receiving a priority of the first span; determining that the priority is outside an acceptable priority range; 2. The method of claim 1, further comprising: considering the first span as a proxy span based on the determining, wherein considering the first span as a proxy span causes the tracer to not log information based on execution of the first set of operations.

3. accessing the updated priority of the first span; 3. The method of claim 2, further comprising: in response to determining that the updated priority is within the priority tolerance, instantiating the tracer and newly considering the first span as a span.

4. instantiating the tracer and the tracer upon initiation of the web application; automatically logging the start of the first span based on the triggering of the event; automatically logging the start of the second span based on the trigger of the request; automatically logging the end of the second span based on completion of the second set of operations; 2. The method of claim 1, further comprising automatically logging the end of the first span based on completion of the first set of operations.

5. sending the request to an external server based on a trigger of the request; automatically logging the start of the second span on the external server based on the sending; executing the second set of operations on the external server; automatically logging the end of the second span on the external server; The method of claim 1 , further comprising receiving an indication of an end of the second span from the external server.

6. accessing a priority of the first span; instantiating the tracer based on the priority of the first span and the start of the web application; automatically logging the start of the second span based on the trigger of the request; 2. The method of claim 1, further comprising automatically logging the end of the second span based on completion of the second set of operations.

7. the request causes the server to perform the second set of operations; The method of claim 6 , wherein automatically logging the end of the second span includes receiving a header from the server that includes information about the second span.

8. 1. A system comprising: a non-transitory computer-readable medium having computer-executable program instructions stored thereon; and at least one processor communicatively coupled to the non-transitory computer-readable medium and capable of executing the computer-executable program instructions, the computer-executable program instructions comprising: instructions for identifying from code of a web application that the web application includes an event triggered by a user interaction; and instructions for associating the event with a tracer, the tracer being configured to log tracing information based on execution of a first set of operations triggered by the event and obtain a first measure of performance of a first span, the first span including a first set of operations, the first measure of performance including one or more of (i) a number of processing cycles for executing the first set of operations, and (ii) an execution time of the first set of operations; and the computer-executable program instructions further comprising: instructions in the code to specify that execution of the first set of operations causes a request to be made to a server; and instructions for associating the request with the tracer, wherein the tracer is configured to log tracing information based on execution of a second set of operations caused by the request and obtain a second measure of performance of a second span, the second span including the second set of operations, the second span being a child span of the first span, and the second measure of performance comprising one or more of (i) a number of processing cycles for executing the second set of operations and (ii) an execution time of the second set of operations.

9. The computer-executable program instructions include: instructions for receiving a priority for the first span; instructions for determining that the priority is outside an acceptable range of priorities; and instructions for treating the first span as a proxy span based on the determining, wherein the instructions for treating the first span as a proxy span cause the tracer to not log information based on execution of the first set of operations.

10. The computer-executable program instructions include: instructions for accessing the updated priority of the first span; and instructions for instantiating the tracer and newly considering the first span as a span in response to determining that the updated priority is within the priority tolerance range.

11. The computer-executable instructions include: instructions for sending the request to an external server based on a trigger of the request; instructions for automatically logging the start of the second span on the external server based on the sending; instructions for executing the second set of operations on the external server; instructions for automatically logging the completion of the second span on the external server; and instructions for receiving an indication of an end of the second span from the external server.

12. The computer-executable instructions include: instructions for instantiating the tracer and the tracer upon initiation of the web application; instructions for automatically logging the start of the first span based on the triggering of the event; instructions for automatically logging the start of the second span based on the request trigger; instructions for automatically logging the end of the second span based on completion of the second set of operations; and instructions for automatically logging the end of the first span based on completion of the first set of operations.

13. The computer-executable instructions include: instructions for accessing the priority of the first span; instructions for instantiating the tracer based on the priority of the first span and the start of the web application; instructions for automatically logging the start of the second span based on the request trigger; and instructions for automatically logging the end of the second span based on completion of the second set of operations.

14. The computer-executable instructions include: the request includes instructions to cause the server to perform the second set of operations; The system of claim 13 , wherein automatically logging the end of the second span includes receiving a header from the server that includes information about the second span.

15. A non-transitory computer-readable medium having stored thereon computer-executable program instructions, the computer-executable program instructions, when executed by a processor, performing operations including: Identifying from code of a web application that the web application includes an event triggered by a user interaction; and associating the event with a tracer, the tracer configured to log tracing information based on execution of a first set of operations triggered by the event, and obtain a first measure of performance of a first span, the first span including a first set of operations, the first measure of performance including one or more of (i) a number of processing cycles to execute the first set of operations, and (ii) an execution time of the first set of operations, the operations further comprising: specifying in the code that execution of the first set of operations causes a request to be made to a server; and associating the request with the tracer, wherein the tracer is configured to log tracing information based on execution of a second set of operations caused by the request and obtain a second measure of performance of a second span, the second span including the second set of operations, the second span being a child span of the first span, and the second measure of performance comprising one or more of (i) a number of processing cycles for executing the second set of operations and (ii) an execution time of the second set of operations.

16. The operation is receiving a priority of the first span; determining that the priority is outside an acceptable priority range; 16. The non-transitory computer-readable medium of claim 15, further comprising: considering the first span as a proxy span based on the determining, wherein considering the first span as a proxy span causes the tracer to not log information based on execution of the first set of operations.

17. The operation is accessing the updated priority of the first span; 17. The non-transitory computer-readable medium of claim 16, further comprising: in response to determining that the updated priority is within the priority tolerance range, instantiating the tracer and newly considering the first span as a span.

18. The operation is sending the request to an external server based on a trigger of the request; automatically logging the start of the second span on the external server based on the sending; executing the second set of operations on the external server; automatically logging the end of the second span on the external server; and receiving an indication of an end of the second span from the external server.

19. The operation is instantiating the tracer and the tracer upon initiation of the web application; automatically logging the start of the first span based on the triggering of the event; automatically logging the start of the second span based on the trigger of the request; automatically logging the end of the second span based on completion of the second set of operations; and automatically logging an end of the first span based on completion of the first set of operations.

20. The operation is accessing a priority of the first span; instantiating the tracer based on the priority of the first span and the start of the web application; automatically logging the start of the second span based on the trigger of the request; and automatically logging an end of the second span based on completion of the second set of operations.