Synthetic monitoring for critical user paths

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Setting Up Synthetic Monitoring (Regular Critical Path Checks)

Synthetic Monitoring—simulating real user actions on schedule. Script opens browser, goes through scenario (e.g., checkout), records: does each step work, how long does it take, where are errors? This detects problems before users notice.

Difference from Uptime Monitoring

Simple ping to GET / — not synthetic monitoring. It checks server responds. Synthetic monitoring checks business functions work:

  • User can register
  • Search returns results
  • Add to cart works
  • Payment form opens

Critical Paths for Monitoring

Priority—paths critical for revenue and retention:

E-commerce:

  1. Search product → product page → add to cart → start checkout
  2. Login → account → order history
  3. User registration

SaaS application:

  1. Login → dashboard → key feature
  2. Create new object (project/document/task)
  3. API endpoints (for B2B clients)

Content site:

  1. Search → results → article
  2. Newsletter signup form
  3. Contact form

Playwright-based Synthetic Monitoring with Checkly

// checkly: checkout-flow.spec.js
const { chromium } = require('playwright')
const { expect } = require('@playwright/test')

async function checkoutFlow() {
  const browser = await chromium.launch()
  const page = await browser.newPage()

  try {
    // Step 1: Open catalog
    await page.goto('https://example.com/catalog')
    await expect(page.locator('.product-grid')).toBeVisible()

    // Step 2: Open first product
    await page.locator('.product-card').first().click()
    await expect(page.locator('[data-testid="product-title"]')).toBeVisible()

    // Step 3: Add to cart
    await page.locator('[data-testid="add-to-cart"]').click()
    await expect(page.locator('[data-testid="cart-count"]')).toContainText('1')

    // Step 4: Go to cart
    await page.goto('https://example.com/cart')
    await expect(page.locator('.cart-items')).toContainText('1 item')

    console.log('Checkout flow: PASS')
  } finally {
    await browser.close()
  }
}

Datadog Synthetic Tests

# Create Synthetic Browser Test via API
import requests

test_config = {
    "name": "Checkout Flow - Production",
    "type": "browser",
    "config": {
        "request": {
            "url": "https://example.com",
            "method": "GET"
        }
    },
    "options": {
        "tick_every": 300,  # Every 5 minutes
        "min_failure_duration": 120,
        "min_location_failed": 2,
        "retry": {"count": 2, "interval": 300}
    },
    "locations": [
        "aws:eu-west-1",
        "aws:us-east-1",
        "aws:ap-northeast-1"
    ],
    "status": "live",
    "tags": ["team:frontend", "env:production"]
}

requests.post(
    "https://api.datadoghq.com/api/v1/synthetics/tests/browser",
    headers={"DD-API-KEY": API_KEY, "DD-APPLICATION-KEY": APP_KEY},
    json=test_config
)

Playwright + GitHub Actions: Self-Hosted Synthetic Monitoring

For minimal budget—GitHub Actions Cron:

# .github/workflows/synthetic-monitoring.yml
name: Synthetic Monitoring

on:
  schedule:
    - cron: '*/5 * * * *'  # Every 5 minutes
  workflow_dispatch:

jobs:
  check-critical-paths:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Playwright
        run: npx playwright install chromium

      - name: Run synthetic checks
        env:
          APP_URL: ${{ vars.PRODUCTION_URL }}
          TEST_USER_EMAIL: ${{ secrets.SYNTHETIC_USER_EMAIL }}
          TEST_USER_PASSWORD: ${{ secrets.SYNTHETIC_USER_PASSWORD }}
        run: npx playwright test tests/synthetic/

      - name: Notify on failure
        if: failure()
        run: |
          curl -X POST "$SLACK_WEBHOOK" \
            -d '{"text": "Synthetic monitoring FAILED: checkout flow"}'
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Limitation: GitHub Actions Cron doesn't guarantee exact execution time—delays up to 5-15 minutes. For precise 1-minute monitoring, use managed service.

Managing Test Data

Synthetic tests require test accounts and data:

  • Separate [email protected] user with production account
  • Payment method: test Stripe card (4242 4242 4242 4242)
  • Mark orders from synthetic user with tag, exclude from business analytics
  • Regularly clean test data (cart, drafts)

Metrics and Alerts

Key synthetic monitoring metrics:

  • Availability %—percentage of successful runs
  • Step duration—time per individual step
  • Total flow duration—total scenario time
  • First failure step—where it broke

Alert: if 2 of 3 checks from different regions fail → critical alert to PagerDuty.

Timeline

  • Checkly / Datadog Synthetic (managed)—2-3 days for scenarios
  • GitHub Actions cron + Playwright—2-3 days
  • Test accounts + data cleanup—1 day
  • Alerts + incident management integration—1 day