function shouldSkipInstrumentation(config, shim) {
  if (config?.ai_monitoring?.enabled !== true) {
    shim.logger.debug('config.ai_monitoring.enabled is set to false.')
    return true
  }

  const { pkgVersion } = shim
  return semver.lt(pkgVersion, MIN_VERSION)
}
Checks if we should skip instrumentation.
Currently, it checks if `ai_monitoring.enabled` is true
and the package version >= 4.0.0

@param {object} config agent config
@param {Shim} shim instance of shim
@returns {boolean} flag if instrumentation should be skipped