Use Observability to monitor the performance of an application running on Edgio. Key tools and methods for tracking performance are described below.
  • Use our Real User Monitoring (RUM) library (@edgio/rum) to track Core Web Vitals and identify areas for improvement.
  • If you are using our CDN-as-code approach to CDN configuration, then you may use our DevTools to monitor the impact of your caching and predictive prefetching configurations on your site in real time. This allows use to identify and remediate issues.
  • Analyze the performance for specific requests through the x-edg-t. This response header contains the time the request spent at each layer of the Edgio stack.
  • Track code execution time through our @edgio/core/timing module.

Tracking your Own Timings

You can use the @edgio/core/timing module to track how long it takes parts of your code to execute. A common case is tracking how long it takes to fetch a result from an upstream API. For example:
1import Timing from '@edgio/core/timing'
3const timing = new Timing('api').start()
5try {
6 const result = await fetch(API_URL)
7} finally {
8 timing.end() // this will result in a `x-edg-user-t: api=(millis)` response header
  • All timings are returned in an x-edg-user-t response header.
  • The value is a comma-delimited list of pairs of the form (name)=(duration-in-millis).
  • Any timings that are not ended before the response is sent will have a value of na