We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de03968 commit 50cf8a9Copy full SHA for 50cf8a9
src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs
@@ -390,9 +390,9 @@ private void RecordRequestStartMetrics(HttpContext httpContext)
390
hasDiagnosticListener = false;
391
392
var tagsForCreation = new TagList();
393
- if (_activitySource.HasListeners() && _context.Request.Host.HasValue)
+ if (_activitySource.HasListeners() && httpContext.Request.Host.HasValue)
394
{
395
- var (host, port) = _context.Request.Host.HostAndPort;
+ var (host, port) = httpContext.Request.Host.HostAndPort;
396
tags.Add("server.address", host);
397
if (port is not null)
398
0 commit comments