public SegmentReporter(ConnectionManager connectionManager, IConfigAccessor configAccessor, ILoggerFactory loggerFactory) { _transportConfig = configAccessor.Get <TransportConfig>(); _segmentReporterV5 = new V5.SegmentReporter(connectionManager, configAccessor, loggerFactory); _segmentReporterV6 = new V6.SegmentReporter(connectionManager, configAccessor, loggerFactory); }
public AsyncQueueSegmentDispatcher(IConfigAccessor configAccessor, ISegmentReporter segmentReporter, ILoggerFactory loggerFactory) { _segmentReporter = segmentReporter; _logger = loggerFactory.CreateLogger(typeof(AsyncQueueSegmentDispatcher)); _config = configAccessor.Get <TransportConfig>(); _segmentQueue = new ConcurrentQueue <SegmentRequest>(); _cancellation = new CancellationTokenSource(); }
public AsyncQueueSegmentDispatcher(IConfigAccessor configAccessor, ISegmentReporter segmentReporter, IRuntimeEnvironment runtimeEnvironment, ISegmentContextMapper segmentContextMapper, ILoggerFactory loggerFactory) { _segmentReporter = segmentReporter; _segmentContextMapper = segmentContextMapper; _runtimeEnvironment = runtimeEnvironment; _logger = loggerFactory.CreateLogger(NLog.LogManager.GetCurrentClassLogger()); _config = configAccessor.Get <TransportConfig>(); _segmentQueue = new ConcurrentQueue <SegmentRequest>(); _cancellation = new CancellationTokenSource(); }
public AsyncQueueSegmentDispatcher(IOptions <SkyApmConfig> configAccessor, ISegmentReporter segmentReporter, IRuntimeEnvironment runtimeEnvironment, ISegmentContextMapper segmentContextMapper, ILoggerFactory loggerFactory) { _segmentReporter = segmentReporter; _segmentContextMapper = segmentContextMapper; _runtimeEnvironment = runtimeEnvironment; _logger = loggerFactory.CreateLogger(typeof(AsyncQueueSegmentDispatcher)); _config = configAccessor.Value?.Transport; _segmentQueue = new ConcurrentQueue <SegmentRequest>(); _cancellation = new CancellationTokenSource(); }