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 authored and hyoinandout committed Aug 29, 2024
1 parent a764bc5 commit 8b80e2e
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 8b80e2e

Please sign in to comment.