コード例 #1
0
ファイル: Tracer.cs プロジェクト: ysn47/apm-agent-dotnet
 public Tracer(
     IApmLogger logger,
     Service service,
     IPayloadSender payloadSender,
     IConfigSnapshotProvider configProvider,
     ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer
     )
 {
     _logger         = logger?.Scoped(nameof(Tracer));
     _service        = service;
     _sender         = payloadSender.ThrowIfArgumentNull(nameof(payloadSender));
     _configProvider = configProvider.ThrowIfArgumentNull(nameof(configProvider));
     CurrentExecutionSegmentsContainer = currentExecutionSegmentsContainer.ThrowIfArgumentNull(nameof(currentExecutionSegmentsContainer));
 }
コード例 #2
0
 public Tracer(
     IApmLogger logger,
     Service service,
     IPayloadSender payloadSender,
     IConfigurationReader configurationReader,
     ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer
     )
 {
     _logger              = logger?.Scoped(nameof(Tracer));
     _service             = service;
     _sender              = payloadSender.ThrowIfArgumentNull(nameof(payloadSender));
     _configurationReader = configurationReader.ThrowIfArgumentNull(nameof(configurationReader));
     Sampler              = new Sampler(configurationReader.TransactionSampleRate);
     CurrentExecutionSegmentsContainer = currentExecutionSegmentsContainer.ThrowIfArgumentNull(nameof(currentExecutionSegmentsContainer));
 }
コード例 #3
0
ファイル: Tracer.cs プロジェクト: elastic/apm-agent-dotnet
 public Tracer(
     IApmLogger logger,
     Service service,
     IPayloadSender payloadSender,
     IConfigurationSnapshotProvider configurationProvider,
     ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer,
     IApmServerInfo apmServerInfo,
     BreakdownMetricsProvider breakdownMetricsProvider
     )
 {
     _logger  = logger?.Scoped(nameof(Tracer));
     _service = service;
     _sender  = payloadSender.ThrowIfArgumentNull(nameof(payloadSender));
     _configurationProvider            = configurationProvider.ThrowIfArgumentNull(nameof(configurationProvider));
     CurrentExecutionSegmentsContainer = currentExecutionSegmentsContainer.ThrowIfArgumentNull(nameof(currentExecutionSegmentsContainer));
     DbSpanCommon              = new DbSpanCommon(logger);
     _apmServerInfo            = apmServerInfo;
     _breakdownMetricsProvider = breakdownMetricsProvider;
 }