1 write to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
78context.MetricsTagsFeature ??= new HttpMetricsTagsFeature();
11 references to MetricsTagsFeature
Microsoft.AspNetCore.Hosting (11)
Internal\HostingApplication.cs (1)
172MetricsTagsFeature?.Reset();
Internal\HostingApplicationDiagnostics.cs (10)
79httpContext.Features.Set<IHttpMetricsTagsFeature>(context.MetricsTagsFeature); 81context.MetricsTagsFeature.Method = httpContext.Request.Method; 82context.MetricsTagsFeature.Protocol = httpContext.Request.Protocol; 83context.MetricsTagsFeature.Scheme = httpContext.Request.Scheme; 175Debug.Assert(context.MetricsTagsFeature != null, "MetricsTagsFeature should be set if MetricsEnabled is true."); 178var disableHttpRequestDurationMetric = endpoint?.Metadata.GetMetadata<IDisableHttpMetricsMetadata>() != null || context.MetricsTagsFeature.MetricsDisabled; 182context.MetricsTagsFeature.Protocol!, 183context.MetricsTagsFeature.Scheme!, 184context.MetricsTagsFeature.Method!, 189context.MetricsTagsFeature.TagsList,