public SqlServices(IDbConfiguration configuration) { _configuration = configuration; _connection = _configuration.GetConnection(); _mySqlConnection = new MySqlConnection(_connection); _mySqlCommand = _mySqlConnection.CreateCommand(); _reportTranslator = new ReportTranslator(); }
/// <inheritdoc /> private Tracer(IScopeManager scopeManager, IPropagator propagator, Options options, ISpanRecorder spanRecorder, ILightStepHttpClient client, IReportTranslator translator = null) { ScopeManager = scopeManager; _spanRecorder = spanRecorder; _propagator = propagator; _options = options; _logger.Debug( $"Creating new tracer with GUID {_options.TracerGuid}. Project Access Token: {_options.AccessToken}, Report Period: {_options.ReportPeriod}, Report Timeout: {_options.ReportTimeout}."); var protocol = _options.Satellite.UsePlaintext ? "http" : "https"; var url = $"{protocol}://{_options.Satellite.SatelliteHost}:{_options.Satellite.SatellitePort}/{LightStepConstants.SatelliteReportPath}"; _httpClient = client ?? new LightStepHttpClient(url, _options); _translator = translator ?? new ReportTranslator(_options); _logger.Debug($"Tracer is reporting to {url}."); _reportLoop = new Timer(async e => await Flush().ConfigureAwait(false), null, TimeSpan.Zero, _options.ReportPeriod); _firstReportHasRun = false; }
public TestForTranslator() { _reportTranslator = new ReportTranslator(); }
public FinalReport(IStore Database) { _database = Database; _dateGeneration = new DateGeneration(); _reportTranslator = new ReportTranslator(); }
public TestForReportGeneration() { _reportTranslator = new ReportTranslator(); }
/// <inheritdoc /> public Tracer(Options options, ISpanRecorder spanRecorder, IReportTranslator translator, ILightStepHttpClient client) : this( new AsyncLocalScopeManager(), Propagators.TextMap, options, spanRecorder, client, translator) { }