public ServiceProviderFixture()
        {
            var settings = new SettingsFixture().Settings;

            ServiceProvider = new ServiceCollection()
                              .AddJaegerTracing(settings)
                              .BuildServiceProvider();
        }
Exemple #2
0
        public TracerFixture()
        {
            var settings = new SettingsFixture().Settings;
            var reporter = new ReporterFixture().Reporter;
            var sampler  = new ConstSampler(sample: true);

            Tracer = new Tracer.Builder(settings.ServiceName)
                     .WithReporter(reporter)
                     .WithSampler(sampler)
                     .Build();
        }
Exemple #3
0
        public UdpSenderFixture()
        {
            var settings = new SettingsFixture().Settings;

            Sender = new UdpSender(settings.Host, settings.Port, maxPacketSize: ThriftUdpClientTransport.MaxPacketSize);
        }