diff --git a/examples/Metrics/src/HelloWorld/Function.cs b/examples/Metrics/src/HelloWorld/Function.cs index 8f4345e96..bb6b128b4 100644 --- a/examples/Metrics/src/HelloWorld/Function.cs +++ b/examples/Metrics/src/HelloWorld/Function.cs @@ -124,12 +124,12 @@ public async Task FunctionHandler(APIGatewayProxyReques try { - Logger.LogInformation("Calling Check IP API "); + Logger.LogInformation("Calling Check IP API"); var response = await _httpClient.GetStringAsync("https://checkip.amazonaws.com/").ConfigureAwait(false); var ip = response.Replace("\n", ""); - Logger.LogInformation("API response returned {}", ip); + Logger.LogInformation($"API response returned {ip}"); return ip; } diff --git a/examples/Tracing/src/HelloWorld/Function.cs b/examples/Tracing/src/HelloWorld/Function.cs index caddb6bad..342e3e29d 100644 --- a/examples/Tracing/src/HelloWorld/Function.cs +++ b/examples/Tracing/src/HelloWorld/Function.cs @@ -107,12 +107,12 @@ public async Task FunctionHandler(APIGatewayProxyReques try { - Logger.LogInformation("Calling Check IP API "); + Logger.LogInformation("Calling Check IP API"); var response = await _httpClient.GetStringAsync("https://checkip.amazonaws.com/").ConfigureAwait(false); var ip = response.Replace("\n", ""); - Logger.LogInformation("API response returned {}", ip); + Logger.LogInformation($"API response returned {ip}"); return ip; }