Django¶
logfire.instrument_django() method can be used to detect Django Web framework usingLogfire
install¶
Install logfire using django extra:
{{ install_logfire(extras=['django']) }}
usage¶
In the settings.py file, add the following line:
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.instrument_django] Use OpenTelemetry Django Instrumentation Bag, you can here Find more information about the package.
Capture request and response headers¶
本文总阅读量次