Frontend Instrumentation – JavaScript
Overview
Installation
Using NPM:
npm install @grafana/faro-web-sdk
npm install @grafana/faro-web-tracingUsing Yarn:
yarn add @grafana/faro-web-sdk
yarn add @grafana/faro-web-tracingBasic usage
Setup with React Router (optional)
Logged-in user synchronization
Example with Next.js
Exemplo de uso em pages/_app.tsx
pages/_app.tsxCustom events, logs, and metrics
Custom events:
Custom logs:
Custom metrics:
Best practices
Troubleshooting
Problem
Probable cause
Solution
Authentication and collector URL
Testing your instrumentation
Made with love by Elven Observability
Last updated
Was this helpful?

