@@ -29,7 +29,7 @@ public async Task HubMethodInvokesCreateActivities()
29
29
// Provided by hosting layer normally
30
30
builder . AddSingleton ( testSource ) ;
31
31
} , LoggerFactory ) ;
32
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
32
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
33
33
34
34
using var listener = new ActivityListener
35
35
{
@@ -100,7 +100,7 @@ public async Task StreamingHubMethodCreatesActivities()
100
100
// Provided by hosting layer normally
101
101
builder . AddSingleton ( testSource ) ;
102
102
} , LoggerFactory ) ;
103
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
103
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
104
104
105
105
using var listener = new ActivityListener
106
106
{
@@ -165,7 +165,7 @@ bool ExpectedErrors(WriteContext writeContext)
165
165
// Provided by hosting layer normally
166
166
builder . AddSingleton ( testSource ) ;
167
167
} , LoggerFactory ) ;
168
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
168
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
169
169
170
170
using var listener = new ActivityListener
171
171
{
@@ -212,7 +212,7 @@ bool ExpectedErrors(WriteContext writeContext)
212
212
// Provided by hosting layer normally
213
213
builder . AddSingleton ( testSource ) ;
214
214
} , LoggerFactory ) ;
215
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
215
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
216
216
217
217
using var listener = new ActivityListener
218
218
{
@@ -263,7 +263,7 @@ bool ExpectedErrors(WriteContext writeContext)
263
263
// Provided by hosting layer normally
264
264
builder . AddSingleton ( testSource ) ;
265
265
} , LoggerFactory ) ;
266
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
266
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
267
267
268
268
using var listener = new ActivityListener
269
269
{
@@ -313,7 +313,7 @@ bool ExpectedErrors(WriteContext writeContext)
313
313
// Provided by hosting layer normally
314
314
builder . AddSingleton ( testSource ) ;
315
315
} , LoggerFactory ) ;
316
- var signalrSource = serviceProvider . GetRequiredService < SignalRActivitySource > ( ) . ActivitySource ;
316
+ var signalrSource = serviceProvider . GetRequiredService < SignalRServerActivitySource > ( ) . ActivitySource ;
317
317
318
318
using var listener = new ActivityListener
319
319
{
@@ -348,7 +348,9 @@ private static void AssertHubMethodActivity<THub>(Activity activity, string meth
348
348
{
349
349
Assert . Null ( activity . Parent ) ;
350
350
Assert . True ( activity . IsStopped ) ;
351
- Assert . Equal ( $ "{ typeof ( THub ) . FullName } /{ methodName } ", activity . OperationName ) ;
351
+ Assert . Equal ( SignalRServerActivitySource . Name , activity . Source . Name ) ;
352
+ Assert . Equal ( SignalRServerActivitySource . InvocationIn , activity . OperationName ) ;
353
+ Assert . Equal ( $ "{ typeof ( THub ) . FullName } /{ methodName } ", activity . DisplayName ) ;
352
354
353
355
var tags = activity . Tags . ToArray ( ) ;
354
356
if ( exceptionType is not null )
0 commit comments