Skip to content

Commit ba14df1

Browse files
authored
aiohttp: Explicitly set scope to None when not tracing (#137)
* aiohttp: Explicitly set scope to None when not tracing * Limit Django version until 2.2 is validated
1 parent 10bdfa7 commit ba14df1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

instana/instrumentation/aiohttp/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async def stan_request_start(session, trace_config_ctx, params):
1818

1919
# If we're not tracing, just return
2020
if parent_span is None:
21+
trace_config_ctx.scope = None
2122
return
2223

2324
scope = async_tracer.start_active_span("aiohttp-client", child_of=parent_span)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def check_setuptools():
5555
'test': [
5656
'aiohttp>=3.5.4;python_version>="3.5"',
5757
'asynqp>=0.4;python_version>="3.5"',
58-
'django>=1.11',
58+
'django>=1.11,<2.2',
5959
'nose>=1.0',
6060
'flask>=0.12.2',
6161
'lxml>=3.4',

0 commit comments

Comments
 (0)