Skip to content

Commit fa61ec6

Browse files
committed
review
1 parent 65fcfcb commit fa61ec6

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

instrumentation/apache-dubbo-2.7/testing/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/AbstractDubboTest.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ void testApacheDubboBase() throws ReflectiveOperationException {
144144
RpcIncubatingAttributes.RpcSystemIncubatingValues.APACHE_DUBBO),
145145
equalTo(RPC_SERVICE, "org.apache.dubbo.rpc.service.GenericService"),
146146
equalTo(RPC_METHOD, "$invoke"),
147-
satisfies(
148-
PEER_SERVICE,
149-
k ->
150-
k.isEqualTo(
151-
hasPeerService() ? "test-peer-service" : null)),
147+
equalTo(PEER_SERVICE, hasPeerService() ? "test-peer-service" : null),
152148
equalTo(SERVER_ADDRESS, "localhost"),
153149
satisfies(SERVER_PORT, k -> k.isInstanceOf(Long.class)),
154150
satisfies(
@@ -280,11 +276,7 @@ void testApacheDubboTest()
280276
RpcIncubatingAttributes.RpcSystemIncubatingValues.APACHE_DUBBO),
281277
equalTo(RPC_SERVICE, "org.apache.dubbo.rpc.service.GenericService"),
282278
equalTo(RPC_METHOD, "$invokeAsync"),
283-
satisfies(
284-
PEER_SERVICE,
285-
k ->
286-
k.isEqualTo(
287-
hasPeerService() ? "test-peer-service" : null)),
279+
equalTo(PEER_SERVICE, hasPeerService() ? "test-peer-service" : null),
288280
equalTo(SERVER_ADDRESS, "localhost"),
289281
satisfies(SERVER_PORT, k -> k.isInstanceOf(Long.class)),
290282
satisfies(

instrumentation/apache-dubbo-2.7/testing/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/AbstractDubboTraceChainTest.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ void testDubboChain() throws ReflectiveOperationException {
186186
RpcIncubatingAttributes.RpcSystemIncubatingValues.APACHE_DUBBO),
187187
equalTo(RPC_SERVICE, "org.apache.dubbo.rpc.service.GenericService"),
188188
equalTo(RPC_METHOD, "$invoke"),
189-
satisfies(
190-
PEER_SERVICE,
191-
k ->
192-
k.isEqualTo(
193-
hasPeerService() ? "test-peer-service" : null)),
189+
equalTo(PEER_SERVICE, hasPeerService() ? "test-peer-service" : null),
194190
equalTo(SERVER_ADDRESS, "localhost"),
195191
satisfies(SERVER_PORT, k -> k.isInstanceOf(Long.class)),
196192
satisfies(
@@ -225,11 +221,7 @@ void testDubboChain() throws ReflectiveOperationException {
225221
RpcIncubatingAttributes.RpcSystemIncubatingValues.APACHE_DUBBO),
226222
equalTo(RPC_SERVICE, "org.apache.dubbo.rpc.service.GenericService"),
227223
equalTo(RPC_METHOD, "$invoke"),
228-
satisfies(
229-
PEER_SERVICE,
230-
k ->
231-
k.isEqualTo(
232-
hasPeerService() ? "test-peer-service" : null)),
224+
equalTo(PEER_SERVICE, hasPeerService() ? "test-peer-service" : null),
233225
equalTo(SERVER_ADDRESS, "localhost"),
234226
satisfies(SERVER_PORT, k -> k.isInstanceOf(Long.class)),
235227
satisfies(
@@ -393,11 +385,7 @@ void testDubboChainInJvm() throws ReflectiveOperationException {
393385
RpcIncubatingAttributes.RpcSystemIncubatingValues.APACHE_DUBBO),
394386
equalTo(RPC_SERVICE, "org.apache.dubbo.rpc.service.GenericService"),
395387
equalTo(RPC_METHOD, "$invoke"),
396-
satisfies(
397-
PEER_SERVICE,
398-
k ->
399-
k.isEqualTo(
400-
hasPeerService() ? "test-peer-service" : null)),
388+
equalTo(PEER_SERVICE, hasPeerService() ? "test-peer-service" : null),
401389
equalTo(SERVER_ADDRESS, "localhost"),
402390
satisfies(SERVER_PORT, k -> k.isInstanceOf(Long.class)),
403391
satisfies(

0 commit comments

Comments
 (0)