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.7.3.tar.gz.

File metadata

File hashes

Hashes for opentelemetry-instrumentation-digma-django-0.7.3.tar.gz
Algorithm Hash digest
SHA256 399080dbd372dc0c9e3103e23c8883734775ea066ec522daddff9555fdd3198f
MD5 496052e4d1c37291f569cc413477dc1f
BLAKE2b-256 05c1de9afc2f079c50f52899ce5b6dda008f1c1a505cee072ccce6f5707acc27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_digma_django-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65572f30eb2d4fd66a55138ccd0815c76f9226649671029768cb5b40a831549e
MD5 f79557dd86618a8bf55741a1f237cf1d
BLAKE2b-256 7c785f943cee6e740ee787865950972d03b25b671317387ae8a93f140e426721

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