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()
Exemple #2
0
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()
Exemple #3
0
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()