The pytest_plugin_registered hook has a new plugin_name parameter containing the name by which plugin is registered.