Skip to main content

Digma instrumentation for Django

Project description

opentelemetry-instrumenation-digma

PyPI version

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

File hashes

Hashes for opentelemetry-instrumentation-digma-django-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8675405acbe4a858b7249412b60ae35dd3fb090cbd0275d27bd917022eabc33e
MD5 9205fdfdeb41ac955c162d9bdb5fa170
BLAKE2b-256 52d69c69c2d31d317dfa92725eefc837a513b9589a92426f4ca6ad0431111ec5

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_digma_django-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_digma_django-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01d1bf6f7942d88020c5abaffc77125095c1c039a6b87a79f8c8b683146910c5
MD5 288a55cf3916bde0d84de289fbdded88
BLAKE2b-256 63d4021b0ce6d583a78fe5f6b4209117a10dd8043c6b0c215a1778733cd334ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page