Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }