Machine Runner:
- The machine runner can send metrics to an OpenTelemetry collector over OTLP. Metrics are off by default. To turn them on, set
observability.metrics_destinationtootelandobservability.otel.hostto the host of your collector. Theobservability.otelsection also hasport,protocol,secureandtemporality. TheCIRCLECI_RUNNER_OBSERVABILITY_*environment variables also set these values. Each metric has thecom.circleci.runner.nametag. The runner sends:circleci.runner.claim, a histogram in milliseconds of the polls for new work.circleci.runner.task.startup, a histogram in milliseconds of the time the runner takes to start a task.circleci.runner.task.running, a gauge of the tasks that the runner works on.
The runner sends no traces. The container runner does not send metrics. Refer to Send machine runner 3 metrics to OpenTelemetry.
- The runner metrics use delta temporality by default. To send cumulative metrics, for example to a collector with a Prometheus exporter, set
observability.otel.temporalitytocumulative. - On Windows, the runner stops the processes that a task leaves running when the task ends. It removes the working directory only after those processes have exited. To keep a process running after a job ends, start it outside the runner, for example as a Windows service.
Container Runner:
- The garbage collector no longer deletes a running task pod when the pod’s node joins the cluster during a collection run, or when the pod belongs to another live container-agent replica. Before, this could cancel jobs during node scale-up when you ran more than one replica.
Both Machine and Container Runner:
- Log lines look different in every log format (
color,textandjson), and some field names change. If you parse runner logs, check your parsers. At theinfolevel, the runner now logs routine spans, such as empty polls for new work and health checks. Every request to CircleCI sends the runner’s ownUser-Agent. The Go memory limit is 90% of the cgroup memory limit, or of system memory if there is no cgroup limit, unless you setGOMEMLIMIT.