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