Skip to content

Commit

Permalink
Ensure that SENTRY_TRACES_SAMPLE_RATE is coerced to the correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Oct 6, 2021
1 parent 4ac12eb commit 25de719
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composed_configuration/_sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ def mutate_configuration(configuration: Type[ComposedConfiguration]) -> None:

SENTRY_RELEASE = values.Value(None)

SENTRY_TRACES_SAMPLE_RATE = values.Value(None)
# None is a valid default value, but if this is set via environment variable,
# the value must be interpretable as a float
SENTRY_TRACES_SAMPLE_RATE = values.FloatValue(None)

0 comments on commit 25de719

Please sign in to comment.