def __init(): if config.protocol == 'grpc': from skywalking.agent.protocol.grpc import GrpcProtocol global __protocol __protocol = GrpcProtocol() elif config.protocol == 'http': raise NotImplementedError() # TODO plugins.install()
def __init(): global __protocol if config.protocol == 'grpc': from skywalking.agent.protocol.grpc import GrpcProtocol __protocol = GrpcProtocol() elif config.protocol == 'http': from skywalking.agent.protocol.http import HttpProtocol __protocol = HttpProtocol() plugins.install()
def __init(): global __protocol if config.protocol == 'grpc': from skywalking.agent.protocol.grpc import GrpcProtocol __protocol = GrpcProtocol() elif config.protocol == 'http': from skywalking.agent.protocol.http import HttpProtocol __protocol = HttpProtocol() elif config.protocol == "kafka": from skywalking.agent.protocol.kafka import KafkaProtocol __protocol = KafkaProtocol() plugins.install() __init_threading()