NGINX

A log format and a mirror directive. No module to compile.

Take the write key

Everything this install sends is tagged with it, so one key per environment keeps staging out of your production numbers.

Generating…

Install

Nothing to install — the change is configuration.

No package needed

Add it to NGINX

Paste this where the request path is assembled. The account callback is the only part you have to fill in — it is what turns a request into a customer.

nginx
log_format clearplane escape=json
  '{"ts":"$time_iso8601","account":"$http_x_org_id",'
  '"route":"$uri","status":$status,"ms":$request_time}';

access_log syslog:server=ingest.clearplane.com:6514 clearplane;

Name this install

Name it for the deployment rather than the framework. Two Next.js apps in one workspace is the normal case, and “Next.js” twice helps nobody.

Environment

Events land in events_nginx and are queryable from Chat, models, and SQL.