Adjusted UseZipkin to new signature (#514)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
parent
988984a7fa
commit
f0a0b07ffb
|
|
@ -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")))
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue