Professor Sloth

Security Update

In the wake of AI-fueld security incidents, we're auditing all our systems and practices. Here's how we protect the Request Metrics agent from attack, and how to host it yourself.

Metadata

Request Metrics supports the inclusion of arbitrary data which is then tied to all performance, event and error data captured on the page. This metadata is useful for anything important to you including environment, code versions, user cohorts or A/B testing variants.

Request Metrics supports the inclusion of arbitrary data which is then tied to all performance, event and error data captured on the page. This metadata is useful for anything important to you including environment, code versions, user cohorts or A/B testing variants.

Send Metadata

Metadata can be added at any point in the page load. The agent includes all added metadata on every data point that is sent. Metadata keys and values must be strings:

RM.addMetadata({
  "sessionId": "abc123456",
  "paymentsVersion": "1.24.6",
  "test_headlines": "variant-1b"
});

TIP: It is best to add metadata at the same point that RM.install() is called. If RM.addMetadata() is called later, data may be sent without metadata included.

Found a mistake? Let us know!