parent
6f2b1bdd6e
commit
069f118271
|
|
@ -28,11 +28,11 @@ public class ThreadBuriedPointSender implements IBuriedPointSender {
|
|||
// 从ThreadLocal中取出上下文
|
||||
final Span parentSpanData = Context.getLastSpan();
|
||||
if (parentSpanData == null) {
|
||||
spanData = new Span(TraceIdGenerator.generate(), Config.SkyWalking.APPLICATION_CODE,
|
||||
spanData = new Span(TraceIdGenerator.generate(), Config.SkyWalking.APPLICATION_ID,
|
||||
Config.SkyWalking.USER_ID);
|
||||
} else {
|
||||
// 如果不为空,则将当前的Context存放到上下文
|
||||
spanData = new Span(parentSpanData.getTraceId(), Config.SkyWalking.APPLICATION_CODE,
|
||||
spanData = new Span(parentSpanData.getTraceId(), Config.SkyWalking.APPLICATION_ID,
|
||||
Config.SkyWalking.USER_ID);
|
||||
spanData.setParentLevel(parentSpanData.getParentLevel() + "." + parentSpanData.getLevelId());
|
||||
spanData.setLevelId(threadSeqId);
|
||||
|
|
|
|||
|
|
@ -1,31 +1,31 @@
|
|||
package com.ai.cloud.skywalking.plugin.spring;
|
||||
|
||||
public class TracingClassBean {
|
||||
private String packageName;
|
||||
private String className;
|
||||
private String method;
|
||||
private String packageName = "";
|
||||
private String className = "";
|
||||
private String method = "";
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ai.spring.plugin;
|
||||
package com.ai.cloud.skywalking.plugin.spring;
|
||||
|
||||
import com.ai.cloud.skywalking.buriedpoint.LocalBuriedPointSender;
|
||||
import com.ai.cloud.skywalking.model.Identification;
|
||||
|
|
|
|||
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<xsd:schema xmlns="http://code.alibabatech.com/schema/dubbo"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://code.alibabatech.com/schema/dubbo">
|
||||
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
|
||||
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
|
||||
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
|
||||
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[ Namespace support for the skywalking tracing class. ]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<xsd:complexType name="tracingClassType">
|
||||
<xsd:attribute name="name" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[ The class name that need to tracing. ]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
|
||||
<xsd:attribute name="method" type="xsd:wildcard">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[ The method name that need to tracing. ]]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="tracingPackageType">
|
||||
<xsd:attribute name="name" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:element name="tracing-class" type="tracingClassType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[ The service argument config ]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
|
||||
<xsd:element name="tracing-package" type="tracingPackageType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[ The service argument config ]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
|
||||
<xsd:element name="tracing"/>
|
||||
</xsd:schema>
|
||||
|
|
@ -1 +0,0 @@
|
|||
http\://cloud.asiainfo.com/schema/skywalking=com.ai.cloud.skywalking.plugin.spring.schema.SWNamespaceHandler
|
||||
|
|
@ -1 +0,0 @@
|
|||
http\://cloud.asiainfo.com/schema/skywalking/skywalking.xsd=META-INF/skywalking.xsd
|
||||
Loading…
Reference in New Issue