Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Come back to sampler_config
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
Etienne-Carriere authored and Etienne Carriere committed Sep 3, 2021
1 parent 0afa43b commit a58551d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jaeger_client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ def max_traceback_length(self):

@property
def sampler(self):
sampler_param = self.config.get('sampler', {})
if isinstance(sampler_param, Sampler):
return sampler_param
sampler_type = sampler_param.get('type', None)
sampler_param = sampler_param.get('param', None)
sampler_config = self.config.get('sampler', {})
if isinstance(sampler_config, Sampler):
return sampler_config
sampler_type = sampler_config.get('type', None)
sampler_param = sampler_config.get('param', None)
if not sampler_type:
return None
elif sampler_type == SAMPLER_TYPE_CONST:
Expand Down

0 comments on commit a58551d

Please sign in to comment.