Guance Learn

Observability guides

Practical, source-backed guides for instrumenting, operating, and improving production systems.

Illustration of logs flowing through a collection pipeline
Technical guide

12 logging best practices for useful, manageable production logs

Design structured production logs with consistent levels, useful context, deliberate sampling, request summaries, retention, privacy controls, and measurable overhead.

Illustration of structured log records passing through a collection pipeline
Technical guide

Logrus: structured Go logging and a practical migration path

Use Logrus fields, JSON formatters, and synchronous hooks correctly; evaluate maintenance mode, rotation, and migration without breaking log queries.

Illustration of logs flowing through a collection pipeline
Technical guide

Loguru in Python: JSON logs, context, and exception handling

Configure Loguru sinks, compact JSON, request context, safe exception behavior, standard logging interception, and queue completion before collecting in Guance.

Illustration of logs flowing through a collection pipeline
Technical guide

MongoDB logging: JSON fields, rotation, and slow-operation profiling

Configure MongoDB systemLog, parse diagnostic JSON, rotate files correctly, and scope profiler settings and overhead before collecting logs in Guance.

Illustration of application logs flowing through a collection pipeline
Technical guide

Configure Monolog channels, JSON logs, and exception handling

Use Monolog 3 handlers, processors, and formatters to preserve request context and exception traces, then verify PHP log collection in Guance.

Illustration of logs flowing through a collection pipeline
Technical guide

Morgan logging: Express access logs, request IDs, and JSON

Add Morgan to Express, build structured request logs, distinguish header and total response time, integrate Winston, and verify fields in Guance.

Request signals passing through a filter into successful and failed outcomes
Technical guide

Nginx logging: access logs, JSON formats, and error levels

Configure Nginx access and error logs, emit valid JSON, filter requests deliberately, and verify parsing and trace correlation in Guance.

Illustration of application logs flowing through a collection pipeline
Technical guide

Configure NLog routing, structured output, and file retention

Set up NLog targets and rules, JSON properties, NLog 6 archiving, asynchronous buffers, and ASP.NET Core integration, then verify collection in Guance.

Illustration of logs flowing through a collection pipeline
Technical guide

Eleven Node.js logging practices for production services

Build a consistent Node.js logging contract with structured fields, severity, request context, error details, redaction, and verified delivery.

Illustration of logs flowing through a collection pipeline
Technical guide

Pino logging in Node.js: fields, errors, transports, and redaction

Configure Pino JSON logs, child loggers, error serialization, redaction, worker transports, and crash diagnostics, then verify collection in Guance.

A testing station inspecting components for defects
Technical guide

Get started with the built-in Node.js test runner

Write and run Node.js tests with node:test, strict assertions, subtests, mocks, hooks, coverage, reporters, and an HTTP server test that cleans up its resources.

Illustration of connected application signals and engineering workflows
Technical guide

Deploy OpenTelemetry Collector on Kubernetes with Helm

Configure a version-pinned Collector Helm chart, choose DaemonSet or Deployment, and verify trace export to a matching DataKit endpoint.