public WrapperService(IConfigurationService configurationService, IWrapperMap wrapperMap, IAgent agent, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService)
 {
     _configurationService   = configurationService;
     _maxConsecutiveFailures = configurationService.Configuration.WrapperExceptionLimit;
     _agent               = agent;
     _wrapperMap          = wrapperMap;
     _agentHealthReporter = agentHealthReporter;
     _agentTimerService   = agentTimerService;
     _functionIdToWrapper = new ConcurrentDictionary <ulong, InstrumentedMethodInfoWrapper>();
 }
 public SpanStreamingService(IGrpcWrapper <SpanBatch, RecordStatus> grpcWrapper, IDelayer delayer, IConfigurationService configSvc, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService)
     : base(grpcWrapper, delayer, configSvc, agentHealthReporter, agentTimerService)
 {
 }
Exemple #3
0
        public Agent(ITransactionService transactionService, ITransactionTransformer transactionTransformer,
                     IThreadPoolStatic threadPoolStatic, ITransactionMetricNameMaker transactionMetricNameMaker, IPathHashMaker pathHashMaker,
                     ICatHeaderHandler catHeaderHandler, IDistributedTracePayloadHandler distributedTracePayloadHandler,
                     ISyntheticsHeaderHandler syntheticsHeaderHandler, ITransactionFinalizer transactionFinalizer,
                     IBrowserMonitoringPrereqChecker browserMonitoringPrereqChecker, IBrowserMonitoringScriptMaker browserMonitoringScriptMaker,
                     IConfigurationService configurationService, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService,
                     IMetricNameService metricNameService, Api.ITraceMetadataFactory traceMetadataFactory, ICATSupportabilityMetricCounters catMetricCounters)
        {
            _transactionService         = transactionService;
            _transactionTransformer     = transactionTransformer;
            _threadPoolStatic           = threadPoolStatic;
            _transactionMetricNameMaker = transactionMetricNameMaker;
            _pathHashMaker    = pathHashMaker;
            _catHeaderHandler = catHeaderHandler;
            _distributedTracePayloadHandler = distributedTracePayloadHandler;
            _syntheticsHeaderHandler        = syntheticsHeaderHandler;
            _transactionFinalizer           = transactionFinalizer;
            _browserMonitoringPrereqChecker = browserMonitoringPrereqChecker;
            _browserMonitoringScriptMaker   = browserMonitoringScriptMaker;
            _configurationService           = configurationService;
            _agentHealthReporter            = agentHealthReporter;
            _agentTimerService    = agentTimerService;
            _metricNameService    = metricNameService;
            _traceMetadataFactory = traceMetadataFactory;
            _catMetricCounters    = catMetricCounters;

            Instance = this;
        }
Exemple #4
0
        protected DataStreamingService(IGrpcWrapper <TRequestBatch, TResponse> grpcWrapper, IDelayer delayer, IConfigurationService configSvc, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService)
        {
            _grpcWrapper       = grpcWrapper;
            _delayer           = delayer;
            _configSvc         = configSvc;
            _agentTimerService = agentTimerService;

            _cancellationTokenSource = new CancellationTokenSource();
            _agentHealthReporter     = agentHealthReporter;

            //This will ensure that anything that depends on the token will not run until
            //we are ready (ie. we have called Start which will generate a new token).
            _cancellationTokenSource.Cancel();
        }
 public TransactionTransformer(ITransactionMetricNameMaker transactionMetricNameMaker, ISegmentTreeMaker segmentTreeMaker, IMetricNameService metricNameService, IMetricAggregator metricAggregator, IConfigurationService configurationService, ITransactionTraceAggregator transactionTraceAggregator, ITransactionTraceMaker transactionTraceMaker, ITransactionEventAggregator transactionEventAggregator, ITransactionEventMaker transactionEventMaker, ITransactionAttributeMaker transactionAttributeMaker, IErrorTraceAggregator errorTraceAggregator, IErrorTraceMaker errorTraceMaker, IErrorEventAggregator errorEventAggregator, IErrorEventMaker errorEventMaker, ISqlTraceAggregator sqlTraceAggregator, ISqlTraceMaker sqlTraceMaker, ISpanEventAggregator spanEventAggregator, ISpanEventMaker spanEventMaker, IAgentTimerService agentTimerService,
                               IAdaptiveSampler adaptiveSampler, IErrorService errorService, ISpanEventAggregatorInfiniteTracing spanEventAggregatorInfiniteTracing)
 {
     _transactionMetricNameMaker = transactionMetricNameMaker;
     _segmentTreeMaker           = segmentTreeMaker;
     _metricNameService          = metricNameService;
     _metricAggregator           = metricAggregator;
     _configurationService       = configurationService;
     _transactionTraceAggregator = transactionTraceAggregator;
     _transactionTraceMaker      = transactionTraceMaker;
     _transactionEventAggregator = transactionEventAggregator;
     _transactionEventMaker      = transactionEventMaker;
     _transactionAttributeMaker  = transactionAttributeMaker;
     _errorTraceAggregator       = errorTraceAggregator;
     _errorTraceMaker            = errorTraceMaker;
     _errorEventAggregator       = errorEventAggregator;
     _errorEventMaker            = errorEventMaker;
     _sqlTraceAggregator         = sqlTraceAggregator;
     _sqlTraceMaker       = sqlTraceMaker;
     _spanEventAggregator = spanEventAggregator;
     _spanEventAggregatorInfiniteTracing = spanEventAggregatorInfiniteTracing;
     _spanEventMaker    = spanEventMaker;
     _agentTimerService = agentTimerService;
     _adaptiveSampler   = adaptiveSampler;
     _errorService      = errorService;
 }