Digma instrumentation for Django
Project description
opentelemetry-instrumenation-digma
This package provides instrumentation for additional span attributes provided on top of the opentelmetery-instrumentation-django package.
In order to be able to effectively glean code-object based insights for continuous feedback and map them back in the IDE, Digma inserts additional attribute into the OTEL resource attributes.
Installing the package
pip install opentelemetry-instrumentation-digma-django
Via pip, or add to your requirements/toml file and update your environment.
Building the package from source
python -m build
Instrumenting your Django project
The Digma instrumentation depends on the official opentelemetry instrumentation or some other middleware to create and manage span lifecycle for each request.
It can be used alongside the generic Digma Instrumentation helpers to quickly set up your OTEL configuration
digma_opentelmetry_boostrap(service_name='django-ms',
digma_backend='http://localhost:5050',
configuration=DigmaConfiguration().trace_this_package())
DjangoInstrumentor().instrument()
DigmaIntrumentor.instrument()
The Digma django instrumentation will simply add the view function and namespace using the Opentelemtry semantic convention. We have requested to include this functionality as a part of the more general opentelemetry-instrumenation-django package. Help us by upvoting this FR!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file opentelemetry-instrumentation-digma-django-0.7.3.tar.gz
.
File metadata
- Download URL: opentelemetry-instrumentation-digma-django-0.7.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 399080dbd372dc0c9e3103e23c8883734775ea066ec522daddff9555fdd3198f |
|
MD5 | 496052e4d1c37291f569cc413477dc1f |
|
BLAKE2b-256 | 05c1de9afc2f079c50f52899ce5b6dda008f1c1a505cee072ccce6f5707acc27 |
File details
Details for the file opentelemetry_instrumentation_digma_django-0.7.3-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_digma_django-0.7.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65572f30eb2d4fd66a55138ccd0815c76f9226649671029768cb5b40a831549e |
|
MD5 | f79557dd86618a8bf55741a1f237cf1d |
|
BLAKE2b-256 | 7c785f943cee6e740ee787865950972d03b25b671317387ae8a93f140e426721 |