Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of software development and testing
Technical guide

Read element attributes in Playwright

Read current HTML attributes with getAttribute(), assert them with toHaveAttribute(), and distinguish missing attributes from empty values.

Illustration of software development and testing
Technical guide

Get and assert the current URL in Playwright

Read page.url() synchronously, use retrying URL assertions, and handle query parameters, frames, and popups.

Illustration of software development and testing
Technical guide

Mock dates and timers in Playwright

Use the Clock API to fix Date values or advance timers, with explicit time zones and clear browser-context boundaries.

Illustration of software development and testing
Technical guide

Work with multiple elements in Playwright

Iterate over locators, read list snapshots, and assert ordered collections without overlooking dynamic-list changes.

Illustration of software development and testing
Technical guide

Pause, debug, and wait in Playwright

Use page.pause() for interactive debugging and condition-based waits for unattended tests, with separate timeout settings.

Illustration of software development and testing
Technical guide

Configure Playwright test, assertion, and action timeouts

Set the timeout for the operation that is actually failing, and account for the overall test budget and hook limits.

Illustration of server operations and log analysis
Explainer

Understand Nginx 499 client-closed requests

Investigate client cancellations and timeout mismatches using request context instead of treating every 499 as either harmless noise or server slowness.

Illustration accompanying a Node.js development guide
Technical guide

Read POST request data in Node.js

Parse a bounded JSON request body with native HTTP or Express, handle malformed input, and distinguish JSON parsing from validation.

Illustration of Git branches and version history
Technical guide

Display readable Git branch graphs

Draw commit topology in the terminal, add a useful alias, and filter the graph without accidentally retaining every reference.

Metrics monitoring and troubleshooting
Explainer

Convert CPU seconds into CPU utilization with PromQL

Convert cumulative CPU time into cores used, host utilization, and container-limit percentages without assuming a fixed CPU quota period.

Metrics monitoring and troubleshooting
Explainer

Add target-specific labels to a Prometheus scrape

Assign labels to individual static targets or derive them from service discovery metadata, with examples and label-conflict behavior.

Metrics monitoring and troubleshooting
Explainer

List the metrics available in Prometheus

Use the label-values API to list metric names, narrow results by job, inspect exporter output, and distinguish retained data from current series.