<commit_before>package com.nhn.pinpoint.web.calltree.server;

import com.nhn.pinpoint.common.bo.SpanBo;
import com.nhn.pinpoint.common.bo.SpanEventBo;

/**
 *
 */
public class AgentIdNodeSelector implements NodeSelector {

    @Override
    public String getServerId(SpanBo span) {
        return span.getEndPoint();
    }

    @Override
    public String getServerId(SpanEventBo spanEventBo) {
        String endPoint = spanEventBo.getEndPoint();
        if (endPoint == null || endPoint.length() == 0) {
            // http client와 같은 경우는 destinationId()만 존재한다.
            return spanEventBo.getDestinationId();
        }
        return endPoint +"/" + spanEventBo.getDestinationId();
    }

}<commit_msg>[유치수] [NOBTS] transaction info의 서버맵에서 WAS는 agentid가 보이도록 변경.<commit_after>package com.nhn.pinpoint.web.calltree.server;

import com.nhn.pinpoint.common.bo.SpanBo;
import com.nhn.pinpoint.common.bo.SpanEventBo;

/**
 *
 */
public class AgentIdNodeSelector implements NodeSelector {

    @Override
    public String getServerId(SpanBo span) {
        return span.getAgentId();
    }

    @Override
    public String getServerId(SpanEventBo spanEventBo) {
        String endPoint = spanEventBo.getEndPoint();
        if (endPoint == null || endPoint.length() == 0) {
            // http client와 같은 경우는 destinationId()만 존재한다.
            return spanEventBo.getDestinationId();
        }
        return endPoint +"/" + spanEventBo.getDestinationId();
    }

}
{'fraction_non_alphanumeric': 0.11149110807113544, 'fraction_numerical': 0.0013679890560875513, 'mean_word_length': 2.954054054054054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3318529', 'n_tokens_mistral': 479, 'n_tokens_neox': 495, 'n_words': 92}