Commit 6a8f3a15 authored by Liuhaoyang's avatar Liuhaoyang

Refactor ContextSnapshot

parent 8066c093
...@@ -38,10 +38,10 @@ namespace SkyWalking.Context ...@@ -38,10 +38,10 @@ namespace SkyWalking.Context
private string _entryOperationName; private string _entryOperationName;
private string _parentOperationName; private string _parentOperationName;
private DistributedTraceId _primaryDistributedTraceId; private readonly DistributedTraceId _primaryDistributedTraceId;
private int _entryApplicationInstanceId = DictionaryUtil.NullValue; private int _entryApplicationInstanceId = DictionaryUtil.NullValue;
public ContextSnapshot(ID traceSegmentId, int spanId, List<DistributedTraceId> distributedTraceIds) public ContextSnapshot(ID traceSegmentId, int spanId, IEnumerable<DistributedTraceId> distributedTraceIds)
{ {
_traceSegmentId = traceSegmentId; _traceSegmentId = traceSegmentId;
_spanId = spanId; _spanId = spanId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment