Skip to content

Commit 9c450f4

Browse files
authored
Merge branch 'main' into psycopg3-instrumentation
2 parents ee377d6 + c9832ba commit 9c450f4

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

instrumentation/opentelemetry-instrumentation-asyncpg/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ dependencies = [
3333
instruments = [
3434
"asyncpg >= 0.12.0",
3535
]
36-
test = [
37-
"opentelemetry-instrumentation-asyncpg[instruments]",
38-
"opentelemetry-test-utils == 0.45b0.dev",
39-
]
4036

4137
[project.entry-points.opentelemetry_instrumentor]
4238
asyncpg = "opentelemetry.instrumentation.asyncpg:AsyncPGInstrumentor"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
asgiref==3.7.2
2+
async-timeout==4.0.3
3+
asyncpg==0.29.0
4+
attrs==23.2.0
5+
Deprecated==1.2.14
6+
importlib-metadata==6.11.0
7+
iniconfig==2.0.0
8+
packaging==23.2
9+
pluggy==1.4.0
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
tomli==2.0.1
15+
typing_extensions==4.9.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e opentelemetry-instrumentation
19+
-e instrumentation/opentelemetry-instrumentation-asyncpg

instrumentation/opentelemetry-instrumentation-django/tests/test_middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,15 @@ def response_hook(span, request, response):
390390
self.assertIsInstance(response_hook_args[2], HttpResponse)
391391
self.assertEqual(response_hook_args[2], response)
392392

393-
async def test_trace_parent(self):
393+
def test_trace_parent(self):
394394
id_generator = RandomIdGenerator()
395395
trace_id = format_trace_id(id_generator.generate_trace_id())
396396
span_id = format_span_id(id_generator.generate_span_id())
397397
traceparent_value = f"00-{trace_id}-{span_id}-01"
398398

399399
Client().get(
400400
"/span_name/1234/",
401-
traceparent=traceparent_value,
401+
HTTP_TRACEPARENT=traceparent_value,
402402
)
403403
span = self.memory_exporter.get_finished_spans()[0]
404404

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ commands_pre =
343343

344344
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
345345

346-
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
346+
asyncpg: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg/test-requirements.txt
347347

348348
aws-lambda: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
349349

@@ -604,8 +604,8 @@ commands_pre =
604604
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient/test-requirements.txt
605605
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
606606
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch/test-requirements-2.txt
607-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
608607
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/test-requirements.txt
608+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg/test-requirements.txt
609609
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
610610
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
611611
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-1.txt
@@ -630,7 +630,7 @@ deps =
630630
amqp==5.2.0
631631
asgiref==3.7.2
632632
async-timeout==4.0.3
633-
asyncpg==0.27.0
633+
asyncpg==0.29.0
634634
attrs==23.2.0
635635
bcrypt==4.1.2
636636
billiard==4.2.0

0 commit comments

Comments
 (0)