Skip to content

Commit

Permalink
OTel upgrade to 1.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Jun 27, 2024
1 parent 3b6a92b commit 3df95c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

<kafka.version>3.7.0</kafka.version>

<opentelemetry.version>1.31.0-alpha</opentelemetry.version>
<opentelemetry.version>1.32.0-alpha</opentelemetry.version>
<opentelemetry-semconv.version>1.21.0-alpha</opentelemetry-semconv.version>

<smallrye-vertx-mutiny-clients.version>3.13.0</smallrye-vertx-mutiny-clients.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 3df95c8

Please sign in to comment.