public OtlpGrpcTraceExportClient(OtlpExporterOptions options, OtlpCollector.TraceService.TraceServiceClient traceServiceClient = null) : base(options) { if (traceServiceClient != null) { this.traceClient = traceServiceClient; } else { this.Channel = options.CreateChannel(); this.traceClient = new OtlpCollector.TraceService.TraceServiceClient(this.Channel); } }
/// <summary> /// Initializes a new instance of the <see cref="OtlpExporter"/> class. /// </summary> /// <param name="options">Configuration options for the exporter.</param> public OtlpExporter(OtlpExporterOptions options) { this.headers = options.Headers; this.channel = new Channel(options.Endpoint, options.Credentials); this.traceClient = new OtlpCollector.TraceService.TraceServiceClient(this.channel); }
/// <summary> /// Initializes a new instance of the <see cref="OtlpExporter"/> class. /// </summary> /// <param name="options">Configuration options for the exporter.</param> public OtlpExporter(OtlpExporterOptions options) { this.headers = options?.Headers ?? throw new ArgumentNullException(nameof(options)); this.channel = new Channel(options.Endpoint, options.Credentials, options.ChannelOptions); this.traceClient = new OtlpCollector.TraceService.TraceServiceClient(this.channel); }
/// <summary> /// Initializes a new instance of the <see cref="TraceExporter"/> class. /// </summary> /// <param name="options">Configuration options for the exporter.</param> internal TraceExporter(ExporterOptions options) { this.channel = new Channel(options.Endpoint, options.Credentials); this.traceClient = new OtlpCollector.TraceService.TraceServiceClient(this.channel); }