public PrometheusExporterMetricsService(MetricExporter exporter, MagicOnionOpenTelemetryOptions options, IConfiguration configuration, ILogger <PrometheusExporterMetricsService> logger) { this.logger = logger; this.options = options; if (exporter is PrometheusExporter prometheusExporter) { server = new PrometheusExporterMetricsHttpServerCustom(prometheusExporter, options.MetricsExporterHostingEndpoint); } }
public PrometheusExporterMetricsService(MetricExporter exporter, MagicOnionOpenTelemetryOptions options, IConfiguration configuration, ILogger <PrometheusExporterMetricsService> logger) { this.logger = logger; this.options = options; if (exporter is PrometheusExporter prometheusExporter) { metricsExporterHostingEndpoint = configuration.GetSection("MagicOnion:OpenTelemetry").GetValue("PrometheusMetricsHostingEndpoint", options.MetricsExporterEndpoint); server = new PrometheusExporterMetricsHttpServerCustom(prometheusExporter, metricsExporterHostingEndpoint); } }
public OpenTelemetryHubCollectorFilter(TracerFactory tracerFactory, MagicOnionOpenTelemetryOptions telemetryOption) { this.tracerFactcory = tracerFactory; this.serviceName = telemetryOption.ServiceName; }
public ChatHub(MagicOnionOpenTelemetryOptions options) { this.options = options; }
public ChatService(MagicOnionOpenTelemetryOptions options, ILogger <ChatService> logger) { this.options = options; this.logger = logger; }