Skip to content

Commit

Permalink
Merge branch 'master' into flush-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
beniwohli authored May 31, 2021
2 parents 41cec53 + 5e2ebd3 commit e6bb3b2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .ci/.jenkins_exclude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ exclude:
FRAMEWORK: aioredis-newest
- PYTHON_VERSION: python-3.10-rc # getting "loop argument must agree with lock" error
FRAMEWORK: aioredis-newest
- PYTHON_VERSION: python-3.10-rc
FRAMEWORK: httpx-0.12
# aiomysql
- PYTHON_VERSION: pypy-3
FRAMEWORK: aiomysql-newest
Expand Down
5 changes: 2 additions & 3 deletions .ci/.jenkins_framework_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ FRAMEWORK:
- pymongo-3.4
- pymongo-3.5
- pymongo-newest
- redis-2.8
- redis-2.9
- redis-3
- redis-2
- redis-newest
- psycopg2-2.7
- psycopg2-newest
Expand Down Expand Up @@ -74,7 +74,6 @@ FRAMEWORK:
- pymemcache-3.0
- pymemcache-newest
- graphene-2
- httpx-0.12
- httpx-0.13
- httpx-0.14
- httpx-newest
Expand Down
2 changes: 1 addition & 1 deletion elasticapm/instrumentation/packages/asyncio/httpcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HTTPCoreAsyncInstrumentation(AsyncAbstractInstrumentedModule):

instrument_list = [
("httpcore._async.connection", "AsyncHTTPConnection.request"), # < httpcore 0.11
("httpcore._async.connection", "AsyncHTTPConnection.arequest"), # httcore 0.11 - 0.12
("httpcore._async.connection", "AsyncHTTPConnection.arequest"), # httpcore 0.11 - 0.12
("httpcore._async.connection", "AsyncHTTPConnection.handle_async_request"), # >= httpcore 0.13
]

Expand Down
5 changes: 3 additions & 2 deletions tests/instrumentation/asyncio_tests/aioredis_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@ async def test_redis_client(instrument, elasticapm_client, redis_conn):
assert len(spans) == 3


@pytest.mark.skip(reason="Test is flaky for some reason, possibly related to import-time instrumentation")
@pytest.mark.integrationtest
async def test_publish_subscribe(instrument, elasticapm_client, redis_conn):
async def test_publish_subscribe_async(instrument, elasticapm_client, redis_conn):
elasticapm_client.begin_transaction("transaction.test")
with capture_span("test_publish_subscribe", "test"):
# publish
await redis_conn.publish("mykey", "a")

#subscribe
# subscribe
await redis_conn.subscribe("mykey")

elasticapm_client.end_transaction("MyView")
Expand Down
1 change: 1 addition & 0 deletions tests/instrumentation/redis_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def test_unix_domain_socket_connection_destination_info():
assert destination_info["address"] == "unix:///some/path"


@pytest.mark.skipif(redis.VERSION < (3,), reason="pubsub not available as context manager in redis-py 2")
@pytest.mark.integrationtest
def test_publish_subscribe(instrument, elasticapm_client, redis_conn):
elasticapm_client.begin_transaction("transaction.test")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
redis>=2.8,<2.9
redis<3
-r reqs-base.txt
2 changes: 0 additions & 2 deletions tests/requirements/reqs-redis-3.0.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
redis>=2.9,<2.10
redis<4
-r reqs-base.txt
2 changes: 1 addition & 1 deletion tests/requirements/reqs-redis-newest.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
redis>=2.10
redis
-r reqs-base.txt

0 comments on commit e6bb3b2

Please sign in to comment.