User Tools

Site Tools


devops:monitoring:datadog:ddtrace

This is an old revision of the document!


Datadog ddtrace

ddtrace is the Datadog APM (Application Performance Monitoring) Python library that enables tracing of your applications to monitor performance, latency, and errors in real-time. With ddtrace, you can gain detailed insights into your application's behavior, optimize its performance, and troubleshoot issues quickly.

Installation

To install `ddtrace`, you need to install the Python package via `pip`:

 pip install ddtrace

Once installed, you can begin instrumenting your application.

Basic Usage

After installation, you need to import ddtrace and initialize it. The easiest way to start tracing is by adding this at the entry point of your application:

from ddtrace import tracer
 
# Example: tracing a simple function
@tracer.wrap()
def my_function():
    # Function logic
    pass
devops/monitoring/datadog/ddtrace.1739542121.txt.gz · Last modified: 2025/02/14 14:08 by 85.219.17.206