public SegmentContext(string traceId, string segmentId, bool sampled, string serviceId, string serviceInstanceId, string operationName, SpanType spanType) { TraceId = traceId; Sampled = sampled; SegmentId = segmentId; ServiceId = serviceId; ServiceInstanceId = serviceInstanceId; Span = new SegmentSpan(operationName, spanType); }
public SegmentContext(string traceId, string segmentId, bool sampled, string serviceId, string serviceInstanceId, string operationName, SpanType spanType, long startTimeMilliseconds = default) { TraceId = traceId; Sampled = sampled; SegmentId = segmentId; ServiceId = serviceId; ServiceInstanceId = serviceInstanceId; Span = new SegmentSpan(operationName, spanType, startTimeMilliseconds); }