/// <summary> /// Initialise a new instance of the <see cref="ConsoleTrace"/> class using specified formatters. /// </summary> /// <param name="metricFormatter">Formatter to use for writing metrics. If null, metrics will not be written to the console.</param> /// <param name="scopeFormatter">Formatter to use for writing scope creation information. If null, scope creation/disposal messages will not be written to the console.</param> public ConsoleTrace(IMetricFormatter metricFormatter, IScopeFormatter scopeFormatter) { _metricFormatter = metricFormatter; _scopeFormatter = scopeFormatter; WriteMessage("TRACE", "Created"); }
public VictoriaMetricClient(IMetricFormatter <string> metricFormatter, VictoriaConfig config, IMetricConverter converter, HttpClient httpClient) { _metricFormatter = metricFormatter; _converter = converter; _httpClient = httpClient; _httpClient.BaseAddress = new Uri(config.Uri); _chunkSize = config.ChunkSize < 50 ? 50 : config.ChunkSize; }
public SpectatorService(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory, IMetricPublisher publisher, IMetricFormatter metricFormatter) { _cancellationTokenSource = new CancellationTokenSource(); _eventLoopTask = new Task(BeginSpectating, _cancellationTokenSource.Token); _configuration = configuration; _queryableSourceFactory = queryableSourceFactory; _publisher = publisher; _metricFormatter = metricFormatter; }
public SpectatorServiceTestHarness(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory, IMetricPublisher publisher, IMetricFormatter metricFormatter) : base(configuration, queryableSourceFactory, publisher, metricFormatter) { }