1.修复版本号的说明,以及TID的格式。
This commit is contained in:
parent
d3c032aec1
commit
1facd50009
|
|
@ -6,8 +6,6 @@ skywalking.application_code=test
|
||||||
skywalking.auth_system_env_name=SKYWALKING_RUN
|
skywalking.auth_system_env_name=SKYWALKING_RUN
|
||||||
#skywalking数据编码
|
#skywalking数据编码
|
||||||
skywalking.charset=UTF-8
|
skywalking.charset=UTF-8
|
||||||
#skywalking SDK的版本
|
|
||||||
skywalking.sdk_version=1.0a2
|
|
||||||
|
|
||||||
#是否打印数据
|
#是否打印数据
|
||||||
buriedpoint.printf=false
|
buriedpoint.printf=false
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@ public class Config {
|
||||||
public static boolean AUTH_OVERRIDE = false;
|
public static boolean AUTH_OVERRIDE = false;
|
||||||
|
|
||||||
public static String CHARSET = "UTF-8";
|
public static String CHARSET = "UTF-8";
|
||||||
|
|
||||||
public static String SDK_VERSION = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class BuriedPoint {
|
public static class BuriedPoint {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ai.cloud.skywalking.conf;
|
package com.ai.cloud.skywalking.conf;
|
||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
|
public static String SDK_VERSION = "1.0a2";
|
||||||
|
|
||||||
public static final String HEALTH_DATA_SPILT_PATTERN = "^~";
|
public static final String HEALTH_DATA_SPILT_PATTERN = "^~";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package com.ai.cloud.skywalking.util;
|
package com.ai.cloud.skywalking.util;
|
||||||
|
|
||||||
import com.ai.cloud.skywalking.conf.Config;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import com.ai.cloud.skywalking.conf.Constants;
|
||||||
|
|
||||||
public final class TraceIdGenerator {
|
public final class TraceIdGenerator {
|
||||||
private static final ThreadLocal<Integer> ThreadTraceIdSequence = new ThreadLocal<Integer>();
|
private static final ThreadLocal<Integer> ThreadTraceIdSequence = new ThreadLocal<Integer>();
|
||||||
|
|
||||||
|
|
@ -25,10 +25,10 @@ public final class TraceIdGenerator {
|
||||||
seq++;
|
seq++;
|
||||||
ThreadTraceIdSequence.set(seq);
|
ThreadTraceIdSequence.set(seq);
|
||||||
|
|
||||||
return Config.SkyWalking.SDK_VERSION + "." + System.currentTimeMillis()
|
return Constants.SDK_VERSION + "." + System.currentTimeMillis()
|
||||||
+ PROCESS_UUID
|
+ "."+ PROCESS_UUID
|
||||||
+ BuriedPointMachineUtil.getProcessNo()
|
+ "."+ BuriedPointMachineUtil.getProcessNo()
|
||||||
+ Thread.currentThread().getId()
|
+ "."+ Thread.currentThread().getId()
|
||||||
+ seq;
|
+ "."+ seq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue