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