File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
SignalR/server/Core/src/Internal Expand file tree Collapse file tree 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
5858 // Can only happen if there is a race between HasListeners and CreateActivity calls,
5959 // and someone removing the listener.
6060 //
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.
6363 propagator . ExtractTraceIdAndState (
6464 distributedContextCarrier ,
6565 propagatorGetter ,
Original file line number Diff line number Diff line change @@ -857,11 +857,11 @@ public override IReadOnlyList<Type> GetParameterTypes(string methodName)
857857 ] ;
858858 IEnumerable < ActivityLink > ? links = ( linkedActivity is not null ) ? [ new ActivityLink ( linkedActivity . Context ) ] : null ;
859859
860- var propagator = serviceProvider . GetService < DistributedContextPropagator > ( ) ?? DistributedContextPropagator . Current ;
861-
862860 Activity ? activity ;
863861 if ( headers != null )
864862 {
863+ var propagator = serviceProvider . GetService < DistributedContextPropagator > ( ) ?? DistributedContextPropagator . Current ;
864+
865865 activity = ActivityCreator . CreateFromRemote (
866866 activitySource ,
867867 propagator ,
You can’t perform that action at this time.
0 commit comments