/// <summary> /// Creates a new set of options for the SplunkTracing tracer. /// </summary> /// <param name="token">Project access token, if required.</param> public Options(string token = "") { Tags = InitializeDefaultTags(); ReportPeriod = TimeSpan.FromMilliseconds(5000); ReportTimeout = TimeSpan.FromSeconds(30); AccessToken = token; Collector = new CollectorOptions("localhost", 8088, false); UseHttp2 = false; Run = true; ReportMaxSpans = int.MaxValue; Transport = TransportOptions.JsonHttp; EnableMetaEventLogging = false; ExceptionHandlerRegistered = false; }
public Options WithCollector(CollectorOptions options) { _logger.Debug($"Setting collector to {options}"); Collector = options; return(this); }