Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more padding on tests that measure sample rates
Browse files Browse the repository at this point in the history
adrnswanberg committed Dec 12, 2024
1 parent a720f05 commit e5dc643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/trace/test_client_trace.py
Original file line number Diff line number Diff line change
@@ -3045,7 +3045,7 @@ def sometimes_traced(x: int) -> int:
sometimes_traced(i)
assert sometimes_traced_calls == num_runs # Function was called every time
num_traces = len(list(sometimes_traced.calls()))
assert 40 < num_traces < 60 # But only traced ~50% of the time
assert 35 < num_traces < 65 # But only traced ~50% of the time


def test_op_sampling_async(client):
@@ -3092,7 +3092,7 @@ async def sometimes_traced(x: int) -> int:
asyncio.run(sometimes_traced(i))
assert sometimes_traced_calls == num_runs # Function was called every time
num_traces = len(list(sometimes_traced.calls()))
assert 40 < num_traces < 60 # But only traced ~50% of the time
assert 35 < num_traces < 65 # But only traced ~50% of the time


def test_op_sampling_inheritance(client):

0 comments on commit e5dc643

Please sign in to comment.