An example react app set up for tracing with OpenTelemetry.
src/tracing.js
- OpenTelemetry setup codesrc/web-vitals-autoinstrumentation
- Instrumentation for Core Web Vitals
Install dependencies:
npm install
Run the app locally:
npm start
You should see spans logged to the console.