registerCoreInstrumentation(agent) {
    instrumentProcessMethods(agent)
    instrumentUndiciFetch(agent)

    // Instrument each of the core modules.
    for (const [mojule, core] of Object.entries(CORE_INSTRUMENTATION)) {
      if (agent.config.instrumentation?.[mojule].enabled === false) {
        logger.warn(
            `Instrumentation for ${mojule} has been disabled via 'config.instrumentation.${mojule}.enabled. Not instrumenting package`
        )
      } else if (core.file) {
        const filePath = path.join(__dirname, 'instrumentation', 'core', core.file)
        let uninstrumented = null

        try {
          uninstrumented = require(mojule)
        } catch (err) {
          logger.trace('Could not load core module %s got error %s', mojule, err)
        }

        const shim = shims.createShimFromType({
          type: core.type,
          agent,
          moduleName: mojule,
          resolvedName: mojule
        })
        applyDebugState(shim, core, false)
        _firstPartyInstrumentation(agent, filePath, shim, uninstrumented, mojule)
      }
    }
  }
Registers all instrumentation for Node.js core libraries.

@param {object} agent NR agent