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.6.1.tar.gz
.
File metadata
- Download URL: opentelemetry-instrumentation-digma-django-0.6.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8675405acbe4a858b7249412b60ae35dd3fb090cbd0275d27bd917022eabc33e |
|
MD5 | 9205fdfdeb41ac955c162d9bdb5fa170 |
|
BLAKE2b-256 | 52d69c69c2d31d317dfa92725eefc837a513b9589a92426f4ca6ad0431111ec5 |
File details
Details for the file opentelemetry_instrumentation_digma_django-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_digma_django-0.6.1-py3-none-any.whl
- Upload date:
- Size: 4.2 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 | 01d1bf6f7942d88020c5abaffc77125095c1c039a6b87a79f8c8b683146910c5 |
|
MD5 | 288a55cf3916bde0d84de289fbdded88 |
|
BLAKE2b-256 | 63d4021b0ce6d583a78fe5f6b4209117a10dd8043c6b0c215a1778733cd334ee |