Auto instrumentation for the OneAgent SDK
Archived. The repository is read-only: no more fixes or releases will come.
Consider insteadopentelemetry-instrumentationPythie’s Index: 90186.4M downloads/moCompare →
pip install autodynatraceautodynatrace - OneAgent-SDK-Python-AutoInstrumentation
Dynatrace provides a powerful SDK that can be used to achieve code level visibility and transaction tracing for applications written in multiple languages, including python. This project provides a library called autodynatrace, which is a wrapper around the OneAgent SDK for Python and allows you to instrument python applications with minimal code changes.
Warning Autodynatrace is opensource and supported via github issues, this is not supported by Dynatrace via support tickets.
Usage
pip install autodynatrace
Option 1 - Instrumentation without code changes
Add the environment variable AUTOWRAPT_BOOTSTRAP=autodynatrace to your python processes
Option 2 - Semi-Auto Instrumentation
For most technologies, just import it in your code.
import autodynatrace
Technologies supported:
- aiohttp (client)
- bottle
- celery
- concurrent.futures
- confluent_kafka
- cx_Oracle
- django
- fastapi
- flask
- grpc (client)
- paramiko
- pika (RabbitMQ)
- psycopg2
- pymongo
- pysnmp
- redis
- ruxit (Dynatrace plugin framework)
- sqlalchemy
- subprocess
- suds
- starlette