Skip to content

Commit 7e210a2

Browse files
committed
fix ci && add test
1 parent 5317f66 commit 7e210a2

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

instrumentation/kafka/kafka-clients/kafka-clients-2.6/library/src/test/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/InterceptorsSuppressReceiveSpansTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ void assertTraces() {
3838
equalTo(MESSAGING_SYSTEM, "kafka"),
3939
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
4040
equalTo(MESSAGING_OPERATION, "publish"),
41-
satisfies(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
41+
satisfies(
42+
MESSAGING_KAFKA_BOOTSTRAP_SERVERS,
43+
AbstractStringAssert::isNotEmpty),
4244
satisfies(
4345
MESSAGING_CLIENT_ID,
4446
stringAssert -> stringAssert.startsWith("producer"))),
@@ -53,7 +55,9 @@ void assertTraces() {
5355
equalTo(
5456
MESSAGING_MESSAGE_BODY_SIZE,
5557
greeting.getBytes(StandardCharsets.UTF_8).length),
56-
satisfies(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
58+
satisfies(
59+
MESSAGING_KAFKA_BOOTSTRAP_SERVERS,
60+
AbstractStringAssert::isNotEmpty),
5761
satisfies(
5862
MESSAGING_DESTINATION_PARTITION_ID,
5963
AbstractStringAssert::isNotEmpty),

instrumentation/kafka/kafka-clients/kafka-clients-2.6/library/src/test/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/InterceptorsTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ void assertTraces() {
4545
equalTo(MESSAGING_SYSTEM, "kafka"),
4646
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
4747
equalTo(MESSAGING_OPERATION, "publish"),
48-
satisfies(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
48+
satisfies(
49+
MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
4950
satisfies(
5051
MESSAGING_CLIENT_ID,
5152
stringAssert -> stringAssert.startsWith("producer"))));
@@ -69,7 +70,9 @@ void assertTraces() {
6970
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
7071
equalTo(MESSAGING_OPERATION, "receive"),
7172
equalTo(MESSAGING_KAFKA_CONSUMER_GROUP, "test"),
72-
satisfies(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
73+
satisfies(
74+
MESSAGING_KAFKA_BOOTSTRAP_SERVERS,
75+
AbstractStringAssert::isNotEmpty),
7376
satisfies(
7477
MESSAGING_CLIENT_ID,
7578
stringAssert -> stringAssert.startsWith("consumer")),
@@ -86,7 +89,9 @@ void assertTraces() {
8689
equalTo(
8790
MESSAGING_MESSAGE_BODY_SIZE,
8891
greeting.getBytes(StandardCharsets.UTF_8).length),
89-
satisfies(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, AbstractStringAssert::isNotEmpty),
92+
satisfies(
93+
MESSAGING_KAFKA_BOOTSTRAP_SERVERS,
94+
AbstractStringAssert::isNotEmpty),
9095
satisfies(
9196
MESSAGING_DESTINATION_PARTITION_ID,
9297
AbstractStringAssert::isNotEmpty),

0 commit comments

Comments
 (0)