Skip to content

Commit 50cf8a9

Browse files
rkargMsftJamesNK
authored andcommitted
correcting variable naming
1 parent de03968 commit 50cf8a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ private void RecordRequestStartMetrics(HttpContext httpContext)
390390
hasDiagnosticListener = false;
391391

392392
var tagsForCreation = new TagList();
393-
if (_activitySource.HasListeners() && _context.Request.Host.HasValue)
393+
if (_activitySource.HasListeners() && httpContext.Request.Host.HasValue)
394394
{
395-
var (host, port) = _context.Request.Host.HostAndPort;
395+
var (host, port) = httpContext.Request.Host.HostAndPort;
396396
tags.Add("server.address", host);
397397
if (port is not null)
398398
{

0 commit comments

Comments
 (0)