pkanal / otel-react-example

An example react app set up for tracing with OpenTelemetry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenTelemetry React Example

An example react app set up for tracing with OpenTelemetry.

Important Files

  • src/tracing.js - OpenTelemetry setup code
  • src/web-vitals-autoinstrumentation - Instrumentation for Core Web Vitals

Run the app

Install dependencies:

npm install

Run the app locally:

npm start

You should see spans logged to the console.

About

An example react app set up for tracing with OpenTelemetry

License:Apache License 2.0


Languages

Language:JavaScript 67.4%Language:HTML 21.2%Language:CSS 11.5%