From f0d8894e036cfccb6f9878a1f4d890a83d74726f Mon Sep 17 00:00:00 2001 From: jaehong-kim Date: Fri, 20 Oct 2017 14:31:12 +0900 Subject: [PATCH] [#3252] fix format. --- .../pinpoint/bootstrap/plugin/proxy/ProxyHttpHeader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/proxy/ProxyHttpHeader.java b/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/proxy/ProxyHttpHeader.java index bf3ab9e8d8c9..e898d19d38eb 100644 --- a/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/proxy/ProxyHttpHeader.java +++ b/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/proxy/ProxyHttpHeader.java @@ -122,10 +122,10 @@ public AnnotationKey getAnnotationKey() { } public Object getAnnotationValue() { - if (app == null) { - return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, null); + if (this.type == TYPE_APP && this.app != null) { + return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, StringUtils.abbreviate(app, APP_MAX_LENGTH)); } - return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, StringUtils.abbreviate(app, APP_MAX_LENGTH)); + return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, null); } @Override