Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More cleanup + fix pyperf version #7

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions benchmarks/bm_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import elasticapm
from benchmarks.decorators import with_elasticapm_client


Expand All @@ -7,4 +6,4 @@ def bench_capture_exception(client):
try:
assert False
except AssertionError:
id = client.capture_exception()
client.capture_exception()
12 changes: 2 additions & 10 deletions benchmarks/bm_transactions.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import elasticapm
from benchmarks.decorators import with_elasticapm_client
from elasticapm import capture_span

try:
from elasticapm import capture_span
except ImportError:
from elasticapm import trace as capture_span
from benchmarks.decorators import with_elasticapm_client


@with_elasticapm_client()
Expand All @@ -25,7 +21,3 @@ def bench_transaction_spans(client):
with capture_span("test3"):
pass
client.end_transaction("test", "OK")


def bench_init():
client = elasticapm.Client()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ click==8.1.3
elastic-transport==8.4.0
elasticsearch==8.3.0
psutil==5.9.5
pyperf==2.6.0
pyperf==2.3.1
python-dateutil==2.8.2
urllib3==1.26.15
wrapt==1.15.0