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
688 stars 62 forks source link

590 grafana cloud create new session if 400 session invalid is returned #591

Closed codecapitano closed 1 month ago

codecapitano commented 1 month ago

Why

We noticed an edge case where stored session timings drift and the collector rejects session even if Faro automatically extend the session.

The receiver was updated to deal with this. Anyways to be on the save side we will handle the response in Faro and create a new Session if needed.

What

The Faro receiver now returns a 202 with the custom header X-Faro-Session-Status with value invalid if a session is invalid. The header is not attached for 202 response of a valid session.

Links

Checklist