/// <summary> /// Creates a set of <see cref="ZipkinTracerOptions" /> that uses a <see cref="ZipkinHttpSpanReporter" /> /// created from the provided values. /// </summary> /// <param name="zipkinHttpUrl">The HTTP API of the Zipkin server.</param> /// <param name="localServiceName">The name of the local service.</param> /// <param name="localServiceAddress">The bound address of the local service.</param> /// <param name="localServicePort">The bound port of the local service.</param> /// <param name="debug">Turns on debugging settings.</param> public ZipkinTracerOptions(string zipkinHttpUrl, string localServiceName, string localServiceAddress = null, int?localServicePort = null, bool debug = false) { Reporter = ZipkinHttpSpanReporter.Create(new ZipkinHttpReportingOptions(zipkinHttpUrl, debugLogging: debug)); LocalEndpoint = new Endpoint(localServiceName, localServiceAddress, localServicePort); DebugMode = debug; }
public void ShouldNotShutDownNonOwnedActorSystem() { var zipkinSpanReporter = ZipkinHttpSpanReporter.Create(new ZipkinHttpReportingOptions("localhost:9311"), Sys); zipkinSpanReporter.Dispose(); Sys.WhenTerminated.IsCompleted.Should().BeFalse(); }
public ZipkinHttpIntegrationSpecs(ITestOutputHelper helper, ZipkinFixture fixture) : base(output: helper) { _appName = Sys.Name + ZipkinAppCounter.IncrementAndGet(); Tracer = new ZipkinTracer(new ZipkinTracerOptions( new Endpoint(_appName), ZipkinHttpSpanReporter.Create(new ZipkinHttpReportingOptions($"http://{fixture.ZipkinUrl}"), Sys)) { ScopeManager = new AsyncLocalScopeManager() }); _httpBaseUri = new Uri($"http://{fixture.ZipkinUrl}/"); _zipkinClient = new HttpClient(); }