adobe / helix-rum-collector

Collect RUM data with Fastly Compute@Edge
Apache License 2.0
3 stars 7 forks source link
fastly helix helix2 helix3 rum service

helix-rum-collector

Collect RUM data with Fastly Compute@Edge

This service is used to collect RUM (Real User Monitoring) Data, specifically Core Web Vitals snapshots, for Helix websites. It is deployed to Fastly's Compute@Edge edge computing service and will store the collected data using Fastly's real-time log forwarding in Coralogix and Google BigQuery for further analysis.

Usage

$ curl -X POST https://rum.hlx3.page/.rum/1  -d '{"cwv":{ "CLS": 1.0, "LCP": 1.0, "FID": 4 }, "id": "blablub", "weight": 2}' X-Forwarded-Host:example.com

API

The payload of a typical request looks like this:

{
  "id": "-1617507985-1629963441842-d6998c875b962",
  "weight": 100,
  "generation": "test-optimize-fonts",
  "referrer": "https://example.com/index.html",
  "cwv": {
    "CLS": 0.0097652112,
    "LCP": 800.7,
    "FID": 10.8999999762,
  }
}

Supported Methods

Supported Headers