Python

You can send data from your Python application to Dynatrace. Python is a versatile, high-level programming language known for its readability and simplicity, often used for web development, data analysis, artificial intelligence, and scientific computing due to its extensive libraries and community support.

Capabilities

  • Injects into Python processes and supported containers automatically. Injection rules enable the exclusion or inclusion of specific processes and containers.
  • Tracks CPU usage, memory consumption, and responsiveness of Python processes in real time.
  • Monitors Python workloads running inside containers, capturing container-specific performance metrics and metadata about the container technology and environment.
  • Provides runtime metrics, including garbage collection (GC) activity, thread metrics, and loaded library versions.
  • Provides remote configuration updates that allow monitoring settings to be adjusted remotely via OneAgent. Changes are applied at runtime (without requiring a process restart when possible).
  • Generates diagnostic data for troubleshooting, including support archives accessible via the OneAgent Diagnostics UI.

See our supported technologies matrix for details on supported technologies used in conjunction with Python.

Supported Python versions

Python version
Vendor released
Vendor End of life
First supported OneAgent version
Last supported OneAgent version
Dynatrace support until
3.13
2024-10-07
2029-10-01
1.309
-
-
Supported
3.12
2023-10-02
2028-10-01
1.309
-
-
Supported
3.11
2022-10-24
2027-10-01
1.309
-
-
Supported
3.10
2021-10-04
2026-10-01
1.309
-
-
Supported
3.9
2020-10-05
2025-10-01
1.309
-
-
Supported
3.8
2019-10-14
2024-10-07
1.309
-
-
Supported

Enable Python monitoring

To activate Python monitoring

  1. Go to Settings Classic > Monitoring > Monitored technologies.
  2. Find Python in the list of supported technologies, and select Edit.
  3. Turn on Monitor Python.
  4. Create a process monitoring rule to enable deep monitoring of the selected processes.

OneAgent Python code module and OneAgent SDK for Python compatibility

The OneAgent Python code module supports applications instrumented by the OneAgent SDK for Python. Both can work together in the same application.
The Dynatrace OneAgent SDK for Python is a wrapper of the Dynatrace OneAgent SDK for C/C++.

When the Python code module is installed, it replaces Dynatrace OneAgent SDK for C/C++ internally and collects data produced by OneAgent SDK for Python. This means that traces produced by the SDK will be linked with those produced by the Python code module itself.

Limitations

Additional information