Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Overview

The React Load plugin provides auto-instrumentation for react lifecycle methods. This example uses the plugin and exports them to the console.

The example will show traces belong to the mounting, updating, and umounting flows as defined by React 16.4+. In this example we can show how this plugin can also be used in a Preact app.

Installation

# from this directory
npm install

Run the example

Run docker

# from this directory
npm run docker:start

Run app

# from this directory
npm run build
npm start

By default, the application runs on port 8080.

Open Zipkin page at http://localhost:9411/zipkin/ - you should be able to see the spans in zipkin

Screenshots of traces

Take note of the parent-child relationships.

First load

Upon loading, http://localhost:8080 mounting spans will be exported

Pressing 'Enter'

Here we can see the previous component unmounting and the new component mounting.

Pressing 'Make Request'

While in loading state:

After a few seconds (when the request is fulfilled):

Useful links

LICENSE

Apache 2.0 - See LICENSE for more information.