oneagent-sdk
Dynatrace OneAgent SDK for Python
What it is and what it does
The Dynatrace OneAgent SDK for Python is an instrumentation library that integrates Python applications with Dynatrace's monitoring platform. It wraps the OneAgent SDK for C/C++ (bundled with each release) and provides Python-friendly APIs to trace application behavior at the request level, including remote calls, SQL queries, incoming and outgoing HTTP requests, custom services, and message queues. The SDK automatically switches to a native Python code module implementation if Dynatrace's OneAgent is injected into the process.
The package is designed for developers who already run Dynatrace OneAgent in their environment and need to extend monitoring visibility into Python-specific code paths. It requires CPython 3.8 or newer, manylinux1-compatible Linux or Windows x86/x86-64 systems, and a compatible Dynatrace OneAgent version. The SDK provides context propagation via W3C trace context and supports forked child processes on Linux, making it suitable for both traditional and containerized deployments.
Use it for:
- Trace custom Python service methods and remote procedure calls to correlate them with Dynatrace's end-to-end transaction monitoring.
- Instrument SQL database queries to capture execution time and query details within the broader request context.
- Capture incoming and outgoing HTTP requests to map service dependencies and detect performance bottlenecks.
- Tag requests with custom attributes for business-level correlation and filtering in Dynatrace dashboards.
- Monitor asynchronous task execution and message queue operations to track distributed work across services.
- Integrate with forked child processes on Linux to maintain trace continuity across process boundaries.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends Dynatrace monitoring into Python applications by providing tracers for request-level visibility into remote calls, database queries, web requests, and custom services.
Yes, if you already run Dynatrace OneAgent and need Python-level request tracing. The SDK is production-stable, permissively licensed, and actively maintained. Install friction is moderate due to platform-specific wheels and C/C++ dependencies, but this is expected for a monitoring SDK. No known vulnerabilities. Not suitable for serverless environments (AWS Lambda); use OpenTelemetry instead.
Install
oneagent-sdk on PyPI
pip
pip install oneagent-sdkuv
uv add oneagent-sdkpoetry
poetry add oneagent-sdkInstalling oneagent-sdk
Before you install
Medium install friction due to platform-specific wheels (Linux i686/x86_64, Windows 32/64-bit); requires pip 8.1.0 or newer and bundled C/C++ SDK dependencies. Last release was 219 days ago; repository is active but aging.
License in practice
Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions; suitable for most production deployments.
Quickstart
pip install oneagent-sdk
import oneagent
oneagent_sdk = oneagent.get_sdk()
tracer = oneagent_sdk.trace_incoming_web_request('GET', 'https://example.com')
Requires CPython 3.8 or newer (3.9+ recommended); Linux must be manylinux1-compatible (not Alpine); Windows requires x86 or x86-64 architecture; Dynatrace OneAgent version ≥1.251 (C/C++) required.
Verify before relying
- Whether the SDK automatically selects between C/C++ wrapper and Python code module implementations at runtime.
- Support status for Python 3.8 beyond current deprecation warning timeline.
- Compatibility with async/await frameworks beyond in-process asynchronous execution tracing.
- Performance overhead of tracing on high-throughput applications.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | aging — 219 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,681/month — #11,857 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oneagent_sdk-1.5.2.20260107.153442-py2.py3-none-manylinux1_i686.whl; oneagent_sdk-1.5.2.20260107.153442-py2.py3-none-manylinux1_x86_64.whl; oneagent_sdk-1.5.2.20260107.153442-py2.py3-none-win32.whl; oneagent_sdk-1.5.2.20260107.153442-py2.py3-none-win_amd64.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
autodynatraceAutodynatrace wraps the Dynatrace OneAgent SDK…
permissive · top 15,000 on PyPI
dtA Python client for the Dynatrace REST API with…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents…
permissive · top 5,000 on PyPI
aiobotocore-otelAdds distributed tracing to aiobotocore AWS API…
permissive · top 15,000 on PyPI
ddtraceddtrace instruments Python applications to send…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-mcpAdds distributed tracing to MCP (Model Context…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-djangoAdds distributed tracing to Django applications…
permissive · top 1,000 on PyPI
opencensus-ext-flaskAdds distributed tracing instrumentation to…
permissive · top 15,000 on PyPI