विषय पर बढ़ें

Django

logfire.instrument_django() तरीकों का उपयोग किया जा सकता है लॉगफायर पता लगाना Django वेब ढांचा।

स्थापित करें

उपयोग django अतिरिक्त स्थापना 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()][लॉगफायर। लॉगफायर। instrument_django] उपयोग करें ओपनटेलीमेट्री Django इंस्ट्रूमेंटेशन बैग, आप कर सकते हैंयहाँ यह है। पैकेज के बारे में अधिक जानकारी प्राप्त करें।

अनुरोध और प्रतिक्रिया हेडर कैप्चर करें

[Django]: https://www.djangoproject.com / opentelemetry-django https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/django/django.html


本文总阅读量次