1 write to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
93context.MetricsTagsFeature ??= new HttpMetricsTagsFeature();
11 references to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (11)
Internal\HostingApplication.cs (1)
179MetricsTagsFeature?.Reset();
Internal\HostingApplicationDiagnostics.cs (10)
94httpContext.Features.Set<IHttpMetricsTagsFeature>(context.MetricsTagsFeature); 96context.MetricsTagsFeature.Method = httpContext.Request.Method; 97context.MetricsTagsFeature.Protocol = httpContext.Request.Protocol; 98context.MetricsTagsFeature.Scheme = httpContext.Request.Scheme; 190Debug.Assert(context.MetricsTagsFeature != null, "MetricsTagsFeature should be set if MetricsEnabled is true."); 193var disableHttpRequestDurationMetric = endpoint?.Metadata.GetMetadata<IDisableHttpMetricsMetadata>() != null || context.MetricsTagsFeature.MetricsDisabled; 197context.MetricsTagsFeature.Protocol!, 198context.MetricsTagsFeature.Scheme!, 199context.MetricsTagsFeature.Method!, 204context.MetricsTagsFeature.TagsList,