Atatus APM automatically instruments all web requests. In case you want to instrument web sockets calls, background jobs, and unsupported databases, you need to use custom instrumentation as follows:
Transaction timing consists of spans(aka layers). Every transaction must have at least one span. Any database calls will be added automatically as a span to the transaction.