internal NewRelicTraceExporter(TraceDataSender spanDataSender, NewRelicExporterOptions options, ITelemetryLogger logger) { _spanDataSender = spanDataSender; spanDataSender.AddVersionInfo(ProductInfo.Name, ProductInfo.Version); _config = options.TelemetryConfiguration; _logger = logger; }
internal NewRelicTraceExporter(NewRelicExporterOptions options, ITelemetryLogger logger) : this(new TraceDataSender(options.TelemetryConfiguration, logger, "exporter"), options, logger) { }
/// <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()) { }