Adjusted UseZipkin to new signature (#514)

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
Łukasz Pyrzyk 2020-03-02 18:52:33 +01:00 committed by GitHub
parent 988984a7fa
commit f0a0b07ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -247,7 +247,7 @@ Configuration is done by user application: it should configure exporter and may
```csharp
using (TracerFactory.Create(builder => builder
.UseZipkin()
.UseZipkin(options => {})
.SetResource(Resources.CreateServiceResource("http-client-test")))
{
// ...
@ -268,7 +268,7 @@ Configuration is done by user application: it should configure exporter and may
{
builder
.SetSampler(new AlwaysSampleSampler())
.UseZipkin()
.UseZipkin(options => {})
// you may also configure request and dependencies collectors
.AddRequestCollector()
@ -292,7 +292,7 @@ Outgoing http calls to Redis made using StackExchange.Redis library can be autom
using (TracerFactory.Create(b => b
.SetSampler(new AlwaysSampleSampler())
.UseZipkin()
.UseZipkin(options => {})
.SetResource(Resources.CreateServiceResource("my-service"))
.AddCollector(t =>
{
@ -314,7 +314,7 @@ You may configure sampler of your choice
```csharp
using (TracerFactory.Create(b => b
.SetSampler(new ProbabilitySampler(0.1))
.UseZipkin()
.UseZipkin(options => {})
.SetResource(Resources.CreateServiceResource("my-service")))
{