autodynatrace - 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
- tornado
- urllib
- urllib3
- custom annotations
Django
For Django, add "autodynatrace.wrappers.django" to INSTALLED_APPS
Environment variables
AUTODYNATRACE_CAPTURE_HEADERS: Default:False, set toTrueto capture request headersAUTODYNATRACE_LOG_LEVEL: DefaultWARNINGAUTODYNATRACE_FORKABLE: DefaultFalse, set toTrueto instrument forked processes. Use this for gunicorn/uwsgiAUTODYNATRACE_VIRTUAL_HOST: Overwrite the default Virtual Host for web frameworksAUTODYNATRACE_APPLICATION_ID: Overwrite the default Application Name for web frameworksAUTODYNATRACE_CONTEXT_ROOT: Overwrite the default Context Root for web frameworksAUTODYNATRACE_CUSTOM_SERVICE_NAME: Overwrite the custom service name (used by@autodynatrace.trace)AUTODYNATRACE_CUSTOM_SERVICE_USE_FQN: DefaultFalse, set toTrueto use fully qualified names for service and method names in custom traced servicesAUTODYNATRACE_INSTRUMENT_<LIB_NAME>: If set toFalse, Disables the instrumentation for a specific lib, example:AUTODYNATRACE_INSTRUMENT_CONCURRENT=False, default isTrue
Support
For support using this open source project, please open a github issue explaining your issue and providing code examples, environment details
Metadata
Release files for autodynatrace 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autodynatrace-2.1.1.tar.gz | 22.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autodynatrace-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.4 kB
Release files / autodynatrace-2.1.1.tar.gz
| Download URL | autodynatrace-2.1.1.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b75732f541bcb2af57ef87342b238e8cb47b5cc96bcc6fa2ff9d7dfb17ee490
|
|
BLAKE2b-256 checksum How to use checksums |
1d175a2543a9068d8eb2b0581fd94a4c9772b158a1c744946ad6b44d3d55541e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / autodynatrace-2.1.1-py3-none-any.whl
| Download URL | autodynatrace-2.1.1-py3-none-any.whl |
|---|---|
| Size | 42.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1f20cb10075e7f1f4daf04704e54644e52aec035e5089fe7f683fa4d60fe92c
|
|
BLAKE2b-256 checksum How to use checksums |
d39f41f858df55c30c08361183c51ae443a2f018170c785eed33728820aa378a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|