Skip to content

Commit

Permalink
Fix for Activity Recorded flag not being propagated
Browse files Browse the repository at this point in the history
  • Loading branch information
Costo authored and ReubenBond committed May 22, 2024
1 parent 3d7343e commit ed3170e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ public Task Invoke(IIncomingGrainCallContext context)
var source = GetActivitySource(context);
if (!string.IsNullOrEmpty(traceParent))
{
activity = source.CreateActivity(context.Request.GetActivityName(), ActivityKind.Server, traceParent);
ActivityContext.TryParse(traceParent, traceState, isRemote: true, out ActivityContext parentContext);
activity = source.CreateActivity(context.Request.GetActivityName(), ActivityKind.Server, parentContext);

if (activity is not null)
{
Expand Down

0 comments on commit ed3170e

Please sign in to comment.