5
5
using Microsoft . AspNetCore . Components ;
6
6
using Microsoft . AspNetCore . Components . Authorization ;
7
7
using Microsoft . AspNetCore . Components . Forms ;
8
+ using Microsoft . AspNetCore . Components . Infrastructure ;
8
9
using Microsoft . AspNetCore . Components . Routing ;
9
10
using Microsoft . AspNetCore . Components . Server ;
10
11
using Microsoft . AspNetCore . Components . Server . BlazorPack ;
@@ -64,7 +65,7 @@ public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollecti
64
65
services . TryAddSingleton < CircuitMetrics > ( ) ;
65
66
services . TryAddSingleton < ICircuitFactory , CircuitFactory > ( ) ;
66
67
services . TryAddSingleton < ICircuitHandleRegistry , CircuitHandleRegistry > ( ) ;
67
- services . TryAddSingleton < RootTypeCache > ( ) ;
68
+ services . TryAddSingleton < Microsoft . AspNetCore . Components . RootTypeCache > ( ) ;
68
69
services . TryAddSingleton < ComponentParameterDeserializer > ( ) ;
69
70
services . TryAddSingleton < ComponentParametersTypeCache > ( ) ;
70
71
services . TryAddSingleton < CircuitIdFactory > ( ) ;
@@ -77,6 +78,9 @@ public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollecti
77
78
78
79
services . TryAddSingleton < CircuitRegistry > ( ) ;
79
80
81
+ // Add ComponentsActivitySource for tracing
82
+ ComponentsMetricsServiceCollectionExtensions . AddComponentsTracing ( services ) ;
83
+
80
84
// Standard blazor hosting services implementations
81
85
//
82
86
// These intentionally replace the non-interactive versions included in MVC.
0 commit comments