def METHOD_NAME(self, **kwargs):
    """Instrument the library"""
    # 判断是否使用
    if not settings.OPEN_OTLP:
        return
    if self.has_instrument:
        return
    # 初始化SDK 配置服务名称、bk_data_id和采样配置
    tracer_provider = TracerProvider(
        resource=Resource.create(
            {
                "service.name": settings.OTLP_SERVICE_NAME,
                "bk_data_id": int(settings.OTLP_DATA_ID),
            }
        )
    )
    # 配置grpc上报exporter配置
    otlp_exporter = OTLPSpanExporter(endpoint=settings.OTLP_GRPC_HOST)
    span_processor = LazyBatchSpanProcessor(otlp_exporter)
    tracer_provider.add_span_processor(span_processor)
    # 注入trace配置
    trace.set_tracer_provider(tracer_provider)
    # 安装插件
    DjangoInstrumentor().instrument(response_hook=django_response_hook)
    RedisInstrumentor().instrument()
    RequestsInstrumentor().instrument(tracer_provider=tracer_provider, span_callback=requests_callback)
    CeleryInstrumentor().instrument(tracer_provider=tracer_provider)
    LoggingInstrumentor().instrument()
    dbapi.wrap_connect(
        __name__,
        MySQLdb,
        "connect",
        "mysql",
        {
            "database": "db",
            "port": "port",
            "host": "host",
            "user": "user",
        },
        tracer_provider=tracer_provider,
    )
    self.has_instrument = True