Skip to content

Commit ef98549

Browse files
authored
Merge branch 'main' into django-asgi
2 parents cae7e53 + 201aa2b commit ef98549

File tree

48 files changed

+112
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+112
-110
lines changed

_template/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"version.py",
2828
)
2929
PACKAGE_INFO = {}
30-
with open(VERSION_FILENAME) as f:
30+
with open(VERSION_FILENAME, encoding="utf-8") as f:
3131
exec(f.read(), PACKAGE_INFO)
3232

3333
setuptools.setup(

exporter/opentelemetry-exporter-datadog/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
BASE_DIR, "src", "opentelemetry", "exporter", "datadog", "version.py"
2222
)
2323
PACKAGE_INFO = {}
24-
with open(VERSION_FILENAME) as f:
24+
with open(VERSION_FILENAME, encoding="utf-8") as f:
2525
exec(f.read(), PACKAGE_INFO)
2626

2727
setuptools.setup(version=PACKAGE_INFO["__version__"])

instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"aiohttp_client",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"aiohttp_client",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-aiopg/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "aiopg", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "aiopg", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-asgi/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "asgi", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "asgi", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-asyncpg/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"asyncpg",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"asyncpg",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-boto/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "boto", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "boto", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-botocore/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"botocore",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"botocore",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-celery/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "celery", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "celery", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def attach_span(task, task_id, span, is_publish=False):
131131
"""
132132
span_dict = getattr(task, CTX_KEY, None)
133133
if span_dict is None:
134-
span_dict = dict()
134+
span_dict = {}
135135
setattr(task, CTX_KEY, span_dict)
136136

137137
span_dict[(task_id, is_publish)] = span

instrumentation/opentelemetry-instrumentation-celery/tests/test_utils.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -199,35 +199,35 @@ def test_task_id_from_protocol_v2(self):
199199
["user"],
200200
{"force_logout": True},
201201
{
202-
u"chord": None,
203-
u"callbacks": None,
204-
u"errbacks": None,
205-
u"chain": None,
202+
"chord": None,
203+
"callbacks": None,
204+
"errbacks": None,
205+
"chain": None,
206206
},
207207
),
208-
"sender": u"tests.contrib.celery.test_integration.fn_task_parameters",
209-
"exchange": u"",
210-
"routing_key": u"celery",
208+
"sender": "tests.contrib.celery.test_integration.fn_task_parameters",
209+
"exchange": "",
210+
"routing_key": "celery",
211211
"retry_policy": None,
212212
"headers": {
213-
u"origin": u"gen83744@hostname",
214-
u"root_id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
215-
u"expires": None,
216-
u"shadow": None,
217-
u"id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
218-
u"kwargsrepr": u"{'force_logout': True}",
219-
u"lang": u"py",
220-
u"retries": 0,
221-
u"task": u"tests.contrib.celery.test_integration.fn_task_parameters",
222-
u"group": None,
223-
u"timelimit": [None, None],
224-
u"parent_id": None,
225-
u"argsrepr": u"['user']",
226-
u"eta": None,
213+
"origin": "gen83744@hostname",
214+
"root_id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
215+
"expires": None,
216+
"shadow": None,
217+
"id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
218+
"kwargsrepr": "{'force_logout': True}",
219+
"lang": "py",
220+
"retries": 0,
221+
"task": "tests.contrib.celery.test_integration.fn_task_parameters",
222+
"group": None,
223+
"timelimit": [None, None],
224+
"parent_id": None,
225+
"argsrepr": "['user']",
226+
"eta": None,
227227
},
228228
"properties": {
229-
u"reply_to": "c3054a07-5b28-3855-b18c-1623a24aaeca",
230-
u"correlation_id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
229+
"reply_to": "c3054a07-5b28-3855-b18c-1623a24aaeca",
230+
"correlation_id": "7e917b83-4018-431d-9832-73a28e1fb6c0",
231231
},
232232
}
233233

instrumentation/opentelemetry-instrumentation-dbapi/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "dbapi", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "dbapi", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-django/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "django", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "django", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-elasticsearch/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"elasticsearch",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"elasticsearch",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-falcon/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "falcon", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "falcon", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-fastapi/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"fastapi",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"fastapi",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-flask/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "flask", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "flask", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-grpc/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "grpc", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "grpc", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-httpx/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "httpx", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "httpx", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-jinja2/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "jinja2", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "jinja2", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-logging/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"logging",
4747
"version.py",
4848
)
49-
with open(VERSION_FILENAME) as f:
49+
with open(VERSION_FILENAME, encoding="utf-8") as f:
5050
exec(f.read(), PACKAGE_INFO)
5151

5252
PACKAGE_FILENAME = os.path.join(
@@ -57,7 +57,7 @@
5757
"logging",
5858
"package.py",
5959
)
60-
with open(PACKAGE_FILENAME) as f:
60+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
6161
exec(f.read(), PACKAGE_INFO)
6262

6363
# Mark any instruments/runtime dependencies as test dependencies as well.

instrumentation/opentelemetry-instrumentation-mysql/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
VERSION_FILENAME = os.path.join(
4242
BASE_DIR, "src", "opentelemetry", "instrumentation", "mysql", "version.py"
4343
)
44-
with open(VERSION_FILENAME) as f:
44+
with open(VERSION_FILENAME, encoding="utf-8") as f:
4545
exec(f.read(), PACKAGE_INFO)
4646

4747
PACKAGE_FILENAME = os.path.join(
4848
BASE_DIR, "src", "opentelemetry", "instrumentation", "mysql", "package.py"
4949
)
50-
with open(PACKAGE_FILENAME) as f:
50+
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
5151
exec(f.read(), PACKAGE_INFO)
5252

5353
# Mark any instruments/runtime dependencies as test dependencies as well.

0 commit comments

Comments
 (0)