Skip to content

Commit 7c5e970

Browse files
authored
naming
1 parent ef91318 commit 7c5e970

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,18 @@ private void RecordRequestStartMetrics(HttpContext httpContext)
394394
{
395395
var host = httpContext.Request.Host.Host;
396396
var port = httpContext.Request.Host.Port;
397-
tags.Add("server.address", host);
397+
tagsForCreation.Add("server.address", host);
398398
if (port is not null)
399399
{
400-
tags.Add("server.port", port);
400+
tagsForCreation.Add("server.port", port);
401401
}
402402
else if (string.Equals("https", httpContext.Request.Scheme, StringComparison.OrdinalIgnoreCase))
403403
{
404-
tags.Add("server.port", 443);
404+
tagsForCreation.Add("server.port", 443);
405405
}
406406
else if (string.Equals("http", httpContext.Request.Scheme, StringComparison.OrdinalIgnoreCase))
407407
{
408-
tags.Add("server.port", 80);
408+
tagsForCreation.Add("server.port", 80);
409409
}
410410
}
411411

0 commit comments

Comments
 (0)