Skip to content

Commit eff6c7e

Browse files
committed
PR feedback
1 parent 0d61918 commit eff6c7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Shared/Diagnostics/ActivityCreator.cs

+2-2
Original file line numberDiff line numberDiff 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,

src/SignalR/server/Core/src/Internal/DefaultHubDispatcher.cs

+2-2
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)