def METHOD_NAME(self, context: CoreContext):
    config = OpenLineageConfiguration(context.configuration)
    if config.url():
        log.debug(f"Open lineage client is enabled at url: {config.url()}")
        self.__client = setup_client(config.url(), config.api_key())
    elif context.state.get(OPENLINEAGE_LOGGER_KEY) is not None:
        self.__client = context.state.get(OPENLINEAGE_LOGGER_KEY)
        log.debug(
            f"Open lineage client custom implementation set. Type: {type(self.__client)} "
        )
    else:
        log.debug(
            "No OpenLineage url set. Collecting openlineage data is disabled."
        )