grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
690 stars 62 forks source link

Update types to work with v6 data routers #584

Closed codecapitano closed 2 months ago

codecapitano commented 2 months ago

Why

There was type issue with newest react (data) router. Add specific types for Index and NonIndex routes. We took the necessary properties from the RouteObject type as defined by the remix/react router.

What

Update types in withFaroRouterInstrumentation to satisfy the React Router RouteObject type.

Links

Screenshots

Before

Screenshot 2024-05-06 at 12 41 41

After

Screenshot 2024-05-06 at 12 41 10

Checklist