static void setTags()

in apm-sniffer/optional-plugins/zookeeper-3.4.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/zookeeper/ZooOpt.java [88:137]


    static void setTags(AbstractSpan span, Record record) {
        if (record instanceof CheckVersionRequest) {
            CheckVersionRequest recordImpl = (CheckVersionRequest) record;
            span.tag(PATH, recordImpl.getPath());
        } else if (record instanceof CreateRequest) {
            CreateRequest recordImpl = (CreateRequest) record;
            span.tag(PATH, recordImpl.getPath());
        } else if (record instanceof DeleteRequest) {
            DeleteRequest recordImpl = (DeleteRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(VERSION, String.valueOf(recordImpl.getVersion()));
        } else if (record instanceof ExistsRequest) {
            ExistsRequest recordImpl = (ExistsRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(WATCH, String.valueOf(recordImpl.getWatch()));
        } else if (record instanceof GetACLRequest) {
            GetACLRequest recordImpl = (GetACLRequest) record;
            span.tag(PATH, recordImpl.getPath());
        } else if (record instanceof GetChildren2Request) {
            GetChildren2Request recordImpl = (GetChildren2Request) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(WATCH, String.valueOf(recordImpl.getWatch()));
        } else if (record instanceof GetChildrenRequest) {
            GetChildrenRequest recordImpl = (GetChildrenRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(WATCH, String.valueOf(recordImpl.getWatch()));
        } else if (record instanceof GetDataRequest) {
            GetDataRequest recordImpl = (GetDataRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(WATCH, String.valueOf(recordImpl.getWatch()));
        } else if (record instanceof GetMaxChildrenRequest) {
            GetMaxChildrenRequest recordImpl = (GetMaxChildrenRequest) record;
            span.tag(PATH, recordImpl.getPath());
        } else if (record instanceof SetACLRequest) {
            SetACLRequest recordImpl = (SetACLRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(VERSION, String.valueOf(recordImpl.getVersion()));
        } else if (record instanceof SetDataRequest) {
            SetDataRequest recordImpl = (SetDataRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(VERSION, String.valueOf(recordImpl.getVersion()));
        } else if (record instanceof SetMaxChildrenRequest) {
            SetMaxChildrenRequest recordImpl = (SetMaxChildrenRequest) record;
            span.tag(PATH, recordImpl.getPath());
            span.tag(MAX_CHILDREN, String.valueOf(recordImpl.getMax()));
        } else if (record instanceof SyncRequest) {
            SyncRequest recordImpl = (SyncRequest) record;
            span.tag(PATH, recordImpl.getPath());
        }
    }