File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
docs/trace/customizing-the-sdk Expand file tree Collapse file tree 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()
363363 .Build ();
364364```
365365
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:
368368
369369| Environment variable | Description |
370370| -------------------------- | -------------------------------------------------- |
Original file line number Diff line number Diff line change @@ -407,12 +407,7 @@ protected override void Dispose(bool disposing)
407407
408408 private static Sampler GetSampler ( IConfiguration configuration , Sampler ? stateSampler )
409409 {
410- Sampler ? sampler = null ;
411-
412- if ( stateSampler != null )
413- {
414- sampler = stateSampler ;
415- }
410+ var sampler = stateSampler ;
416411
417412 if ( configuration . TryGetStringValue ( TracesSamplerConfigKey , out var configValue ) )
418413 {
You can’t perform that action at this time.
0 commit comments