예제 #1
0
        internal NewRelicTraceExporter(TraceDataSender spanDataSender, NewRelicExporterOptions options, ITelemetryLogger logger)
        {
            _spanDataSender = spanDataSender;
            spanDataSender.AddVersionInfo(ProductInfo.Name, ProductInfo.Version);

            _config = options.TelemetryConfiguration;

            _logger = logger;
        }
예제 #2
0
 internal NewRelicTraceExporter(NewRelicExporterOptions options, ITelemetryLogger logger)
     : this(new TraceDataSender(options.TelemetryConfiguration, logger, "exporter"), options, logger)
 {
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NewRelicTraceExporter"/> class.
 /// Configures the Trace Exporter accepting configuration settings from an instance of the New Relic Exporter options object.
 /// </summary>
 /// <param name="options"></param>
 public NewRelicTraceExporter(NewRelicExporterOptions options)
     : this(options, new SelfDiagnosticsLogger())
 {
 }