diff --git a/pom.xml b/pom.xml index f9a041defd..3f5f43d76e 100644 --- a/pom.xml +++ b/pom.xml @@ -90,7 +90,7 @@ 3.7.0 - 1.31.0-alpha + 1.32.0-alpha 1.21.0-alpha 3.13.0 diff --git a/smallrye-reactive-messaging-amqp/src/test/java/io/smallrye/reactive/messaging/amqp/TracingAmqpToAppToAmqpTest.java b/smallrye-reactive-messaging-amqp/src/test/java/io/smallrye/reactive/messaging/amqp/TracingAmqpToAppToAmqpTest.java index 663eefc643..78406c9659 100644 --- a/smallrye-reactive-messaging-amqp/src/test/java/io/smallrye/reactive/messaging/amqp/TracingAmqpToAppToAmqpTest.java +++ b/smallrye-reactive-messaging-amqp/src/test/java/io/smallrye/reactive/messaging/amqp/TracingAmqpToAppToAmqpTest.java @@ -148,7 +148,7 @@ public void testFromAmqpToAppToAmqp() { assertEquals(PRODUCER, producer.getKind()); assertEquals("result-topic", producer.getAttributes().get(MESSAGING_DESTINATION_NAME)); assertEquals("result-topic publish", producer.getName()); - assertNull(producer.getAttributes().get(MESSAGING_OPERATION)); + assertEquals("publish", producer.getAttributes().get(MESSAGING_OPERATION)); }); } diff --git a/smallrye-reactive-messaging-kafka/src/test/java/io/smallrye/reactive/messaging/kafka/tracing/TracingPropagationTest.java b/smallrye-reactive-messaging-kafka/src/test/java/io/smallrye/reactive/messaging/kafka/tracing/TracingPropagationTest.java index 0a99c11d6b..5173f04675 100644 --- a/smallrye-reactive-messaging-kafka/src/test/java/io/smallrye/reactive/messaging/kafka/tracing/TracingPropagationTest.java +++ b/smallrye-reactive-messaging-kafka/src/test/java/io/smallrye/reactive/messaging/kafka/tracing/TracingPropagationTest.java @@ -113,8 +113,9 @@ public void testFromAppToKafka() { SpanData span = spans.get(0); assertEquals(SpanKind.PRODUCER, span.getKind()); - assertEquals(4, span.getAttributes().size()); + assertEquals(5, span.getAttributes().size()); assertEquals("kafka", span.getAttributes().get(MESSAGING_SYSTEM)); + assertEquals("publish", span.getAttributes().get(MESSAGING_OPERATION)); assertEquals(topic, span.getAttributes().get(MESSAGING_DESTINATION_NAME)); assertEquals("kafka-producer-kafka", span.getAttributes().get(MESSAGING_KAFKA_CLIENT_ID)); assertEquals(0, span.getAttributes().get(MESSAGING_KAFKA_MESSAGE_OFFSET)); @@ -150,8 +151,9 @@ public void testFromAppToKafkaWithStructuredCloudEvents() { SpanData span = spans.get(0); assertEquals(SpanKind.PRODUCER, span.getKind()); - assertEquals(4, span.getAttributes().size()); + assertEquals(5, span.getAttributes().size()); assertEquals("kafka", span.getAttributes().get(MESSAGING_SYSTEM)); + assertEquals("publish", span.getAttributes().get(MESSAGING_OPERATION)); assertEquals(topic, span.getAttributes().get(MESSAGING_DESTINATION_NAME)); assertEquals("kafka-producer-kafka", span.getAttributes().get(MESSAGING_KAFKA_CLIENT_ID)); assertEquals(0, span.getAttributes().get(MESSAGING_KAFKA_MESSAGE_OFFSET)); @@ -186,8 +188,9 @@ public void testFromAppToKafkaWithBinaryCloudEvents() { SpanData span = spans.get(0); assertEquals(SpanKind.PRODUCER, span.getKind()); - assertEquals(4, span.getAttributes().size()); + assertEquals(5, span.getAttributes().size()); assertEquals("kafka", span.getAttributes().get(MESSAGING_SYSTEM)); + assertEquals("publish", span.getAttributes().get(MESSAGING_OPERATION)); assertEquals(topic, span.getAttributes().get(MESSAGING_DESTINATION_NAME)); assertEquals("kafka-producer-kafka", span.getAttributes().get(MESSAGING_KAFKA_CLIENT_ID)); assertEquals(0, span.getAttributes().get(MESSAGING_KAFKA_MESSAGE_OFFSET)); @@ -242,8 +245,9 @@ public void testFromKafkaToAppToKafka() { SpanData producer = spans.stream().filter(spanData -> spanData.getParentSpanId().equals(consumer.getSpanId())) .findFirst().get(); assertEquals(SpanKind.PRODUCER, producer.getKind()); - assertEquals(4, producer.getAttributes().size()); + assertEquals(5, producer.getAttributes().size()); assertEquals("kafka", producer.getAttributes().get(MESSAGING_SYSTEM)); + assertEquals("publish", producer.getAttributes().get(MESSAGING_OPERATION)); assertEquals(resultTopic, producer.getAttributes().get(MESSAGING_DESTINATION_NAME)); assertEquals("kafka-producer-kafka", producer.getAttributes().get(MESSAGING_KAFKA_CLIENT_ID)); assertEquals(0, producer.getAttributes().get(MESSAGING_KAFKA_MESSAGE_OFFSET));