Skip to content

Commit 05132d4

Browse files
authored
Add ASGI instrumentation package to django extra (#1097)
1 parent 93ea639 commit 05132d4

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

docs/integrations/web-frameworks/django.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ Install `logfire` with the `django` extra:
1212

1313
{{ install_logfire(extras=['django']) }}
1414

15-
!!! info
16-
If you use are using the **[Asynchronous support]** of Django, you'll also need to
17-
install the `asgi` extra:
18-
19-
{{ install_logfire(extras=['django,asgi']) }}
20-
2115
## Usage
2216

2317
In the `settings.py` file, add the following lines:
@@ -46,6 +40,5 @@ If you are using a different database, check the available instrumentation metho
4640
[django]: https://www.djangoproject.com/
4741
[opentelemetry-django]: https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/django/django.html
4842
[django-instrumentor]: https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/django/django.html#opentelemetry.instrumentation.django.DjangoInstrumentor
49-
[Asynchronous support]: https://docs.djangoproject.com/en/dev/topics/async/#asynchronous-support
5043
[uses SQLite as the database engine]: https://docs.djangoproject.com/en/dev/ref/settings/#databases
5144
[Integrations section]: ../index.md

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ asgi = ["opentelemetry-instrumentation-asgi >= 0.42b0"]
6262
wsgi = ["opentelemetry-instrumentation-wsgi >= 0.42b0"]
6363
aiohttp = ["opentelemetry-instrumentation-aiohttp-client >= 0.42b0"]
6464
celery = ["opentelemetry-instrumentation-celery >= 0.42b0"]
65-
django = ["opentelemetry-instrumentation-django >= 0.42b0"]
65+
django = ["opentelemetry-instrumentation-django >= 0.42b0", "opentelemetry-instrumentation-asgi >= 0.42b0"]
6666
fastapi = ["opentelemetry-instrumentation-fastapi >= 0.42b0"]
6767
flask = ["opentelemetry-instrumentation-flask >= 0.42b0"]
6868
httpx = ["opentelemetry-instrumentation-httpx >= 0.42b0"]

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)