1 write to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
61context.MetricsTagsFeature ??= new HttpMetricsTagsFeature();
11 references to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (11)
Internal\HostingApplication.cs (1)
165MetricsTagsFeature?.Reset();
Internal\HostingApplicationDiagnostics.cs (10)
62httpContext.Features.Set<IHttpMetricsTagsFeature>(context.MetricsTagsFeature); 64context.MetricsTagsFeature.Method = httpContext.Request.Method; 65context.MetricsTagsFeature.Protocol = httpContext.Request.Protocol; 66context.MetricsTagsFeature.Scheme = httpContext.Request.Scheme; 158Debug.Assert(context.MetricsTagsFeature != null, "MetricsTagsFeature should be set if MetricsEnabled is true."); 161var disableHttpRequestDurationMetric = endpoint?.Metadata.GetMetadata<IDisableHttpMetricsMetadata>() != null || context.MetricsTagsFeature.MetricsDisabled; 165context.MetricsTagsFeature.Protocol!, 166context.MetricsTagsFeature.Scheme!, 167context.MetricsTagsFeature.Method!, 172context.MetricsTagsFeature.TagsList,