Skip to content

Commit

Permalink
Add missing def in example (open-telemetry#4147)
Browse files Browse the repository at this point in the history
  • Loading branch information
avrong committed Aug 26, 2024
1 parent cb976b5 commit 98d3b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(rate):
# ...
class CustomSamplerFactory:
@staticmethod
get_sampler(sampler_argument):
def get_sampler(sampler_argument):
try:
rate = float(sampler_argument)
return CustomSampler(rate)
Expand Down

0 comments on commit 98d3b3e

Please sign in to comment.