/// <summary> /// Initializes a new instance of the <see cref="ZPagesSpanProcessor"/> class. /// </summary> /// <param name="exporter">Zpage Span processor instance.</param> public ZPagesSpanProcessor(ZPagesExporter exporter) { this.exporter = exporter; }
/// <summary> /// Initializes a new instance of the <see cref="ZPagesExporterStatsHttpServer"/> class. /// </summary> /// <param name="exporter">The <see cref="ZPagesExporterStatsHttpServer"/> instance.</param> /// <param name="spanProcessor">The <see cref="SimpleSpanProcessor"/> instance.</param> public ZPagesExporterStatsHttpServer(ZPagesExporter exporter, ZPagesSpanProcessor spanProcessor) { this.exporter = exporter; this.spanProcessor = spanProcessor; this.httpListener.Prefixes.Add(exporter.Options.Url); }
/// <summary> /// Initializes a new instance of the <see cref="ZPagesExporterStatsHttpServer"/> class. /// </summary> /// <param name="exporter">The <see cref="ZPagesExporterStatsHttpServer"/> instance.</param> public ZPagesExporterStatsHttpServer(ZPagesExporter exporter) { Guard.ThrowIfNull(exporter?.Options?.Url, $"{nameof(exporter)}?.{nameof(exporter.Options)}?.{nameof(exporter.Options.Url)}"); this.httpListener.Prefixes.Add(exporter.Options.Url); }
/// <summary> /// Initializes a new instance of the <see cref="ZPagesExporterStatsHttpServer"/> class. /// </summary> /// <param name="exporter">The <see cref="ZPagesExporterStatsHttpServer"/> instance.</param> public ZPagesExporterStatsHttpServer(ZPagesExporter exporter) { this.httpListener.Prefixes.Add(exporter?.Options?.Url ?? throw new ArgumentNullException(nameof(exporter))); }
/// <summary> /// Initializes a new instance of the <see cref="ZPagesExporterStatsHttpServer"/> class. /// </summary> /// <param name="exporter">The <see cref="ZPagesExporterStatsHttpServer"/> instance.</param> public ZPagesExporterStatsHttpServer(ZPagesExporter exporter) { this.httpListener.Prefixes.Add(exporter.Options.Url); }