File tree 2 files changed +4
-4
lines changed
SignalR/server/Core/src/Internal
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ internal static class ActivityCreator
58
58
// Can only happen if there is a race between HasListeners and CreateActivity calls,
59
59
// and someone removing the listener.
60
60
//
61
- // The only negative of calling the propagator twice is a small performance hit, but
62
- // it 's small and unlikely so it's not worth trying to optimize.
61
+ // The only negative of calling the propagator twice is a small performance hit.
62
+ // It 's small and unlikely so it's not worth trying to optimize.
63
63
propagator . ExtractTraceIdAndState (
64
64
distributedContextCarrier ,
65
65
propagatorGetter ,
Original file line number Diff line number Diff line change @@ -857,11 +857,11 @@ public override IReadOnlyList<Type> GetParameterTypes(string methodName)
857
857
] ;
858
858
IEnumerable < ActivityLink > ? links = ( linkedActivity is not null ) ? [ new ActivityLink ( linkedActivity . Context ) ] : null ;
859
859
860
- var propagator = serviceProvider . GetService < DistributedContextPropagator > ( ) ?? DistributedContextPropagator . Current ;
861
-
862
860
Activity ? activity ;
863
861
if ( headers != null )
864
862
{
863
+ var propagator = serviceProvider . GetService < DistributedContextPropagator > ( ) ?? DistributedContextPropagator . Current ;
864
+
865
865
activity = ActivityCreator . CreateFromRemote (
866
866
activitySource ,
867
867
propagator ,
You can’t perform that action at this time.
0 commit comments