Skip to content

Commit

Permalink
old style type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Feb 24, 2025
1 parent 5e286ed commit c459454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/opentelemetry/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def get_parent_sample_rate(parent_context, trace_id):
return None


def _update_sample_rate(sample_rate: float, trace_state: TraceState) -> TraceState:
def _update_sample_rate(sample_rate, trace_state):
# type: (float, TraceState) -> TraceState
if TRACESTATE_SAMPLE_RATE_KEY in trace_state:
trace_state = trace_state.update(TRACESTATE_SAMPLE_RATE_KEY, str(sample_rate))
else:
Expand Down

0 comments on commit c459454

Please sign in to comment.