This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch ra
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 837efba35cd80e7189bd6f16f25fbd7aa64a8e2c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon May 27 17:21:38 2024 +0200

    CAMEL-20798: Add RemoteAddress to endpoints so they can tell the 
url/hostname etc for the system it connects. This is needed for better 
monitoring, tracing and management. Add this information into camel-tracer as 
tags.
---
 .../camel/tracing/decorators/ElasticsearchSpanDecoratorTest.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/ElasticsearchSpanDecoratorTest.java
 
b/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/ElasticsearchSpanDecoratorTest.java
index 12411776ef1..dae3c6c7b00 100644
--- 
a/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/ElasticsearchSpanDecoratorTest.java
+++ 
b/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/ElasticsearchSpanDecoratorTest.java
@@ -27,6 +27,7 @@ import org.junit.jupiter.api.Test;
 import org.mockito.Mockito;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
 
 public class ElasticsearchSpanDecoratorTest {
 
@@ -67,7 +68,7 @@ public class ElasticsearchSpanDecoratorTest {
         assertEquals(indexName, span.tags().get(Tag.DB_INSTANCE.name()));
         assertEquals(indexName, span.tags().get(TagConstants.DB_NAME));
         assertEquals(cluster, 
span.tags().get(ElasticsearchSpanDecorator.ELASTICSEARCH_CLUSTER_TAG));
-        assertEquals(null, span.tags().get(TagConstants.SERVER_ADDRESS));
+        assertNull(span.tags().get(TagConstants.SERVER_ADDRESS));
     }
 
 }

Reply via email to