mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 16:28:48 +10:00
[강운덕] [LUCYSUS-1744] annotation을 datatype 을 자동 인코딩 하도록 변경.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@886 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.profiler.context;
|
||||
|
||||
@Deprecated
|
||||
public enum Annotation {
|
||||
@Deprecated
|
||||
ClientSend("CS"),
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.profiler.common.util.AnnotationTranscoder;
|
||||
*/
|
||||
public class HippoAnnotation implements Thriftable {
|
||||
|
||||
private static final AnnotationTranscoder transCoder = new AnnotationTranscoder();
|
||||
private static final AnnotationTranscoder transcoder = new AnnotationTranscoder();
|
||||
|
||||
private final long timestamp;
|
||||
private final String key;
|
||||
@@ -49,7 +49,7 @@ public class HippoAnnotation implements Thriftable {
|
||||
ann.setKey(key);
|
||||
|
||||
// TODO Encode 객체를 생성하지 않도록 변경.
|
||||
AnnotationTranscoder.Encoded encode = transCoder.encode(value);
|
||||
AnnotationTranscoder.Encoded encode = transcoder.encode(value);
|
||||
ann.setValueTypeCode(encode.getValueType());
|
||||
ann.setValue(encode.getBytes());
|
||||
return ann;
|
||||
|
||||
Reference in New Issue
Block a user