public static TransactionTraceSegment TryFindSegment(this TransactionTrace trace, string name)
        {
            Contract.Assert(trace != null);
            Contract.Assert(name != null);

            return(trace.RootSegment.TryFindSegment(name));
        }
        public static bool ContainsSegment(this TransactionTrace trace, string name)
        {
            Contract.Assert(trace != null);
            Contract.Assert(name != null);

            var foundSegment = trace.RootSegment.TryFindSegment(name);

            return(foundSegment != null);
        }
        public static bool TryFindSegment(this TransactionTrace trace, string name, string parameterKey, string parameterValue)
        {
            Contract.Assert(trace != null);
            Contract.Assert(name != null);
            Contract.Assert(parameterKey != null);
            Contract.Assert(parameterValue != null);

            var foundSegment = trace.RootSegment.TryFindSegment(name, parameterKey, parameterValue);

            return(foundSegment != null);
        }
예제 #4
0
 public TransactionSample(DateTime timestamp, TimeSpan duration, string path, string uri, TransactionTrace traceData, string guid, bool forcePersist, ulong?xRaySessionId)
 {
     Timestamp     = timestamp;
     Duration      = duration;
     Path          = path;
     Uri           = uri;
     TraceData     = traceData;
     Guid          = guid;
     ForcePersist  = forcePersist;
     XRaySessionId = xRaySessionId;
 }