setupOnce(addGlobalEventProcessor, getCurrentHub) {
        this.#knex.on('query', (query) => {
            const scope = getCurrentHub().getScope();
            const parentSpan = scope?.getSpan();

            const span = parentSpan?.startChild({
                op: 'db.query',
                description: query.sql
            });

            if (span) {
                this.#spanCache.set(query.__knexQueryUid, span);
            }
        });

        const handleQueryExecuted = (err, query) => {
            const queryId = query.__knexQueryUid;
            const span = this.#spanCache.get(queryId);

            if (span) {
                span.finish();

                this.#spanCache.delete(queryId);
            }
        };

        this.#knex.on('query-response', handleQueryExecuted);
        this.#knex.on('query-error', handleQueryExecuted);
    }
@param {Function} addGlobalEventProcessor
@param {Function} getCurrentHub