Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 1777f7b

Browse files
committed
Enabling Razor Instrumentation
1 parent 2730e30 commit 1777f7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Microsoft.AspNetCore.Mvc.Razor/DependencyInjection/MvcRazorMvcCoreBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ internal static void AddRazorViewEngineServices(IServiceCollection services)
187187
b.Features.Add(new ModelExpressionPass());
188188
b.Features.Add(new ViewComponentTagHelperPass());
189189
b.Features.Add(new MvcViewDocumentClassifierPass());
190+
b.Features.Add(new DefaultInstrumentationPass());
190191

191192
b.Features.Add(new Microsoft.CodeAnalysis.Razor.DefaultTagHelperFeature());
192193

test/Microsoft.AspNetCore.Mvc.FunctionalTests/RazorPageExecutionInstrumentationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public RazorPageExecutionInstrumentationTest(MvcTestFixture<Startup> fixture)
2121

2222
public HttpClient Client { get; }
2323

24-
[Fact(Skip = "Razor #961")]
24+
[Fact]
2525
public async Task InstrumentedViews_RenderAsExpected()
2626
{
2727
// Arrange

0 commit comments

Comments
 (0)