Package apm provides an API for tracing transactions and capturing errors, sending the data to Elastic APM.