File tree 2 files changed +3
-8
lines changed
docs/trace/customizing-the-sdk
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,8 @@ var tracerProvider = Sdk.CreateTracerProviderBuilder()
363
363
.Build ();
364
364
```
365
365
366
- It is also possible to configure the sampler by using the following
367
- environmental variables:
366
+ If using ` 1.8.0-rc.1 ` or newer it is also possible to configure the sampler by
367
+ using the following environmental variables:
368
368
369
369
| Environment variable | Description |
370
370
| -------------------------- | -------------------------------------------------- |
Original file line number Diff line number Diff line change @@ -407,12 +407,7 @@ protected override void Dispose(bool disposing)
407
407
408
408
private static Sampler GetSampler ( IConfiguration configuration , Sampler ? stateSampler )
409
409
{
410
- Sampler ? sampler = null ;
411
-
412
- if ( stateSampler != null )
413
- {
414
- sampler = stateSampler ;
415
- }
410
+ var sampler = stateSampler ;
416
411
417
412
if ( configuration . TryGetStringValue ( TracesSamplerConfigKey , out var configValue ) )
418
413
{
You can’t perform that action at this time.
0 commit comments