ジャンゴ¶
logfire.instrument_django() メソッドは、Logfireを使用してDjangoWebフレームワークを検出するために使用できます。
インストール¶
django extraを使用して logfire をインストールする:
{{ install_logfire(extras=['django']) }}
使い方¶
settings.py ファイルに、次の行を追加します。
import logfire
# ...All the other settings...
# Add the following lines at the end of the file
logfire.configure()
logfire.instrument_django()
[logfire.instrument_django()][logfire. Logfire.device_django]OpenTelemometry Django Instrumentationパッケージを使用すると、はここでパッケージに関する詳細情報を見つけることができます。
リクエストとレスポンスヘッダーのキャプチャ¶
[django-https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/django/django.html#opentelemetry.instrumentation.django.DjangoInstrumentor
本文总阅读量次