Exemplo n.º 1
0
 public SegmentContext CreateLocalSegmentContext(string operationName)
 {
     if (operationName == null)
     {
         throw new ArgumentNullException(nameof(operationName));
     }
     return(_segmentContextFactory.CreateLocalSegment(operationName));
 }
Exemplo n.º 2
0
 public SegmentContext CreateLocalSegmentContext(string operationName, long startTimeMilliseconds = default)
 {
     if (operationName == null)
     {
         throw new ArgumentNullException(nameof(operationName));
     }
     return(_segmentContextFactory.CreateLocalSegment(operationName, startTimeMilliseconds));
 }