Skip to content

Commit

Permalink
bugfix for SegmentContextFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-xiaoshuang authored and luxiaoshuang committed Mar 25, 2024
1 parent 9dc9cc0 commit 1a4fa49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SkyApm.Core/Tracing/SegmentContextFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public SegmentContext CreateExitSegment(string operationName, StringOrIntValue n
var parentReference = parentSegmentContext.References.FirstOrDefault();
var reference = new SegmentReference
{
Reference = Reference.CrossThread,
Reference = Reference.CrossProcess,
EntryEndpoint = parentReference?.EntryEndpoint ?? parentSegmentContext.Span.OperationName,
NetworkAddress = parentReference?.NetworkAddress ?? parentSegmentContext.Span.OperationName,
ParentEndpoint = parentSegmentContext.Span.OperationName,
Expand Down Expand Up @@ -235,4 +235,4 @@ private SegmentContext GetParentSegmentContext(SpanType spanType)
}
}
}
}
}

0 comments on commit 1a4fa49

Please sign in to comment.