public static Segment createMethodSegmentBuilder(TimeSpan start, TimeSpan duration, int uniqueId, int?parentId, MethodCallData methodCallData, IEnumerable <KeyValuePair <string, object> > enumerable, string type, string method, bool combinable) { var segment = new Segment(SimpleSegmentDataTests.createTransactionSegmentState(uniqueId, parentId), methodCallData); segment.SetSegmentData(new MethodSegmentData(type, method)); segment.Combinable = combinable; return(new Segment(start, duration, segment, null)); }
public static Segment createMessageBrokerSegmentBuilder(TimeSpan start, TimeSpan duration, int uniqueId, int?parentId, MethodCallData methodCallData, IEnumerable <KeyValuePair <string, object> > enumerable, string vendor, string queue, MetricNames.MessageBrokerDestinationType type, MetricNames.MessageBrokerAction action, bool combinable) { var segment = new Segment(SimpleSegmentDataTests.createTransactionSegmentState(uniqueId, parentId), methodCallData); segment.SetSegmentData(new MessageBrokerSegmentData(vendor, queue, type, action)); segment.Combinable = combinable; return(new Segment(start, duration, segment, null)); }
public static Segment createExternalSegmentBuilder(TimeSpan relativeStart, TimeSpan duration, int uniqueId, int?parentId, MethodCallData methodCallData, IEnumerable <KeyValuePair <string, object> > parameters, Uri uri, string method, CrossApplicationResponseData crossApplicationResponseData, bool combinable) { var data = new ExternalSegmentData(uri, method, crossApplicationResponseData); var segment = new Segment(SimpleSegmentDataTests.createTransactionSegmentState(uniqueId, parentId), methodCallData); segment.SetSegmentData(data); segment.Combinable = combinable; return(segment); }