function getRecorder({ parsed, operation, system }) {
  if (operation) {
    /**
     * this metrics recorder expects to bound with
     * a datastore-shim. But really the only thing it needs
     * is `_metrics` with values for PREFIX and ALL
     * This assigns what it needs to properly create
     * the db operation time slice metrics
     */
    const scope = {}
    scope._metrics = {
      PREFIX: system,
      ALL: metrics.DB.PREFIX + system + '/' + metrics.ALL
    }
    return recordOperationMetrics.bind(scope)
  } else {
    return recordQueryMetrics.bind(parsed)
  }
}
Assigns the appropriate timeslice metrics recorder
based on the otel span.

@param {object} params to fn
@param {ParsedStatement} params.parsed parsed statement of call
@param {boolean} params.operation if span is an operation
@param {string} params.system `db.system` value of otel span
@returns {function} returns a timeslice metrics recorder function based on span