From 02261db3ad329c6e7dfd4d8b8fcba28e0cc49bcf Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 11 May 2023 07:52:11 +0100 Subject: [PATCH] Ensure host name is returned --- src/Elastic.Apm/Helpers/SystemInfoHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Apm/Helpers/SystemInfoHelper.cs b/src/Elastic.Apm/Helpers/SystemInfoHelper.cs index 940c321ea..1a19dbb1f 100644 --- a/src/Elastic.Apm/Helpers/SystemInfoHelper.cs +++ b/src/Elastic.Apm/Helpers/SystemInfoHelper.cs @@ -102,7 +102,7 @@ internal string GetHostName() { try { - var hostName = IPGlobalProperties.GetIPGlobalProperties().HostName; + return IPGlobalProperties.GetIPGlobalProperties().HostName; } catch (Exception e) {