diff --git a/src/Jaeger/Tracer.php b/src/Jaeger/Tracer.php
index <HASH>..<HASH> 100644
--- a/src/Jaeger/Tracer.php
+++ b/src/Jaeger/Tracer.php
@@ -133,7 +133,7 @@ class Tracer implements OTTracer
         $hostname = $this->getHostName();
         $this->ipAddress = $this->getHostByName($hostname);
 
-        if (empty($hostname) != false) {
+        if (!empty($hostname)) {
             $this->tags[JAEGER_HOSTNAME_TAG_KEY] = $hostname;
         }
     }
Fix condition in tracer to set the hostname