Skip to content

Commit b4f81fe

Browse files
committedSep 22, 2020
Upgrade 1.0.2
1 parent 8c8d733 commit b4f81fe

File tree

6 files changed

+6
-38
lines changed

6 files changed

+6
-38
lines changed
 

‎oracle-10.x-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.openskywalking</groupId>
2323
<artifactId>java-plugin-extensions</artifactId>
24-
<version>1.0.1</version>
24+
<version>1.0.2</version>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>
2727

‎pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.openskywalking</groupId>
66
<artifactId>java-plugin-extensions</artifactId>
7-
<version>1.0.1</version>
7+
<version>1.0.2</version>
88

99
<modules>
1010
<module>oracle-10.x-plugin</module>
@@ -18,7 +18,7 @@
1818

1919
<properties>
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21-
<skywalking.version>6.6.0</skywalking.version>
21+
<skywalking.version>8.2.0-SNAPSHOT</skywalking.version>
2222
<shade.package>org.apache.skywalking.apm.dependencies</shade.package>
2323
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
2424
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>

‎resin-3.x-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.openskywalking</groupId>
2727
<artifactId>java-plugin-extensions</artifactId>
28-
<version>1.0.1</version>
28+
<version>1.0.2</version>
2929
</parent>
3030

3131
<groupId>org.apache.skywalking</groupId>

‎resin-3.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/resin/v3/ResinV3InterceptorTest.java

+1-17
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.caucho.server.http.HttpResponse;
2424
import io.skywalking.apm.plugin.resin.v3.ResinV3Interceptor;
2525
import java.util.List;
26-
import org.apache.skywalking.apm.agent.core.context.SW6CarrierItem;
26+
import org.apache.skywalking.apm.agent.core.context.SW8CarrierItem;
2727
import org.apache.skywalking.apm.agent.core.context.trace.AbstractTracingSpan;
2828
import org.apache.skywalking.apm.agent.core.context.trace.LogDataEntity;
2929
import org.apache.skywalking.apm.agent.core.context.trace.SpanLayer;
@@ -107,21 +107,6 @@ public void testWithoutSerializedContextData() throws Throwable {
107107
assertHttpSpan(spans.get(0));
108108
}
109109

110-
@Test
111-
public void testWithSerializedContextData() throws Throwable {
112-
when(request.getHeader(SW6CarrierItem.HEADER_NAME)).thenReturn("1-I0FRQSojQVFBKkV0MFdlMHRRTlFBKg==-MS4yMzQuMTEx-3-1-1-IzE5Mi4xNjguMS44OjE4MDAy-Iy9wb3J0YWwv-Iy90ZXN0RW50cnlTcGFu");
113-
114-
interceptor.beforeMethod(enhancedInstance, null, arguments, argumentType, methodInterceptResult);
115-
interceptor.afterMethod(enhancedInstance, null, arguments, argumentType, null);
116-
117-
assertThat(segmentStorage.getTraceSegments().size(), is(1));
118-
TraceSegment traceSegment = segmentStorage.getTraceSegments().get(0);
119-
List<AbstractTracingSpan> spans = SegmentHelper.getSpans(traceSegment);
120-
121-
assertHttpSpan(spans.get(0));
122-
assertTraceSegmentRef(traceSegment.getRefs().get(0));
123-
}
124-
125110
@Test
126111
public void testWithOccurException() throws Throwable {
127112
interceptor.beforeMethod(enhancedInstance, null, arguments, argumentType, methodInterceptResult);
@@ -140,7 +125,6 @@ public void testWithOccurException() throws Throwable {
140125

141126
private void assertTraceSegmentRef(TraceSegmentRef ref) {
142127
MatcherAssert.assertThat(SegmentRefHelper.getSpanId(ref), is(3));
143-
assertThat(SegmentRefHelper.getEntryServiceInstanceId(ref), is(1));
144128
MatcherAssert.assertThat(SegmentRefHelper.getTraceSegmentId(ref).toString(), is("1.234.111"));
145129
}
146130

‎resin-4.x-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.openskywalking</groupId>
2727
<artifactId>java-plugin-extensions</artifactId>
28-
<version>1.0.1</version>
28+
<version>1.0.2</version>
2929
</parent>
3030

3131
<groupId>org.apache.skywalking</groupId>

‎resin-4.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/resin/v4/ResinV4InterceptorTest.java

-16
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import io.skywalking.apm.plugin.resin.v4.ResinV4Interceptor;
2424
import java.util.List;
2525
import javax.servlet.http.HttpServletResponse;
26-
import org.apache.skywalking.apm.agent.core.context.SW6CarrierItem;
2726
import org.apache.skywalking.apm.agent.core.context.trace.AbstractTracingSpan;
2827
import org.apache.skywalking.apm.agent.core.context.trace.LogDataEntity;
2928
import org.apache.skywalking.apm.agent.core.context.trace.SpanLayer;
@@ -108,20 +107,6 @@ public void testWithoutSerializedContextData() throws Throwable {
108107
assertHttpSpan(spans.get(0));
109108
}
110109

111-
@Test
112-
public void testWithSerializedContextData() throws Throwable {
113-
when(request.getHeader(SW6CarrierItem.HEADER_NAME)).thenReturn("1-I0FRQSojQVFBKkV0MFdlMHRRTlFBKg==-MS4yMzQuMTEx-3-1-1-IzE5Mi4xNjguMS44OjE4MDAy-Iy9wb3J0YWwv-Iy90ZXN0RW50cnlTcGFu");
114-
115-
interceptor.beforeMethod(enhancedInstance, null, arguments, argumentType, methodInterceptResult);
116-
interceptor.afterMethod(enhancedInstance, null, arguments, argumentType, null);
117-
118-
assertThat(segmentStorage.getTraceSegments().size(), is(1));
119-
TraceSegment traceSegment = segmentStorage.getTraceSegments().get(0);
120-
List<AbstractTracingSpan> spans = SegmentHelper.getSpans(traceSegment);
121-
122-
assertHttpSpan(spans.get(0));
123-
assertTraceSegmentRef(traceSegment.getRefs().get(0));
124-
}
125110

126111
@Test
127112
public void testWithOccurException() throws Throwable {
@@ -140,7 +125,6 @@ public void testWithOccurException() throws Throwable {
140125
}
141126

142127
private void assertTraceSegmentRef(TraceSegmentRef ref) {
143-
assertThat(SegmentRefHelper.getEntryServiceInstanceId(ref), is(1));
144128
assertThat(SegmentRefHelper.getSpanId(ref), is(3));
145129
assertThat(SegmentRefHelper.getTraceSegmentId(ref).toString(), is("1.234.111"));
146130
}

0 commit comments

Comments
 (0)